clang-tools  11.0.0git
Classes | Functions | 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  PostfixOperatorCheck
 Checks if the overloaded postfix ++ and – operator return a constant object. 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...
 

Functions

static std::vector< std::string > parseStringListPair (StringRef LHS, StringRef RHS)
 

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 []
 

Function Documentation

◆ parseStringListPair()

static std::vector<std::string> clang::tidy::cert::parseStringListPair ( StringRef  LHS,
StringRef  RHS 
)
static

Variable Documentation

◆ BuiltinMemCmp

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

Definition at line 50 of file NonTrivialTypesLibcMemoryCallsCheck.cpp.

◆ 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 41 of file NonTrivialTypesLibcMemoryCallsCheck.cpp.

◆ BuiltinMemSet

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

Definition at line 39 of file NonTrivialTypesLibcMemoryCallsCheck.cpp.

◆ ComparisonOperators

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

Definition at line 55 of file NonTrivialTypesLibcMemoryCallsCheck.cpp.

◆ MutatingCallName

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

Definition at line 21 of file MutatingCopyCheck.cpp.

◆ MutatingOperatorName

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

Definition at line 20 of file MutatingCopyCheck.cpp.

◆ SourceDeclName

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

Definition at line 19 of file MutatingCopyCheck.cpp.