Is it possible to set up VS Code with clangd on Mac?

As far i know Rider uses the default compiler for c++ which should be Clang. Is there a special requirement for Clangd?