-
-
Notifications
You must be signed in to change notification settings - Fork 249
Description
clangd will not try to figure out where your system includes live unless it thinks your compiler is gcc or can be driven as-if it were gcc, such as clang. If your compiler happens to be cc_wrapper.sh
clangd won't touch it until you add it to the allowed list of query drivers e.g. --query-driver=/**/cc_wrapper.sh
This seems to be very obscure, as I can find only one single line on Github where someone has directed clangd to treat the wrapper script as the compiler.
The symptom of this problem is that in your IDE while editing your project that uses this toolchain, your editor thinks that none of the STL headers like <algorithm>
exist, and every mention of namespace std
is in error.
I don't know what approach to take to resolve this issue, but this is to get the conversation going and possibly to make the issue visible to search engine users who might be stumped, as I was.