Skip to content

[clang-tidy] Show 'allow-enabling-analyzer-alpha-checkers' flag in '--help' command. #148540

Open
@vbvictor

Description

@vbvictor

In clang-tidy, we have an option allow-enabling-analyzer-alpha-checkers that is not visible to users.

/// This option allows enabling the experimental alpha checkers from the static
/// analyzer. This option is set to false and not visible in help, because it is
/// highly not recommended for users.
static cl::opt<bool>
AllowEnablingAnalyzerAlphaCheckers("allow-enabling-analyzer-alpha-checkers",
cl::init(false), cl::Hidden,
cl::cat(ClangTidyCategory));

I don't see a reason why it is invisible for users.

How can a user find out about the opportunity of running analyzer-alpha-checkers without reading source code?
I believe there are people like me who could benefit from seeing this option in regular --help documentation.

Moreover, the allow-enabling-analyzer-alpha-checkers option is presented in run-clang-tidy:

parser.add_argument(
"-allow-enabling-alpha-checkers",
action="store_true",
help="Allow alpha checkers from clang-analyzer.",

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