Skip to content

[clangd] header insertion mappings #155047

@yshui

Description

@yshui

When writing OpenGL programs that use libepoxy, clangd really wants to include epoxy/gl_generated.h for any OpenGL API calls I use. But the correct way to use libepoxy is to include epoxy/gl.h (source).

Is there a way I can tell which header is the correct one to include. Maybe we can have a header mapping option, like:

Completion:
  HeaderMap:
    "epoxy/gl_generated.h": epoxy/gl.h
    ...

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