Go to the documentation of this file.
9 #include "../ClangTidy.h"
10 #include "../ClangTidyModule.h"
11 #include "../ClangTidyModuleRegistry.h"
12 #include "../bugprone/BadSignalToKillThreadCheck.h"
13 #include "../bugprone/ReservedIdentifierCheck.h"
14 #include "../bugprone/SignalHandlerCheck.h"
15 #include "../bugprone/SignedCharMisuseCheck.h"
16 #include "../bugprone/SpuriouslyWakeUpFunctionsCheck.h"
17 #include "../bugprone/SuspiciousMemoryComparisonCheck.h"
18 #include "../bugprone/UnhandledSelfAssignmentCheck.h"
19 #include "../bugprone/UnusedReturnValueCheck.h"
20 #include "../concurrency/ThreadCanceltypeAsynchronousCheck.h"
21 #include "../google/UnnamedNamespaceInHeaderCheck.h"
22 #include "../misc/NewDeleteOverloadsCheck.h"
23 #include "../misc/NonCopyableObjects.h"
24 #include "../misc/StaticAssertCheck.h"
25 #include "../misc/ThrowByValueCatchByReferenceCheck.h"
26 #include "../performance/MoveConstructorInitCheck.h"
27 #include "../readability/UppercaseLiteralSuffixCheck.h"
50 const llvm::StringRef CertErr33CCheckedFunctions =
"::aligned_alloc;"
323 Opts[
"cert-dcl16-c.NewSuffixes"] =
"L;LL;LU;LLU";
324 Opts[
"cert-err33-c.CheckedFunctions"] = CertErr33CCheckedFunctions;
325 Opts[
"cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField"] =
"false";
326 Opts[
"cert-str34-c.DiagnoseSignedUnsignedCharComparisons"] =
"false";
334 static ClangTidyModuleRegistry::Add<cert::CERTModule>
336 "Adds lint checks corresponding to CERT secure coding guidelines.");
Checker for signal handler functions.
The check flags dereferences and non-pointer declarations of objects that are not meant to be passed ...
Checks if an object of type with extended alignment is allocated by using the default operator new.
Execution of a command processor can lead to security vulnerabilities, and is generally not required.
llvm::StringMap< ClangTidyValue > OptionMap
Pseudorandom number generators are not genuinely random.
Finds potentially incorrect calls to memcmp() based on properties of the arguments.
Checks if the overloaded postfix ++ and – operator return a constant object.
Guards against any C-style variadic function definitions (not declarations).
Finds pthread_kill function calls when thread is terminated by SIGTERM signal.
OptionMap CheckOptions
Key-value mapping used to store check-specific options.
Modification of the std or posix namespace can result in undefined behavior.
Finds those signed char -> integer conversions which might indicate a programming error.
Contains options for clang-tidy.
Finds user-defined copy assignment operators which do not protect the code against self-assignment ei...
A collection of ClangTidyCheckFactory instances.
Detects when the integral literal or floating point literal has non-uppercase suffix,...
Finds cnd_wait, cnd_timedwait, wait, wait_for, or wait_until function calls when the function is not ...
Checks whether the constructor for a static or thread_local object will throw.
Checks whether a thrown object is nothrow copy constructible.
This check diagnoses when the loop induction expression of a for loop has floating-point type.
Random number generator must be seeded properly.
Finds assignments to the copied object and its direct or indirect members in copy constructors and co...
Replaces assert() with static_assert() if the condition is evaluatable at compile time.
Guards against use of string conversion functions that do not have reasonable error handling for conv...
Checks for usages of identifiers reserved for use by the implementation.
Flags use of the C standard library functions 'memset', 'memcpy' and 'memcmp' and similar derivatives...
ClangTidyOptions getModuleOptions() override
Gets default options for checks defined in this module.
volatile int CERTModuleAnchorSource
Finds pthread_setcanceltype function calls where a thread's cancellation type is set to asynchronous.
Guards against use of setjmp/longjmp in C++ code.
Detects function calls where the return value is unused.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module.
checks for locations that do not throw by value
static ClangTidyModuleRegistry::Add< altera::AlteraModule > X("altera-module", "Adds Altera FPGA OpenCL lint checks.")
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
void registerCheck(llvm::StringRef CheckName)
Registers the CheckType with the name Name.