10 #include "../ClangTidy.h"
11 #include "../ClangTidyModule.h"
12 #include "../ClangTidyModuleRegistry.h"
13 #include "../cppcoreguidelines/ProTypeMemberInitCheck.h"
14 #include "../cppcoreguidelines/SpecialMemberFunctionsCheck.h"
15 #include "../google/DefaultArgumentsCheck.h"
16 #include "../google/ExplicitConstructorCheck.h"
17 #include "../misc/NewDeleteOverloadsCheck.h"
18 #include "../misc/NoexceptMoveConstructorCheck.h"
19 #include "../misc/UndelegatedConstructor.h"
20 #include "../misc/UseAfterMoveCheck.h"
21 #include "../modernize/UseEqualsDefaultCheck.h"
22 #include "../modernize/UseEqualsDeleteCheck.h"
23 #include "../modernize/UseOverrideCheck.h"
24 #include "../readability/FunctionSizeCheck.h"
25 #include "../readability/IdentifierNamingCheck.h"
36 "hicpp-explicit-conversions");
38 "hicpp-function-size");
40 "hicpp-named-parameter");
42 "hicpp-invalid-access-moved");
46 "hicpp-new-delete-operators");
48 "hicpp-noexcept-move");
52 "hicpp-special-member-functions");
54 "hicpp-undelegated-constructor");
56 "hicpp-use-equals-default");
58 "hicpp-use-equals-delete");
60 "hicpp-use-override");
65 static ClangTidyModuleRegistry::Add<HICPPModule>
66 X(
"hicpp-module",
"Adds High-Integrity C++ checks.");
Checks for classes where some, but not all, of the special member functions are defined.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module...
Find assembler statements.
Use C++11's override and remove virtual where applicable.
Finds creation of temporary objects in constructors that look like a function call to another constru...
void registerCheck(StringRef CheckName)
Registers the CheckType with the name Name.
Implements C++ Core Guidelines Type.6.
static ClangTidyModuleRegistry::Add< HICPPModule > X("hicpp-module","Adds High-Integrity C++ checks.")
Replace default bodies of special member functions with '= default;'.
A collection of ClangTidyCheckFactory instances.
Checks for large functions based on various metrics.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
volatile int HICPPModuleAnchorSource
The check flags user-defined move constructors and assignment operators not marked with noexcept or m...
Mark unimplemented private special member functions with '= delete'.
Checks that all single-argument constructors are explicit.
Checks for identifiers naming style mismatch.
The check warns if an object is used after it has been moved, without an intervening reinitialization...