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"
28 "llvm-else-after-return");
32 "llvm-namespace-comment");
34 "llvm-prefer-isa-or-dyn-cast-in-conditionals");
36 "llvm-prefer-register-over-unsigned");
38 "llvm-qualified-auto");
44 Options.
CheckOptions[
"llvm-qualified-auto.AddConstToQualified"] =
"false";
45 Options.
CheckOptions[
"llvm-else-after-return.WarnOnUnfixable"] =
"false";
46 Options.
CheckOptions[
"llvm-else-after-return.WarnOnConditionVariables"] =
53static ClangTidyModuleRegistry::Add<LLVMModule>
X(
"llvm-module",
54 "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 a ...
Historically, LLVM has used unsigned to represent registers.
Looks for local Twine variables which are prone to use after frees and should be generally avoided.
Flags the usages of else after return.
Finds variables declared as auto that could be declared as: 'auto*' or 'const auto *' and reference v...
volatile int LLVMModuleAnchorSource
Contains options for clang-tidy.
OptionMap CheckOptions
Key-value mapping used to store check-specific options.