Skip to content

[clang-tidy] clang-analyzer-* checks should be disabled by default #146482

Open
@carlosgalvezp

Description

@carlosgalvezp

Currently, clang-analyzer-* checks are enabled by default. They are not special compared to other checks, so I see no reason why they should have special treatment. They are also heavier than most regular checks so there's a hidden performance penalty by default.

Also, it leads to clang-tidy running silently when no checks are requested. It's better to fail early and tell people that they must explicitly request checks of their choice for clang-tidy to work. Otherwise people may think they have enabled checks, but they haven't.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions