9 #include "../ClangTidy.h" 10 #include "../ClangTidyModule.h" 11 #include "../ClangTidyModuleRegistry.h" 12 #include "../bugprone/UnhandledSelfAssignmentCheck.h" 13 #include "../google/UnnamedNamespaceInHeaderCheck.h" 14 #include "../misc/NewDeleteOverloadsCheck.h" 15 #include "../misc/NonCopyableObjects.h" 16 #include "../misc/StaticAssertCheck.h" 17 #include "../misc/ThrowByValueCatchByReferenceCheck.h" 18 #include "../performance/MoveConstructorInitCheck.h" 19 #include "../readability/UppercaseLiteralSuffixCheck.h" 90 Opts[
"cert-dcl16-c.NewSuffixes"] =
"L;LL;LU;LLU";
91 Opts[
"cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField"] =
"0";
99 static ClangTidyModuleRegistry::Add<cert::CERTModule>
101 "Adds lint checks corresponding to CERT secure coding guidelines.");
Checks if the overloaded postfix ++ and – operator return a constant object.
Pseudorandom number generators are not genuinely random.
Detects when the integral literal or floating point literal has non-uppercase suffix, and suggests to make the suffix uppercase.
checks for locations that do not throw by value
void registerCheck(StringRef CheckName)
Registers the CheckType with the name Name.
Replaces assert() with static_assert() if the condition is evaluatable at compile time...
Contains options for clang-tidy.
Execution of a command processor can lead to security vulnerabilities, and is generally not required...
A collection of ClangTidyCheckFactory instances.
OptionMap CheckOptions
Key-value mapping used to store check-specific options.
Guards against use of string conversion functions that do not have reasonable error handling for conv...
Checks whether the constructor for a static or thread_local object will throw.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
Finds user-defined copy assignment operators which do not protect the code against self-assignment ei...
The check flags dereferences and non-pointer declarations of objects that are not meant to be passed ...
Checks whether a thrown object is nothrow copy constructible.
Guards against use of setjmp/longjmp in C++ code.
volatile int CERTModuleAnchorSource
static ClangTidyModuleRegistry::Add< bugprone::BugproneModule > X("bugprone-module", "Adds checks for bugprone code constructs.")
std::map< std::string, std::string > OptionMap
This check diagnoses when the loop induction expression of a for loop has floating-point type...
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
ClangTidyOptions getModuleOptions() override
Gets default options for checks defined in this module.
Modification of the std or posix namespace can result in undefined behavior.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module...
Random number generator must be seeded properly.
Guards against any C-style variadic function definitions (not declarations).