clang  7.0.0svn
Classes | Functions | Variables
clang::ast_matchers::internal Namespace Reference

Classes

class  CollectMatchesCallback
 

Functions

bool NotUnaryOperator (const ast_type_traits::DynTypedNode &DynNode, ASTMatchFinder *Finder, BoundNodesTreeBuilder *Builder, ArrayRef< DynTypedMatcher > InnerMatchers)
 
bool AllOfVariadicOperator (const ast_type_traits::DynTypedNode &DynNode, ASTMatchFinder *Finder, BoundNodesTreeBuilder *Builder, ArrayRef< DynTypedMatcher > InnerMatchers)
 
bool EachOfVariadicOperator (const ast_type_traits::DynTypedNode &DynNode, ASTMatchFinder *Finder, BoundNodesTreeBuilder *Builder, ArrayRef< DynTypedMatcher > InnerMatchers)
 
bool AnyOfVariadicOperator (const ast_type_traits::DynTypedNode &DynNode, ASTMatchFinder *Finder, BoundNodesTreeBuilder *Builder, ArrayRef< DynTypedMatcher > InnerMatchers)
 
static std::vector< std::string > vectorFromRefs (ArrayRef< const StringRef *> NameRefs)
 
Matcher< NamedDeclhasAnyNameFunc (ArrayRef< const StringRef *> NameRefs)
 
Matcher< ObjCMessageExprhasAnySelectorFunc (ArrayRef< const StringRef *> NameRefs)
 
static bool consumeNameSuffix (StringRef &FullName, StringRef Suffix)
 
static StringRef getNodeName (const NamedDecl &Node, llvm::SmallString< 128 > &Scratch)
 
static StringRef getNodeName (const RecordDecl &Node, llvm::SmallString< 128 > &Scratch)
 
static StringRef getNodeName (const NamespaceDecl &Node, llvm::SmallString< 128 > &Scratch)
 

Variables

static llvm::ManagedStatic< TrueMatcherImpl > TrueMatcherInstance
 

Function Documentation

◆ AllOfVariadicOperator()

bool clang::ast_matchers::internal::AllOfVariadicOperator ( const ast_type_traits::DynTypedNode DynNode,
ASTMatchFinder *  Finder,
BoundNodesTreeBuilder *  Builder,
ArrayRef< DynTypedMatcher >  InnerMatchers 
)

Definition at line 283 of file ASTMatchersInternal.cpp.

◆ AnyOfVariadicOperator()

bool clang::ast_matchers::internal::AnyOfVariadicOperator ( const ast_type_traits::DynTypedNode DynNode,
ASTMatchFinder *  Finder,
BoundNodesTreeBuilder *  Builder,
ArrayRef< DynTypedMatcher >  InnerMatchers 
)

Definition at line 314 of file ASTMatchersInternal.cpp.

◆ consumeNameSuffix()

static bool clang::ast_matchers::internal::consumeNameSuffix ( StringRef &  FullName,
StringRef  Suffix 
)
static

Definition at line 357 of file ASTMatchersInternal.cpp.

◆ EachOfVariadicOperator()

bool clang::ast_matchers::internal::EachOfVariadicOperator ( const ast_type_traits::DynTypedNode DynNode,
ASTMatchFinder *  Finder,
BoundNodesTreeBuilder *  Builder,
ArrayRef< DynTypedMatcher >  InnerMatchers 
)

Definition at line 297 of file ASTMatchersInternal.cpp.

◆ getNodeName() [1/3]

static StringRef clang::ast_matchers::internal::getNodeName ( const NamedDecl Node,
llvm::SmallString< 128 > &  Scratch 
)
static

◆ getNodeName() [2/3]

static StringRef clang::ast_matchers::internal::getNodeName ( const RecordDecl Node,
llvm::SmallString< 128 > &  Scratch 
)
static

◆ getNodeName() [3/3]

static StringRef clang::ast_matchers::internal::getNodeName ( const NamespaceDecl Node,
llvm::SmallString< 128 > &  Scratch 
)
static

◆ hasAnyNameFunc()

Matcher<NamedDecl> clang::ast_matchers::internal::hasAnyNameFunc ( ArrayRef< const StringRef *>  NameRefs)

Definition at line 336 of file ASTMatchersInternal.cpp.

References vectorFromRefs().

◆ hasAnySelectorFunc()

Matcher<ObjCMessageExpr> clang::ast_matchers::internal::hasAnySelectorFunc ( ArrayRef< const StringRef *>  NameRefs)

Definition at line 341 of file ASTMatchersInternal.cpp.

References vectorFromRefs().

Referenced by clang::ast_matchers::AST_MATCHER_P().

◆ NotUnaryOperator()

bool clang::ast_matchers::internal::NotUnaryOperator ( const ast_type_traits::DynTypedNode DynNode,
ASTMatchFinder *  Finder,
BoundNodesTreeBuilder *  Builder,
ArrayRef< DynTypedMatcher >  InnerMatchers 
)

Definition at line 263 of file ASTMatchersInternal.cpp.

◆ vectorFromRefs()

static std::vector<std::string> clang::ast_matchers::internal::vectorFromRefs ( ArrayRef< const StringRef *>  NameRefs)
inlinestatic

Definition at line 329 of file ASTMatchersInternal.cpp.

Referenced by hasAnyNameFunc(), and hasAnySelectorFunc().

Variable Documentation

◆ TrueMatcherInstance

llvm::ManagedStatic<TrueMatcherImpl> clang::ast_matchers::internal::TrueMatcherInstance
static

Definition at line 140 of file ASTMatchersInternal.cpp.