Skip to content

[clangd] Include cleaner doesn't use forward declarationsΒ #80625

@torshepherd

Description

@torshepherd

Include cleaner is great, but often in a header file I don't need to include full definitions. Adding a config setting "UseForwardDeclarations" that uses forward declarations instead of includes in header files, for instance, would help cut down transitive includes.

Currently there isn't really a way to do this without scrutinizing the header file to see if the symbol is used as a full definition or just a declaration

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-include-cleanerenhancementImproving things as opposed to bug fixing, e.g. new or missing feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions