How to build using clang in Kdevelop

Correct. See How to add C++ compiler in `kdevelop`?

Once it’s configured, you should see the option to use clang in the settings.