9 #include "../ClangTidy.h" 10 #include "../ClangTidyModule.h" 11 #include "../ClangTidyModuleRegistry.h" 12 #include "../bugprone/UnhandledSelfAssignmentCheck.h" 13 #include "../bugprone/BadSignalToKillThreadCheck.h" 14 #include "../google/UnnamedNamespaceInHeaderCheck.h" 15 #include "../misc/NewDeleteOverloadsCheck.h" 16 #include "../misc/NonCopyableObjects.h" 17 #include "../misc/StaticAssertCheck.h" 18 #include "../misc/ThrowByValueCatchByReferenceCheck.h" 19 #include "../performance/MoveConstructorInitCheck.h" 20 #include "../readability/UppercaseLiteralSuffixCheck.h" 101 Opts[
"cert-dcl16-c.NewSuffixes"] =
"L;LL;LU;LLU";
102 Opts[
"cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField"] =
"0";
110 static ClangTidyModuleRegistry::Add<cert::CERTModule>
112 "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...
Finds pthread_kill function calls when thread is terminated by SIGTERM signal.
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.")
Finds assignments to the copied object and its direct or indirect members in copy constructors and co...
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.
Checks if an object of type with extended alignment is allocated by using the default operator new...
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).