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