Home
last modified time | relevance | path

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

/external/clang/lib/ASTMatchers/Dynamic/
DMarshallers.h189 StringRef MatcherName,
201 MarshallerType Marshaller, void (*Func)(), StringRef MatcherName,
204 : Marshaller(Marshaller), Func(Func), MatcherName(MatcherName),
210 return Marshaller(Func, MatcherName, NameRange, Args, Error);
228 const std::string MatcherName;
305 variadicMatcherDescriptor(StringRef MatcherName, const SourceRange &NameRange,
345 typedef VariantMatcher (*RunFunc)(StringRef MatcherName,
353 StringRef MatcherName)
355 MatcherName(MatcherName.str()),
362 return Func(MatcherName, NameRange, Args, Error);
[all …]
DDiagnostics.cpp26 StringRef MatcherName, in Context() argument
29 Error->pushContextFrame(CT_MatcherConstruct, MatcherRange) << MatcherName; in Context()
33 StringRef MatcherName, in Context() argument
38 << MatcherName; in Context()
DRegistry.cpp42 void registerMatcher(StringRef MatcherName, MatcherDescriptor *Callback);
46 void RegistryMaps::registerMatcher(StringRef MatcherName, in registerMatcher() argument
48 assert(Constructors.find(MatcherName) == Constructors.end()); in registerMatcher()
49 Constructors[MatcherName] = Callback; in registerMatcher()
330 llvm::Optional<MatcherCtor> Registry::lookupMatcherCtor(StringRef MatcherName) { in lookupMatcherCtor() argument
332 RegistryData->constructors().find(MatcherName); in lookupMatcherCtor()
DParser.cpp504 Parser::RegistrySema::lookupMatcherCtor(StringRef MatcherName) { in lookupMatcherCtor() argument
505 return Registry::lookupMatcherCtor(MatcherName); in lookupMatcherCtor()
/external/clang/include/clang/ASTMatchers/
DASTMatchersMacros.h320 #define AST_TYPE_MATCHER(NodeType, MatcherName) \ argument
321 const internal::VariadicDynCastAllOfMatcher<Type, NodeType> MatcherName
332 #define AST_TYPE_TRAVERSE_MATCHER(MatcherName, FunctionName, ReturnTypesF) \ argument
334 template <typename T> struct TypeMatcher##MatcherName##Getter { \
339 QualType, internal::TypeMatcher##MatcherName##Getter, \
340 internal::TypeTraverseMatcher, ReturnTypesF>::Func MatcherName
344 #define AST_TYPELOC_TRAVERSE_MATCHER(MatcherName, FunctionName, ReturnTypesF) \ argument
346 template <typename T> struct TypeLocMatcher##MatcherName##Getter { \
351 TypeLoc, internal::TypeLocMatcher##MatcherName##Getter, \
352 internal::TypeLocTraverseMatcher, ReturnTypesF>::Func MatcherName##Loc; \
[all …]
/external/clang/unittests/ASTMatchers/Dynamic/
DParserTest.cpp28 uint64_t expectMatcher(StringRef MatcherName) { in expectMatcher() argument
30 ExpectedMatchers.insert(std::make_pair(MatcherName, M)); in expectMatcher()
42 llvm::Optional<MatcherCtor> lookupMatcherCtor(StringRef MatcherName) { in lookupMatcherCtor() argument
44 &*ExpectedMatchers.find(MatcherName); in lookupMatcherCtor()
61 StringRef MatcherName; member
133 EXPECT_EQ("Bar", Bar.MatcherName); in TEST()
139 EXPECT_EQ("Baz", Baz.MatcherName); in TEST()
145 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/
DParser.h107 lookupMatcherCtor(StringRef MatcherName) = 0;
117 lookupMatcherCtor(StringRef MatcherName) override;
DDiagnostics.h106 Context(ConstructMatcherEnum, Diagnostics *Error, StringRef MatcherName,
110 Context(MatcherArgEnum, Diagnostics *Error, StringRef MatcherName,
DRegistry.h59 static llvm::Optional<MatcherCtor> lookupMatcherCtor(StringRef MatcherName);