Skip to content

[clang-tidy] Warnings from headers should be on by default #158132

@carlosgalvezp

Description

@carlosgalvezp

Currently, users must opt-in to getting warnings from headers, via the unintuitive syntax --header-filter=<something>. This is most likely not what people want, and is inconsistent with e.g. the clang compiler.

Instead, clang-tidy should warn on all non-system headers by default, and --header-filter should then be used to narrow down which subset of headers to warn on, if wanted.

The solution to this problem would be to simply make header-filter default to .* instead of an empty string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-tidyenhancementImproving 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