How to install clangd (not clang) on mac os
5,937
Solution 1
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
Solution 2
Here is another related question you should see to set that up: https://stackoverflow.com/questions/59185976/how-to-install-clangd-on-mac
Related videos on Youtube
Author by
shelper
Updated on September 18, 2022Comments
-
shelper over 1 year
I installed
xcode, llvm, brew
, and I haveclang
on my system but notclangd
..., I googled around and only find how installclang
notclangd
. I triedbrew install clangd
but not found clangd. I even tried to go through the docs of llvm and still could not find the answer...-
Admin almost 5 yearsclangd is a language server that implements the Language Server Protocol; it can work with many editors through a plugin. Installing clangd.
-
shelper almost 5 yearsunderstood, and that is what i did
brew install llvm
but after that i still dont haveclangd
... i only haveclang
andclang++
-
Admin almost 5 years`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.
-
Joao Tavora over 4 yearsWhy the downvotes? This is a pretty useful answer and pretty useful question...
-
-
Joao Tavora over 4 yearsWhy the downvotes? This is a pretty useful answer and pretty useful question...
-
DavidPostill about 3 yearsThis is really a comment and not an answer to the original question. You can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. Please read Why do I need 50 reputation to comment? What can I do instead?.