clang-tools 22.0.0git
clang::tidy::cert Namespace Reference

Classes

class  CERTModule
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  ThrownExceptionTypeCheck
 Checks whether a thrown object is nothrow copy constructible. 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 42 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 33 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 31 of file NonTrivialTypesLibcMemoryCallsCheck.cpp.

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

◆ ComparisonOperators

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

Definition at line 47 of file NonTrivialTypesLibcMemoryCallsCheck.cpp.

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

◆ MutatingCallName

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

◆ MutatingOperatorName

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

◆ SourceDeclName

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