clang 20.0.0git
|
Classes | |
class | CollectMatchesCallback |
Functions | |
static bool | notUnaryOperator (const DynTypedNode &DynNode, ASTMatchFinder *Finder, BoundNodesTreeBuilder *Builder, ArrayRef< DynTypedMatcher > InnerMatchers) |
static bool | allOfVariadicOperator (const DynTypedNode &DynNode, ASTMatchFinder *Finder, BoundNodesTreeBuilder *Builder, ArrayRef< DynTypedMatcher > InnerMatchers) |
static bool | eachOfVariadicOperator (const DynTypedNode &DynNode, ASTMatchFinder *Finder, BoundNodesTreeBuilder *Builder, ArrayRef< DynTypedMatcher > InnerMatchers) |
static bool | anyOfVariadicOperator (const DynTypedNode &DynNode, ASTMatchFinder *Finder, BoundNodesTreeBuilder *Builder, ArrayRef< DynTypedMatcher > InnerMatchers) |
static bool | optionallyVariadicOperator (const DynTypedNode &DynNode, ASTMatchFinder *Finder, BoundNodesTreeBuilder *Builder, ArrayRef< DynTypedMatcher > InnerMatchers) |
bool | matchesAnyBase (const CXXRecordDecl &Node, const Matcher< CXXBaseSpecifier > &BaseSpecMatcher, ASTMatchFinder *Finder, BoundNodesTreeBuilder *Builder) |
static std::vector< std::string > | vectorFromRefs (ArrayRef< const StringRef * > NameRefs) |
Matcher< NamedDecl > | hasAnyNameFunc (ArrayRef< const StringRef * > NameRefs) |
Matcher< ObjCMessageExpr > | hasAnySelectorFunc (ArrayRef< const StringRef * > NameRefs) |
HasOpNameMatcher | hasAnyOperatorNameFunc (ArrayRef< const StringRef * > NameRefs) |
HasOverloadOpNameMatcher | hasAnyOverloadedOperatorNameFunc (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) |
static bool | isTokenAtLoc (const SourceManager &SM, const LangOptions &LangOpts, StringRef Text, SourceLocation Loc) |
std::optional< SourceLocation > | getExpansionLocOfMacro (StringRef MacroName, SourceLocation Loc, const ASTContext &Context) |
std::shared_ptr< llvm::Regex > | createAndVerifyRegex (StringRef Regex, llvm::Regex::RegexFlags Flags, StringRef MatcherID) |
|
static |
Definition at line 387 of file ASTMatchersInternal.cpp.
|
static |
Definition at line 416 of file ASTMatchersInternal.cpp.
References clang::Result.
|
static |
Definition at line 481 of file ASTMatchersInternal.cpp.
References consumeNameSuffix(), and FullName.
Referenced by consumeNameSuffix().
std::shared_ptr< llvm::Regex > clang::ast_matchers::internal::createAndVerifyRegex | ( | StringRef | Regex, |
llvm::Regex::RegexFlags | Flags, | ||
StringRef | MatcherID | ||
) |
Definition at line 719 of file ASTMatchersInternal.cpp.
References createAndVerifyRegex(), and MatcherID.
Referenced by createAndVerifyRegex().
|
static |
Definition at line 399 of file ASTMatchersInternal.cpp.
References clang::Result.
std::optional< SourceLocation > clang::ast_matchers::internal::getExpansionLocOfMacro | ( | StringRef | MacroName, |
SourceLocation | Loc, | ||
const ASTContext & | Context | ||
) |
Definition at line 699 of file ASTMatchersInternal.cpp.
References getExpansionLocOfMacro(), clang::SrcMgr::ExpansionInfo::getExpansionLocStart(), clang::SrcMgr::ExpansionInfo::getSpellingLoc(), clang::SrcMgr::ExpansionInfo::isMacroArgExpansion(), isTokenAtLoc(), Loc, and SM.
Referenced by clang::ast_matchers::AST_POLYMORPHIC_MATCHER_P(), and getExpansionLocOfMacro().
|
static |
Definition at line 495 of file ASTMatchersInternal.cpp.
References getNodeName(), and Node.
Referenced by getNodeName().
|
static |
Definition at line 521 of file ASTMatchersInternal.cpp.
References getNodeName(), and Node.
|
static |
Definition at line 512 of file ASTMatchersInternal.cpp.
References getNodeName(), and Node.
Matcher< NamedDecl > clang::ast_matchers::internal::hasAnyNameFunc | ( | ArrayRef< const StringRef * > | NameRefs | ) |
Definition at line 452 of file ASTMatchersInternal.cpp.
References vectorFromRefs().
HasOpNameMatcher clang::ast_matchers::internal::hasAnyOperatorNameFunc | ( | ArrayRef< const StringRef * > | NameRefs | ) |
Definition at line 462 of file ASTMatchersInternal.cpp.
References vectorFromRefs().
HasOverloadOpNameMatcher clang::ast_matchers::internal::hasAnyOverloadedOperatorNameFunc | ( | ArrayRef< const StringRef * > | NameRefs | ) |
Definition at line 467 of file ASTMatchersInternal.cpp.
References vectorFromRefs().
Matcher< ObjCMessageExpr > clang::ast_matchers::internal::hasAnySelectorFunc | ( | ArrayRef< const StringRef * > | NameRefs | ) |
Definition at line 457 of file ASTMatchersInternal.cpp.
References vectorFromRefs().
|
static |
Definition at line 687 of file ASTMatchersInternal.cpp.
References clang::Lexer::getSpelling(), clang::Invalid, isTokenAtLoc(), Loc, SM, and Text.
Referenced by getExpansionLocOfMacro(), and isTokenAtLoc().
bool clang::ast_matchers::internal::matchesAnyBase | ( | const CXXRecordDecl & | Node, |
const Matcher< CXXBaseSpecifier > & | BaseSpecMatcher, | ||
ASTMatchFinder * | Finder, | ||
BoundNodesTreeBuilder * | Builder | ||
) |
Definition at line 77 of file ASTMatchersInternal.cpp.
References Node, and clang::Result.
Referenced by clang::ast_matchers::AST_MATCHER_P().
|
static |
Definition at line 366 of file ASTMatchersInternal.cpp.
|
static |
Definition at line 431 of file ASTMatchersInternal.cpp.
References clang::Result.
|
inlinestatic |
Definition at line 444 of file ASTMatchersInternal.cpp.
Referenced by hasAnyNameFunc(), hasAnyOperatorNameFunc(), hasAnyOverloadedOperatorNameFunc(), and hasAnySelectorFunc().