1// REQUIRES: static-analyzer
2
3// Check if '-allow-enabling-analyzer-alpha-checkers' is visible for users.
4// RUN: clang-tidy -help | not grep 'allow-enabling-analyzer-alpha-checkers'
5
6// Check if '-allow-enabling-analyzer-alpha-checkers' enables alpha checks.
7// RUN: clang-tidy -checks=* -list-checks | not grep 'clang-analyzer-alpha'
8// RUN: clang-tidy -checks=* -list-checks -allow-enabling-analyzer-alpha-checkers | grep 'clang-analyzer-alpha'
9

source code of clang-tools-extra/test/clang-tidy/infrastructure/enable-alpha-checks.cpp