clang-tools  3.9.0
Classes | Functions | Variables
clang::tidy::cppcoreguidelines Namespace Reference

Classes

class  CppCoreGuidelinesModule
 A module containing checks of the C++ Core Guidelines. More...
 
class  InterfacesGlobalInitCheck
 Flags possible initialization order issues of static variables. More...
 
class  ProBoundsArrayToPointerDecayCheck
 This check flags all array to pointer decays. More...
 
class  ProBoundsConstantArrayIndexCheck
 This checks that all array subscriptions on static arrays and std::arrays have a constant index and are within bounds. More...
 
class  ProBoundsPointerArithmeticCheck
 Flags all kinds of pointer arithmetic that have result of pointer type, i.e. More...
 
class  ProTypeConstCastCheck
 This check flags all instances of const_cast. More...
 
class  ProTypeCstyleCastCheck
 This check flags all use of C-style casts that perform a static_cast downcast, const_cast, or reinterpret_cast. More...
 
class  ProTypeMemberInitCheck
 Implements C++ Core Guidelines Type.6. More...
 
class  ProTypeReinterpretCastCheck
 Flags all occurrences of reinterpret_cast. More...
 
class  ProTypeStaticCastDowncastCheck
 Checks for usages of static_cast, where a base class is downcasted to a derived class. More...
 
class  ProTypeUnionAccessCheck
 This check flags all access to members of unions. More...
 
class  ProTypeVarargCheck
 This check flags all calls to c-style variadic functions and all use of va_arg. More...
 

Functions

static
ClangTidyModuleRegistry::Add
< CppCoreGuidelinesModule
X ("cppcoreguidelines-module","Adds checks for the C++ Core Guidelines.")
 
 AST_MATCHER_P (CXXForRangeStmt, hasRangeBeginEndStmt, ast_matchers::internal::Matcher< DeclStmt >, InnerMatcher)
 
 AST_MATCHER (Stmt, isInsideOfRangeBeginEndStmt)
 
 AST_MATCHER_P (Expr, hasParentIgnoringImpCasts, ast_matchers::internal::Matcher< Expr >, InnerMatcher)
 
static bool needsConstCast (QualType SourceType, QualType DestType)
 
static bool hasSingleVariadicArgumentWithValue (const CallExpr *C, uint64_t I)
 

Variables

const
internal::VariadicDynCastAllOfMatcher
< Stmt, VAArgExpr > 
vAArgExpr
 

Function Documentation

clang::tidy::cppcoreguidelines::AST_MATCHER ( Stmt  ,
isInsideOfRangeBeginEndStmt   
)

Definition at line 28 of file ProBoundsArrayToPointerDecayCheck.cpp.

References Finder.

clang::tidy::cppcoreguidelines::AST_MATCHER_P ( CXXForRangeStmt  ,
hasRangeBeginEndStmt  ,
ast_matchers::internal::Matcher< DeclStmt >  ,
InnerMatcher   
)

Definition at line 20 of file ProBoundsArrayToPointerDecayCheck.cpp.

References Finder.

clang::tidy::cppcoreguidelines::AST_MATCHER_P ( Expr  ,
hasParentIgnoringImpCasts  ,
ast_matchers::internal::Matcher< Expr >  ,
InnerMatcher   
)

Definition at line 34 of file ProBoundsArrayToPointerDecayCheck.cpp.

References Finder.

static bool clang::tidy::cppcoreguidelines::hasSingleVariadicArgumentWithValue ( const CallExpr *  C,
uint64_t  I 
)
static
static bool clang::tidy::cppcoreguidelines::needsConstCast ( QualType  SourceType,
QualType  DestType 
)
static
static ClangTidyModuleRegistry::Add<CppCoreGuidelinesModule> clang::tidy::cppcoreguidelines::X ( "cppcoreguidelines-module"  ,
"Adds checks for the C++ Core Guidelines."   
)
static

Variable Documentation

const internal::VariadicDynCastAllOfMatcher<Stmt, VAArgExpr> clang::tidy::cppcoreguidelines::vAArgExpr