Searched refs:VariantMatcher (Results 1 – 10 of 10) sorted by relevance
/external/clang/lib/ASTMatchers/Dynamic/ |
D | VariantValue.cpp | 53 VariantMatcher::MatcherOps::canConstructFrom(const DynTypedMatcher &Matcher, in canConstructFrom() 60 VariantMatcher::MatcherOps::constructVariadicOperator( in constructVariadicOperator() 62 ArrayRef<VariantMatcher> InnerMatchers) const { in constructVariadicOperator() 78 VariantMatcher::Payload::~Payload() {} in ~Payload() 80 class VariantMatcher::SinglePayload : public VariantMatcher::Payload { 111 class VariantMatcher::PolymorphicPayload : public VariantMatcher::Payload { 177 class VariantMatcher::VariadicOpPayload : public VariantMatcher::Payload { 180 std::vector<VariantMatcher> Args) in VariadicOpPayload() 204 for (const VariantMatcher &Matcher : Args) { in isConvertibleTo() 213 const std::vector<VariantMatcher> Args; [all …]
|
D | Marshallers.h | 128 virtual VariantMatcher create(SourceRange NameRange, 184 typedef VariantMatcher (*MarshallerType)(void (*Func)(), 204 VariantMatcher create(SourceRange NameRange, 251 static VariantMatcher outvalueToVariantMatcher(const DynTypedMatcher &Matcher) { 252 return VariantMatcher::SingleMatcher(Matcher); 256 static VariantMatcher outvalueToVariantMatcher(const T &PolyMatcher, 261 VariantMatcher Out = VariantMatcher::PolymorphicMatcher(std::move(Matchers)); 302 VariantMatcher 321 VariantMatcher Out; 343 typedef VariantMatcher (*RunFunc)(StringRef MatcherName, [all …]
|
D | Registry.cpp | 571 VariantMatcher Registry::constructMatcher(MatcherCtor Ctor, in constructMatcher() 579 VariantMatcher Registry::constructBoundMatcher(MatcherCtor Ctor, in constructBoundMatcher() 584 VariantMatcher Out = constructMatcher(Ctor, NameRange, Args, Error); in constructBoundMatcher() 591 return VariantMatcher::SingleMatcher(*Bound); in constructBoundMatcher() 595 return VariantMatcher(); in constructBoundMatcher()
|
D | Parser.cpp | 429 VariantMatcher Result = S->actOnMatcherExpression( in parseMatcherExpressionImpl() 536 VariantMatcher Parser::RegistrySema::actOnMatcherExpression( in actOnMatcherExpression()
|
/external/clang/include/clang/ASTMatchers/Dynamic/ |
D | VariantValue.h | 92 class VariantMatcher { 111 ArrayRef<VariantMatcher> InnerMatchers) const; 136 VariantMatcher(); 139 static VariantMatcher SingleMatcher(const DynTypedMatcher &Matcher); 144 static VariantMatcher 150 static VariantMatcher 152 std::vector<VariantMatcher> Args); 212 explicit VariantMatcher(Payload *Value) : Value(Value) {} in VariantMatcher() function 224 struct VariantMatcher::TypedMatcherOps final : VariantMatcher::MatcherOps { 258 VariantValue(const VariantMatcher &Matchers); [all …]
|
D | Registry.h | 108 static VariantMatcher constructMatcher(MatcherCtor Ctor, 119 static VariantMatcher constructBoundMatcher(MatcherCtor Ctor,
|
D | Parser.h | 83 virtual VariantMatcher actOnMatcherExpression(MatcherCtor Ctor, 131 VariantMatcher actOnMatcherExpression(MatcherCtor Ctor,
|
/external/clang/unittests/ASTMatchers/Dynamic/ |
D | VariantValueTest.cpp | 45 VariantValue Value = VariantMatcher::SingleMatcher(stmt()); in TEST() 57 Value = VariantMatcher::SingleMatcher(recordDecl()); in TEST() 63 Value = VariantMatcher::SingleMatcher(ignoringImpCasts(expr())); in TEST() 82 Value = VariantMatcher::SingleMatcher(recordDecl()); in TEST() 125 EXPECT_TRUE(matches("class X {};", VariantValue(VariantMatcher::SingleMatcher( in TEST() 130 matches("int x;", VariantValue(VariantMatcher::SingleMatcher(varDecl())) in TEST() 135 VariantValue(VariantMatcher::SingleMatcher(functionDecl())) in TEST() 139 EXPECT_FALSE(VariantValue(VariantMatcher::SingleMatcher(varDecl())) in TEST() 146 EXPECT_DEATH(VariantValue(VariantMatcher::SingleMatcher(varDecl())) in TEST() 153 "int x;", VariantValue(VariantMatcher::SingleMatcher(functionDecl())) in TEST() [all …]
|
D | RegistryTest.cpp | 42 VariantMatcher constructMatcher(StringRef MatcherName, in constructMatcher() 47 VariantMatcher Out; in constructMatcher() 54 VariantMatcher constructMatcher(StringRef MatcherName, in constructMatcher() 60 VariantMatcher Out; in constructMatcher() 67 VariantMatcher constructMatcher(StringRef MatcherName, in constructMatcher() 74 VariantMatcher Out; in constructMatcher() 217 "loc", VariantMatcher::SingleMatcher(nestedNameSpecifier( in TEST_F() 231 const VariantMatcher IsDefinition = constructMatcher("isDefinition"); in TEST_F() 248 VariantMatcher::SingleMatcher(Anything)).getTypedMatcher<Decl>(); in TEST_F()
|
D | ParserTest.cpp | 52 VariantMatcher actOnMatcherExpression(MatcherCtor Ctor, in actOnMatcherExpression() 61 return VariantMatcher::SingleMatcher(Matcher->second); in actOnMatcherExpression() 167 VariantMatcher::SingleMatcher(hasParameter(0, hasName("a"))); in getTestNamedValues()
|