cannot include std headers
See original GitHub issueHi!
Thanks a lot for this cool extension… However, I am not able to use it properly as it seems. I get an include squiggle when trying to include vector
(and subsequently using std::vector). I have made a little minimal reproduction example here /branch clangd. Maybe I am missing something very obvious here. But compile_commands.json are clearly in the path where clangd should be looking for and when pasting this command directly in the terminal all is fine … When trying some other code, the extension seems to work fine as well… I am just not able to include any std headers …
Note that this compile_commands.json was generated by cmake (but I have excluded the CMakeLists.txt from the project in order to make it as minimal as possible). So one would need to adapt some local paths probably.
If this is a user error I would be very happy if someone would show me how to do this properly 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Does adding
--query-driver=/usr/bin/clang++
to the arguments passed to clangd (via vscode’sclangd.arguments
setting) help?Yeah… this would get a +1 from me definitely … Just fyi. This is by far the best intellisense experience I am having this far and the projects I am working on are fairly large … So again: Thank you 😃