Go to the documentation of this file.
9 #include "../ClangTidy.h"
10 #include "../ClangTidyModule.h"
11 #include "../ClangTidyModuleRegistry.h"
12 #include "../readability/ElseAfterReturnCheck.h"
13 #include "../readability/NamespaceCommentCheck.h"
14 #include "../readability/QualifiedAutoCheck.h"
23 namespace llvm_check {
29 "llvm-else-after-return");
33 "llvm-namespace-comment");
35 "llvm-prefer-isa-or-dyn-cast-in-conditionals");
37 "llvm-prefer-register-over-unsigned");
39 "llvm-qualified-auto");
45 Options.
CheckOptions[
"llvm-qualified-auto.AddConstToQualified"] =
"0";
46 Options.
CheckOptions[
"llvm-else-after-return.WarnOnUnfixable"] =
"0";
47 Options.
CheckOptions[
"llvm-else-after-return.WarnOnConditionVariables"] =
54 static ClangTidyModuleRegistry::Add<LLVMModule>
X(
"llvm-module",
55 "Adds LLVM lint checks.");
OptionMap CheckOptions
Key-value mapping used to store check-specific options.
static ClangTidyModuleRegistry::Add< LLVMModule > X("llvm-module", "Adds LLVM lint checks.")
Contains options for clang-tidy.
A collection of ClangTidyCheckFactory instances.
Looks at conditionals and finds and replaces cases of cast<>, which will assert rather than return a ...
volatile int LLVMModuleAnchorSource
Checks the correct order of #includes.
Historically, LLVM has used unsigned to represent registers.
Flags the usages of else after return.
Looks for local Twine variables which are prone to use after frees and should be generally avoided.
ClangTidyOptions getModuleOptions() override
Gets default options for checks defined in this module.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Finds variables declared as auto that could be declared as: 'auto*' or 'const auto *' and reference v...
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module.
void registerCheck(llvm::StringRef CheckName)
Registers the CheckType with the name Name.