clang-tools 19.0.0git
Classes | Variables
clang::tidy::cert Namespace Reference

Classes

class  CERTModule
 
class  CommandProcessorCheck
 Execution of a command processor can lead to security vulnerabilities, and is generally not required. More...
 
class  DefaultOperatorNewAlignmentCheck
 Checks if an object of type with extended alignment is allocated by using the default operator new. More...
 
class  DontModifyStdNamespaceCheck
 Modification of the std or posix namespace can result in undefined behavior. More...
 
class  FloatLoopCounter
 This check diagnoses when the loop induction expression of a for loop has floating-point type. More...
 
class  LimitedRandomnessCheck
 Pseudorandom number generators are not genuinely random. More...
 
class  MutatingCopyCheck
 Finds assignments to the copied object and its direct or indirect members in copy constructors and copy assignment operators. More...
 
class  NonTrivialTypesLibcMemoryCallsCheck
 Flags use of the C standard library functions 'memset', 'memcpy' and 'memcmp' and similar derivatives on non-trivial types. More...
 
class  ProperlySeededRandomGeneratorCheck
 Random number generator must be seeded properly. More...
 
class  SetLongJmpCheck
 Guards against use of setjmp/longjmp in C++ code. More...
 
class  StaticObjectExceptionCheck
 Checks whether the constructor for a static or thread_local object will throw. More...
 
class  StrToNumCheck
 Guards against use of string conversion functions that do not have reasonable error handling for conversion errors. More...
 
class  ThrownExceptionTypeCheck
 Checks whether a thrown object is nothrow copy constructible. More...
 
class  VariadicFunctionDefCheck
 Guards against any C-style variadic function definitions (not declarations). More...
 

Variables

static constexpr llvm::StringLiteral SourceDeclName = "ChangedPVD"
 
static constexpr llvm::StringLiteral MutatingOperatorName = "MutatingOp"
 
static constexpr llvm::StringLiteral MutatingCallName = "MutatingCall"
 
static const char BuiltinMemSet []
 
static const char BuiltinMemCpy []
 
static const char BuiltinMemCmp []
 
static constexpr llvm::StringRef ComparisonOperators []
 

Variable Documentation

◆ BuiltinMemCmp

const char clang::tidy::cert::BuiltinMemCmp[]
static
Initial value:
= "::std::memcmp;"
"::memcmp;"
"::std::strcmp;"
"::strcmp;"
"::strncmp;"

Definition at line 44 of file NonTrivialTypesLibcMemoryCallsCheck.cpp.

Referenced by clang::tidy::cert::NonTrivialTypesLibcMemoryCallsCheck::registerMatchers().

◆ BuiltinMemCpy

const char clang::tidy::cert::BuiltinMemCpy[]
static
Initial value:
= "::std::memcpy;"
"::memcpy;"
"::std::memmove;"
"::memmove;"
"::std::strcpy;"
"::strcpy;"
"::memccpy;"
"::stpncpy;"
"::strncpy;"

Definition at line 35 of file NonTrivialTypesLibcMemoryCallsCheck.cpp.

Referenced by clang::tidy::cert::NonTrivialTypesLibcMemoryCallsCheck::registerMatchers().

◆ BuiltinMemSet

const char clang::tidy::cert::BuiltinMemSet[]
static
Initial value:
= "::std::memset;"
"::memset;"

Definition at line 33 of file NonTrivialTypesLibcMemoryCallsCheck.cpp.

Referenced by clang::tidy::cert::NonTrivialTypesLibcMemoryCallsCheck::registerMatchers().

◆ ComparisonOperators

constexpr llvm::StringRef clang::tidy::cert::ComparisonOperators[]
staticconstexpr
Initial value:
= {
"operator==", "operator!=", "operator<",
"operator>", "operator<=", "operator>="}

Definition at line 49 of file NonTrivialTypesLibcMemoryCallsCheck.cpp.

Referenced by clang::tidy::cert::NonTrivialTypesLibcMemoryCallsCheck::registerMatchers().

◆ MutatingCallName

constexpr llvm::StringLiteral clang::tidy::cert::MutatingCallName = "MutatingCall"
staticconstexpr

◆ MutatingOperatorName

constexpr llvm::StringLiteral clang::tidy::cert::MutatingOperatorName = "MutatingOp"
staticconstexpr

◆ SourceDeclName

constexpr llvm::StringLiteral clang::tidy::cert::SourceDeclName = "ChangedPVD"
staticconstexpr