clang-tools  7.0.0svn
Classes | Functions
clang::tidy::fuchsia Namespace Reference

Classes

class  DefaultArgumentsCheck
 Default arguments are not allowed in declared or called functions. More...
 
class  FuchsiaModule
 This module is for Fuchsia-specific checks. More...
 
class  MultipleInheritanceCheck
 Mulitple implementation inheritance is discouraged. More...
 
class  OverloadedOperatorCheck
 Overloading operators is disallowed by the Fuchsia coding standard. More...
 
class  StaticallyConstructedObjectsCheck
 Constructing global, non-trivial objects with static storage is disallowed, unless the object is statically initialized with a constexpr constructor or has no explicit constructor. More...
 
class  TrailingReturnCheck
 Functions that have trailing returns are disallowed, except for those using decltype specifiers and lambda with otherwise unutterable return types. More...
 
class  VirtualInheritanceCheck
 Defining classes with virtual inheritance is disallowed. More...
 

Functions

static ClangTidyModuleRegistry::Add< FuchsiaModuleX ("fuchsia-module", "Adds Fuchsia platform checks.")
 
 AST_MATCHER (CXXRecordDecl, hasBases)
 
 AST_MATCHER (FunctionDecl, isFuchsiaOverloadedOperator)
 
 AST_MATCHER (Expr, isConstantInitializer)
 
 AST_MATCHER (VarDecl, isGlobalStatic)
 
 AST_MATCHER (FunctionDecl, hasTrailingReturn)
 
 AST_MATCHER (CXXRecordDecl, hasDirectVirtualBaseClass)
 

Function Documentation

◆ AST_MATCHER() [1/6]

clang::tidy::fuchsia::AST_MATCHER ( FunctionDecl  ,
isFuchsiaOverloadedOperator   
)

Definition at line 18 of file OverloadedOperatorCheck.cpp.

◆ AST_MATCHER() [2/6]

clang::tidy::fuchsia::AST_MATCHER ( Expr  ,
isConstantInitializer   
)

Definition at line 18 of file StaticallyConstructedObjectsCheck.cpp.

◆ AST_MATCHER() [3/6]

clang::tidy::fuchsia::AST_MATCHER ( CXXRecordDecl  ,
hasDirectVirtualBaseClass   
)

Definition at line 20 of file VirtualInheritanceCheck.cpp.

◆ AST_MATCHER() [4/6]

clang::tidy::fuchsia::AST_MATCHER ( CXXRecordDecl  ,
hasBases   
)

Definition at line 21 of file MultipleInheritanceCheck.cpp.

References Name.

◆ AST_MATCHER() [5/6]

clang::tidy::fuchsia::AST_MATCHER ( VarDecl  ,
isGlobalStatic   
)

Definition at line 22 of file StaticallyConstructedObjectsCheck.cpp.

◆ AST_MATCHER() [6/6]

clang::tidy::fuchsia::AST_MATCHER ( FunctionDecl  ,
hasTrailingReturn   
)

Definition at line 27 of file TrailingReturnCheck.cpp.

◆ X()

static ClangTidyModuleRegistry::Add<FuchsiaModule> clang::tidy::fuchsia::X ( "fuchsia-module"  ,
"Adds Fuchsia platform checks."   
)
static