Home
last modified time | relevance | path

Searched refs:MatcherName (Results 1 – 10 of 10) sorted by relevance

/external/clang/lib/ASTMatchers/Dynamic/
DMarshallers.h185 StringRef MatcherName,
197 MarshallerType Marshaller, void (*Func)(), StringRef MatcherName,
200 : Marshaller(Marshaller), Func(Func), MatcherName(MatcherName),
207 return Marshaller(Func, MatcherName, NameRange, Args, Error);
226 const std::string MatcherName;
303 variadicMatcherDescriptor(StringRef MatcherName, SourceRange NameRange,
343 typedef VariantMatcher (*RunFunc)(StringRef MatcherName,
352 StringRef MatcherName)
354 MatcherName(MatcherName.str()),
362 return Func(MatcherName, NameRange, Args, Error);
[all …]
DDiagnostics.cpp25 StringRef MatcherName, in Context() argument
28 Error->pushContextFrame(CT_MatcherConstruct, MatcherRange) << MatcherName; in Context()
32 StringRef MatcherName, in Context() argument
37 << MatcherName; in Context()
DRegistry.cpp43 void registerMatcher(StringRef MatcherName, MatcherDescriptor *Callback);
47 void RegistryMaps::registerMatcher(StringRef MatcherName, in registerMatcher() argument
49 assert(Constructors.find(MatcherName) == Constructors.end()); in registerMatcher()
50 Constructors[MatcherName] = Callback; in registerMatcher()
433 llvm::Optional<MatcherCtor> Registry::lookupMatcherCtor(StringRef MatcherName) { in lookupMatcherCtor() argument
435 RegistryData->constructors().find(MatcherName); in lookupMatcherCtor()
DParser.cpp532 Parser::RegistrySema::lookupMatcherCtor(StringRef MatcherName) { in lookupMatcherCtor() argument
533 return Registry::lookupMatcherCtor(MatcherName); in lookupMatcherCtor()
/external/clang/include/clang/ASTMatchers/
DASTMatchersMacros.h364 #define AST_TYPE_MATCHER(NodeType, MatcherName) \ argument
366 Type, NodeType> MatcherName
377 #define AST_TYPE_TRAVERSE_MATCHER(MatcherName, FunctionName, ReturnTypesF) \ argument
379 template <typename T> struct TypeMatcher##MatcherName##Getter { \
385 ::clang::ast_matchers::internal::TypeMatcher##MatcherName##Getter, \
387 ReturnTypesF>::Func MatcherName
391 #define AST_TYPELOC_TRAVERSE_MATCHER(MatcherName, FunctionName, ReturnTypesF) \ argument
393 template <typename T> struct TypeLocMatcher##MatcherName##Getter { \
399 ::clang::ast_matchers::internal::TypeLocMatcher##MatcherName##Getter, \
401 ReturnTypesF>::Func MatcherName##Loc; \
[all …]
/external/clang/unittests/ASTMatchers/Dynamic/
DParserTest.cpp28 uint64_t expectMatcher(StringRef MatcherName) { in expectMatcher() argument
33 ExpectedMatchers.insert(std::make_pair(MatcherName, M)); in expectMatcher()
46 lookupMatcherCtor(StringRef MatcherName) override { in lookupMatcherCtor() argument
48 &*ExpectedMatchers.find(MatcherName); in lookupMatcherCtor()
65 StringRef MatcherName; member
141 EXPECT_EQ("Bar", Bar.MatcherName); in TEST()
147 EXPECT_EQ("Baz", Baz.MatcherName); in TEST()
153 EXPECT_EQ("Foo", Foo.MatcherName); in TEST()
DRegistryTest.cpp38 llvm::Optional<MatcherCtor> lookupMatcherCtor(StringRef MatcherName) { in lookupMatcherCtor() argument
39 return Registry::lookupMatcherCtor(MatcherName); in lookupMatcherCtor()
42 VariantMatcher constructMatcher(StringRef MatcherName, in constructMatcher() argument
46 llvm::Optional<MatcherCtor> Ctor = lookupMatcherCtor(MatcherName); in constructMatcher()
54 VariantMatcher constructMatcher(StringRef MatcherName, in constructMatcher() argument
59 llvm::Optional<MatcherCtor> Ctor = lookupMatcherCtor(MatcherName); in constructMatcher()
63 EXPECT_EQ("", DummyError.toStringFull()) << MatcherName; in constructMatcher()
67 VariantMatcher constructMatcher(StringRef MatcherName, in constructMatcher() argument
73 llvm::Optional<MatcherCtor> Ctor = lookupMatcherCtor(MatcherName); in constructMatcher()
/external/clang/include/clang/ASTMatchers/Dynamic/
DDiagnostics.h106 Context(ConstructMatcherEnum, Diagnostics *Error, StringRef MatcherName,
110 Context(MatcherArgEnum, Diagnostics *Error, StringRef MatcherName,
DParser.h96 lookupMatcherCtor(StringRef MatcherName) = 0;
129 lookupMatcherCtor(StringRef MatcherName) override;
DRegistry.h68 static llvm::Optional<MatcherCtor> lookupMatcherCtor(StringRef MatcherName);