10 #include "../ClangTidy.h" 11 #include "../ClangTidyModule.h" 12 #include "../ClangTidyModuleRegistry.h" 13 #include "../misc/UnconventionalAssignOperatorCheck.h" 32 namespace cppcoreguidelines {
39 "cppcoreguidelines-interfaces-global-init");
42 "cppcoreguidelines-owning-memory");
44 "cppcoreguidelines-pro-bounds-array-to-pointer-decay");
46 "cppcoreguidelines-pro-bounds-constant-array-index");
48 "cppcoreguidelines-pro-bounds-pointer-arithmetic");
50 "cppcoreguidelines-pro-type-const-cast");
52 "cppcoreguidelines-pro-type-cstyle-cast");
54 "cppcoreguidelines-pro-type-member-init");
56 "cppcoreguidelines-pro-type-reinterpret-cast");
58 "cppcoreguidelines-pro-type-static-cast-downcast");
60 "cppcoreguidelines-pro-type-union-access");
62 "cppcoreguidelines-pro-type-vararg");
64 "cppcoreguidelines-special-member-functions");
67 "cppcoreguidelines-c-copy-assignment-signature");
72 static ClangTidyModuleRegistry::Add<CppCoreGuidelinesModule>
73 X(
"cppcoreguidelines-module",
"Adds checks for the C++ Core Guidelines.");
Flags possible initialization order issues of static variables.
Checks for classes where some, but not all, of the special member functions are defined.
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.
This checker is concerned with C-style memory management and suggest modern alternatives to it...
A collection of ClangTidyCheckFactory instances.
This check flags all instances of const_cast.
Flags slicing (incomplete copying of an object's state) of member variables or vtable.
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.
Checks for common use cases for gsl::owner and enforces the unique owner nature of it whenever possib...
static ClangTidyModuleRegistry::Add< CppCoreGuidelinesModule > X("cppcoreguidelines-module", "Adds checks for the C++ Core Guidelines.")
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.