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

Share:
5,937

Related videos on Youtube

shelper
Author by

shelper

Updated on September 18, 2022

Comments

  • shelper
    shelper over 1 year

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

    • Admin
      Admin almost 5 years
      clangd is a language server that implements the Language Server Protocol; it can work with many editors through a plugin. Installing clangd.
    • shelper
      shelper almost 5 years
      understood, and that is what i did brew install llvm but after that i still dont have clangd... i only have clang and clang++
    • Admin
      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
      Joao Tavora over 4 years
      Why the downvotes? This is a pretty useful answer and pretty useful question...
  • Joao Tavora
    Joao Tavora over 4 years
    Why the downvotes? This is a pretty useful answer and pretty useful question...
  • DavidPostill
    DavidPostill about 3 years
    This 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?.