10 #include "../ClangTidy.h"
11 #include "../ClangTidyModule.h"
12 #include "../ClangTidyModuleRegistry.h"
13 #include "../misc/AssignOperatorSignatureCheck.h"
26 namespace cppcoreguidelines {
33 "cppcoreguidelines-pro-bounds-array-to-pointer-decay");
35 "cppcoreguidelines-pro-bounds-constant-array-index");
37 "cppcoreguidelines-pro-bounds-pointer-arithmetic");
39 "cppcoreguidelines-pro-type-const-cast");
41 "cppcoreguidelines-pro-type-cstyle-cast");
43 "cppcoreguidelines-pro-type-reinterpret-cast");
45 "cppcoreguidelines-pro-type-static-cast-downcast");
47 "cppcoreguidelines-pro-type-union-access");
49 "cppcoreguidelines-pro-type-vararg");
51 "cppcoreguidelines-c-copy-assignment-signature");
56 static ClangTidyModuleRegistry::Add<CppCoreGuidelinesModule>
57 X(
"cppcoreguidelines-module",
"Adds checks for the C++ Core Guidelines.");
Checks for usages of static_cast, where a base class is downcasted to a derived class.
Flags all occurrences of reinterpret_cast.
void registerCheck(StringRef CheckName)
Registers the CheckType with the name Name.
A module containing checks of the C++ Core Guidelines.
This check flags all use of C-style casts that perform a static_cast downcast, const_cast, or reinterpret_cast.
static ClangTidyModuleRegistry::Add< CppCoreGuidelinesModule > X("cppcoreguidelines-module","Adds checks for the C++ Core Guidelines.")
This check flags all instances of const_cast.
This check flags all array to pointer decays.
A collection of ClangTidyCheckFactory instances.
Finds declarations of assign operators with the wrong return and/or argument types.
volatile int CppCoreGuidelinesModuleAnchorSource
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
Flags all kinds of pointer arithmetic that have result of pointer type, i.e.
This checks that all array subscriptions on static arrays and std::arrays have a constant index and a...
This check flags all access to members of unions.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module...
This check flags all calls to c-style variadic functions and all use of va_arg.