Skip to content

cc_wrapper.sh breaks default assumptions of clangd #508

@jwbee

Description

@jwbee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions