9 #include "../ClangTidy.h" 10 #include "../ClangTidyModule.h" 11 #include "../ClangTidyModuleRegistry.h" 12 #include "../readability/NamespaceCommentCheck.h" 13 #include "../readability/QualifiedAutoCheck.h" 22 namespace llvm_check {
30 "llvm-namespace-comment");
32 "llvm-prefer-isa-or-dyn-cast-in-conditionals");
34 "llvm-prefer-register-over-unsigned");
36 "llvm-qualified-auto");
42 static ClangTidyModuleRegistry::Add<LLVMModule>
X(
"llvm-module",
43 "Adds LLVM lint checks.");
Finds variables declared as auto that could be declared as: 'auto*' or 'const auto *' and reference v...
Looks for local Twine variables which are prone to use after frees and should be generally avoided...
void registerCheck(StringRef CheckName)
Registers the CheckType with the name Name.
static ClangTidyModuleRegistry::Add< LLVMModule > X("llvm-module", "Adds LLVM lint checks.")
A collection of ClangTidyCheckFactory instances.
volatile int LLVMModuleAnchorSource
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...
Checks the correct order of #includes.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Historically, LLVM has used unsigned to represent registers.
Looks at conditionals and finds and replaces cases of cast<>, which will assert rather than return a ...