31 "llvm-else-after-return");
35 "llvm-namespace-comment");
37 "llvm-prefer-isa-or-dyn-cast-in-conditionals");
39 "llvm-prefer-register-over-unsigned");
41 "llvm-prefer-static-over-anonymous-namespace");
43 "llvm-qualified-auto");
46 "llvm-use-new-mlir-op-builder");
52 Options.
CheckOptions[
"llvm-qualified-auto.AddConstToQualified"] =
"false";
53 Options.
CheckOptions[
"llvm-else-after-return.WarnOnUnfixable"] =
"false";
54 Options.
CheckOptions[
"llvm-else-after-return.WarnOnConditionVariables"] =
61static ClangTidyModuleRegistry::Add<LLVMModule>
X(
"llvm-module",
62 "Adds LLVM lint checks.");
A collection of ClangTidyCheckFactory instances.
void registerCheck(llvm::StringRef CheckName)
Registers the CheckType with the name Name.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
Checks the correct order of #includes.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module.
ClangTidyOptions getModuleOptions() override
Gets default options for checks defined in this module.
Looks at conditionals and finds and replaces cases of cast<>, which will / assert rather than return ...
Historically, LLVM has used unsigned to represent registers.
Finds function and variable declarations inside anonymous namespace and suggests replacing them with ...
Looks for local Twine variables which are prone to use after frees and should be generally avoided.
Checks for uses of MLIR's old/to be deprecated OpBuilder::create<T> form and suggests using T::create...
Finds calls to STL iterator algorithms that can be replaced with LLVM range-based algorithms from llv...
Flags the usages of else after return.
Finds variables declared as auto that could be declared as: 'auto*' or 'const auto *' and reference v...
static ClangTidyModuleRegistry::Add< LLVMModule > X("llvm-module", "Adds LLVM lint checks.")
volatile int LLVMModuleAnchorSource
Contains options for clang-tidy.
OptionMap CheckOptions
Key-value mapping used to store check-specific options.