Skip to content

[clangd] Allow indexing of exposed resource directory headers #118684

@jhuber6

Description

@jhuber6

Clang provides several intrinsic headers inside of its resource directory. Most of these are intended to be present in user code, however they prefer to use reserved keywords as they are commonly a part of system headers. These functions are not indexed, which makes working with them very difficult. My specific use-case is from the GPU utility header I've recently added that wraps around common builtins for GPU vendors https://godbolt.org/z/rvTEaeoP3. It's difficult to use this because clangd does not autocomplete for any of them. I have #118674 which is the alternate approach to fix this, but the headers are better-off keeping internal names.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions