clangd: macOS 10.15 Catalina: error in finding header

OS: macOS 10.15 Catalina clangd: version 9.0.0 (tags/RELEASE_900/final); installed by brew install llvm; used in VS Code with vscode-clangd. Problem: After updating to macOS 10.15 Catalina, clangd keeps reporting errors in finding headers.

Screen Shot 2019-10-08 at 9 01 22 PM

After searching, I found a discussion on StackOverflow: It seems Apple stops supporting putting headers under /usr/include, which results in the issue.

I wonder whether there any way to keep using clangd in macOS 10.15.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 3
  • Comments: 15 (8 by maintainers)

Commits related to this issue

Most upvoted comments

is that enouth for clangd?

instead of g++ it should mention the full path of clang, which I believe is /usr/local/opt/llvm/bin/clang in your case.

btw, it will only help if you can compile c++ files using /usr/local/opt/llvm/bin/clang (without explicitly mentioning isysroot or any other include path altering commands)