Searched refs:MatcherCtor (Results 1 – 6 of 6) sorted by relevance
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/Dynamic/ |
| H A D | Parser.h | 88 virtual VariantMatcher actOnMatcherExpression(MatcherCtor Ctor, 100 virtual llvm::Optional<MatcherCtor> 103 virtual bool isBuilderMatcher(MatcherCtor) const = 0; 105 virtual ASTNodeKind nodeMatcherType(MatcherCtor) const = 0; 108 buildMatcherCtor(MatcherCtor, SourceRange NameRange, 120 llvm::ArrayRef<std::pair<MatcherCtor, unsigned>> Context); 141 llvm::Optional<MatcherCtor> 144 VariantMatcher actOnMatcherExpression(MatcherCtor Ctor, 153 bool isBuilderMatcher(MatcherCtor Ctor) const override; 155 ASTNodeKind nodeMatcherType(MatcherCtor) const override; [all …]
|
| H A D | Registry.h | 55 using MatcherCtor = const internal::MatcherDescriptor *; variable 86 static ASTNodeKind nodeMatcherType(MatcherCtor); 88 static bool isBuilderMatcher(MatcherCtor Ctor); 91 buildMatcherCtor(MatcherCtor, SourceRange NameRange, 98 static llvm::Optional<MatcherCtor> lookupMatcherCtor(StringRef MatcherName); 109 llvm::ArrayRef<std::pair<MatcherCtor, unsigned>> Context); 138 static VariantMatcher constructMatcher(MatcherCtor Ctor, 149 static VariantMatcher constructBoundMatcher(MatcherCtor Ctor,
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/Dynamic/ |
| H A D | RegistryTest.cpp | 37 llvm::Optional<MatcherCtor> lookupMatcherCtor(StringRef MatcherName) { in lookupMatcherCtor() 45 llvm::Optional<MatcherCtor> Ctor = lookupMatcherCtor(MatcherName); in constructMatcher() 58 llvm::Optional<MatcherCtor> Ctor = lookupMatcherCtor(MatcherName); in constructMatcher() 72 llvm::Optional<MatcherCtor> Ctor = lookupMatcherCtor(MatcherName); in constructMatcher() 84 std::vector<std::pair<MatcherCtor, unsigned> > Context; in getCompletions() 90 std::vector<std::pair<MatcherCtor, unsigned> > Context; in getCompletions() 91 llvm::Optional<MatcherCtor> Ctor = lookupMatcherCtor(MatcherName1); in getCompletions() 101 std::vector<std::pair<MatcherCtor, unsigned> > Context; in getCompletions() 102 llvm::Optional<MatcherCtor> Ctor = lookupMatcherCtor(MatcherName1); in getCompletions()
|
| H A D | ParserTest.cpp | 35 bool isBuilderMatcher(MatcherCtor) const override { return false; } in isBuilderMatcher() 37 ASTNodeKind nodeMatcherType(MatcherCtor) const override { return {}; } in nodeMatcherType() 40 buildMatcherCtor(MatcherCtor, SourceRange NameRange, in buildMatcherCtor() argument 54 llvm::Optional<MatcherCtor> 58 return reinterpret_cast<MatcherCtor>(Matcher); in lookupMatcherCtor() 61 VariantMatcher actOnMatcherExpression(MatcherCtor Ctor, in actOnMatcherExpression()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/ |
| H A D | Parser.cpp | 326 llvm::ArrayRef<std::pair<MatcherCtor, unsigned>> Context) { in getAcceptedCompletionTypes() argument 338 ScopedContextEntry(Parser *P, MatcherCtor C) : P(P) { in ScopedContextEntry() 441 llvm::Optional<MatcherCtor> Ctor = S->lookupMatcherCtor(NameToken.Text); in parseIdentifierPrefixImpl() 471 bool Parser::parseMatcherBuilder(MatcherCtor Ctor, const TokenInfo &NameToken, in parseMatcherBuilder() 520 llvm::Optional<MatcherCtor> MappedMatcher = in parseMatcherBuilder() 631 llvm::Optional<MatcherCtor> Ctor, in parseMatcherExpressionImpl() 831 llvm::Optional<MatcherCtor> 837 MatcherCtor Ctor, SourceRange NameRange, StringRef BindID, in actOnMatcherExpression() 848 ArrayRef<std::pair<MatcherCtor, unsigned>> Context) { in getAcceptedCompletionTypes() argument 857 bool Parser::RegistrySema::isBuilderMatcher(MatcherCtor Ctor) const { in isBuilderMatcher() [all …]
|
| H A D | Registry.cpp | 602 ASTNodeKind Registry::nodeMatcherType(MatcherCtor Ctor) { in nodeMatcherType() 611 bool Registry::isBuilderMatcher(MatcherCtor Ctor) { in isBuilderMatcher() 616 Registry::buildMatcherCtor(MatcherCtor Ctor, SourceRange NameRange, in buildMatcherCtor() 623 llvm::Optional<MatcherCtor> Registry::lookupMatcherCtor(StringRef MatcherName) { in lookupMatcherCtor() 626 ? llvm::Optional<MatcherCtor>() in lookupMatcherCtor() 647 ArrayRef<std::pair<MatcherCtor, unsigned>> Context) { in getAcceptedCompletionTypes() argument 664 MatcherCtor Ctor = CtxEntry.first; in getAcceptedCompletionTypes() 785 VariantMatcher Registry::constructMatcher(MatcherCtor Ctor, in constructMatcher() 792 VariantMatcher Registry::constructBoundMatcher(MatcherCtor Ctor, in constructBoundMatcher()
|