10

I installed xcode, llvm, brew, and I have clang on my system but not clangd ..., I googled around and only find how install clang not clangd. I tried brew install clangd but not found clangd. I even tried to go through the docs of llvm and still could not find the answer...

4
  • clangd is a language server that implements the Language Server Protocol; it can work with many editors through a plugin. Installing clangd.
    – user187561
    Jun 16 '19 at 23:08
  • understood, and that is what i did brew install llvm but after that i still dont have clangd... i only have clang and clang++
    – shelper
    Jun 17 '19 at 2:14
  • `clangd is present in the MacOS binary llvm 8.0.0 release on the LLVM Download Page mentioned on the web page in the installing clangd link. It's also present in the previous prebuilt MacOS binary llvm 7.0.0.
    – user187561
    Jun 17 '19 at 5:13
  • Why the downvotes? This is a pretty useful answer and pretty useful question... Oct 5 '19 at 13:39
8

After brew install llvm, my Mac provides

$ find  /usr/local/ -name 'clangd'
/usr/local//Cellar/llvm/8.0.0_1/bin/clangd
/usr/local//Cellar/llvm/8.0.0_1/Toolchains/LLVM8.0.0.xctoolchain/usr/bin/clangd
1
  • 2
    Why the downvotes? This is a pretty useful answer and pretty useful question... Oct 5 '19 at 13:38
1

Here is another related question you should see to set that up: https://stackoverflow.com/questions/59185976/how-to-install-clangd-on-mac

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.