Home
last modified time | relevance | path

Searched refs:DynTypedMatcher (Results 1 – 14 of 14) sorted by relevance

/external/clang/lib/ASTMatchers/
DASTMatchersInternal.cpp26 ArrayRef<DynTypedMatcher> InnerMatchers);
31 ArrayRef<DynTypedMatcher> InnerMatchers);
36 ArrayRef<DynTypedMatcher> InnerMatchers);
41 ArrayRef<DynTypedMatcher> InnerMatchers);
56 BoundNodesTreeBuilder *Builder, ArrayRef<DynTypedMatcher> InnerMatchers);
61 VariadicMatcher(std::vector<DynTypedMatcher> InnerMatchers) in VariadicMatcher()
71 std::vector<DynTypedMatcher> InnerMatchers;
112 DynTypedMatcher DynTypedMatcher::constructVariadic( in constructVariadic()
113 DynTypedMatcher::VariadicOperator Op, in constructVariadic()
115 std::vector<DynTypedMatcher> InnerMatchers) { in constructVariadic()
[all …]
DASTMatchFinder.cpp60 DynTypedMatcher::MatcherIDType MatcherID;
87 MatchChildASTVisitor(const DynTypedMatcher *Matcher, in MatchChildASTVisitor()
280 const DynTypedMatcher *const Matcher;
377 const DynTypedMatcher &Matcher, in memoizedMatchesRecursively()
411 const DynTypedMatcher &Matcher, in matchesRecursively()
425 const DynTypedMatcher &Matcher, in matchesChildOf()
436 const DynTypedMatcher &Matcher, in matchesDescendantOf()
446 const DynTypedMatcher &Matcher, in matchesAncestorOf()
613 const ast_type_traits::DynTypedNode &Node, const DynTypedMatcher &Matcher, in memoizedMatchesAncestorOfRecursively()
649 const DynTypedMatcher &Matcher, in matchesAncestorOfRecursively()
[all …]
/external/clang/lib/ASTMatchers/Dynamic/
DVariantValue.cpp53 VariantMatcher::MatcherOps::canConstructFrom(const DynTypedMatcher &Matcher, in canConstructFrom()
59 llvm::Optional<DynTypedMatcher>
61 DynTypedMatcher::VariadicOperator Op, in constructVariadicOperator()
63 std::vector<DynTypedMatcher> DynMatchers; in constructVariadicOperator()
69 llvm::Optional<DynTypedMatcher> Inner = in constructVariadicOperator()
75 return DynTypedMatcher::constructVariadic(Op, NodeKind, DynMatchers); in constructVariadicOperator()
82 SinglePayload(const DynTypedMatcher &Matcher) : Matcher(Matcher) {} in SinglePayload()
84 llvm::Optional<DynTypedMatcher> getSingleMatcher() const override { in getSingleMatcher()
93 llvm::Optional<DynTypedMatcher>
108 const DynTypedMatcher Matcher;
[all …]
DParser.cpp591 llvm::Optional<DynTypedMatcher>
597 return llvm::Optional<DynTypedMatcher>(); in parseMatcherExpression()
600 return llvm::Optional<DynTypedMatcher>(); in parseMatcherExpression()
602 llvm::Optional<DynTypedMatcher> Result = in parseMatcherExpression()
DMarshallers.h235 std::vector<DynTypedMatcher> &Out,
240 std::vector<DynTypedMatcher> &Out, TypeList) {
251 static VariantMatcher outvalueToVariantMatcher(const DynTypedMatcher &Matcher) {
259 std::vector<DynTypedMatcher> Matchers;
585 typedef DynTypedMatcher::VariadicOperator VarOp;
DRegistry.cpp587 llvm::Optional<DynTypedMatcher> Result = Out.getSingleMatcher(); in constructBoundMatcher()
589 llvm::Optional<DynTypedMatcher> Bound = Result->tryBind(BindID); in constructBoundMatcher()
/external/clang/include/clang/ASTMatchers/Dynamic/
DVariantValue.h77 using ast_matchers::internal::DynTypedMatcher;
98 bool canConstructFrom(const DynTypedMatcher &Matcher,
103 virtual DynTypedMatcher
104 convertMatcher(const DynTypedMatcher &Matcher) const = 0;
109 llvm::Optional<DynTypedMatcher>
110 constructVariadicOperator(DynTypedMatcher::VariadicOperator Op,
126 virtual llvm::Optional<DynTypedMatcher> getSingleMatcher() const = 0;
128 virtual llvm::Optional<DynTypedMatcher>
139 static VariantMatcher SingleMatcher(const DynTypedMatcher &Matcher);
145 PolymorphicMatcher(std::vector<DynTypedMatcher> Matchers);
[all …]
DParser.h161 static llvm::Optional<DynTypedMatcher>
165 static llvm::Optional<DynTypedMatcher>
170 static llvm::Optional<DynTypedMatcher>
/external/clang/include/clang/ASTMatchers/
DASTMatchersInternal.h315 class DynTypedMatcher {
319 DynTypedMatcher(MatcherInterface<T> *Implementation) in DynTypedMatcher() function
340 static DynTypedMatcher
343 std::vector<DynTypedMatcher> InnerMatchers);
348 static DynTypedMatcher trueMatcher(ast_type_traits::ASTNodeKind NodeKind);
359 DynTypedMatcher dynCastTo(const ast_type_traits::ASTNodeKind Kind) const;
376 llvm::Optional<DynTypedMatcher> tryBind(StringRef ID) const;
428 DynTypedMatcher(ast_type_traits::ASTNodeKind SupportedKind, in DynTypedMatcher() function
453 explicit WrapperMatcherInterface(DynTypedMatcher &&InnerMatcher) in WrapperMatcherInterface()
456 const DynTypedMatcher InnerMatcher;
[all …]
DASTMatchFinder.h171 bool addDynamicMatcher(const internal::DynTypedMatcher &NodeMatch,
203 std::vector<std::pair<internal::DynTypedMatcher, MatchCallback *>>
DASTMatchers.h2008 internal::DynTypedMatcher::VO_EachOf
2015 internal::DynTypedMatcher::VO_AnyOf
2022 internal::DynTypedMatcher::VO_AllOf
2396 internal::DynTypedMatcher::VO_UnaryNot
/external/clang/unittests/ASTMatchers/Dynamic/
DParserTest.cpp115 llvm::Optional<DynTypedMatcher> getSingleMatcher(const VariantValue &Value) { in getSingleMatcher()
116 llvm::Optional<DynTypedMatcher> Result = in getSingleMatcher()
173 llvm::Optional<DynTypedMatcher> VarDecl(Parser::parseMatcherExpression( in TEST()
184 llvm::Optional<DynTypedMatcher> HasParameter(Parser::parseMatcherExpression( in TEST()
194 llvm::Optional<DynTypedMatcher> HasParameterWithNamedValues( in TEST()
DVariantValueTest.cpp44 TEST(VariantValueTest, DynTypedMatcher) { in TEST() argument
/external/clang/unittests/ASTMatchers/
DASTMatchersInternalTest.cpp48 internal::DynTypedMatcher::constructVariadic( in TEST()
49 internal::DynTypedMatcher::VO_AnyOf, in TEST()