How to install clangd (not clang) on mac os

3

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...

shelper

Posted 2019-06-16T18:21:37.090

Reputation: 473

clangd is a language server that implements the Language Server Protocol; it can work with many editors through a plugin. Installing clangd. – user187561 – 2019-06-16T23:08:26.143

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 – 2019-06-17T02:14:18.257

`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 – 2019-06-17T05:13:47.657

Why the downvotes? This is a pretty useful answer and pretty useful question... – Joao Tavora – 2019-10-05T13:39:05.377

Answers

2

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

m8mble

Posted 2019-06-16T18:21:37.090

Reputation: 134

1Why the downvotes? This is a pretty useful answer and pretty useful question... – Joao Tavora – 2019-10-05T13:38:54.627