Home
last modified time | relevance | path

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

/external/clang/lib/ASTMatchers/
DASTMatchersInternal.cpp25 ArrayRef<DynTypedMatcher> InnerMatchers);
30 ArrayRef<DynTypedMatcher> InnerMatchers);
35 ArrayRef<DynTypedMatcher> InnerMatchers);
40 ArrayRef<DynTypedMatcher> InnerMatchers);
55 BoundNodesTreeBuilder *Builder, ArrayRef<DynTypedMatcher> InnerMatchers);
60 VariadicMatcher(std::vector<DynTypedMatcher> InnerMatchers) in VariadicMatcher()
70 std::vector<DynTypedMatcher> InnerMatchers;
111 DynTypedMatcher DynTypedMatcher::constructVariadic( in constructVariadic()
112 DynTypedMatcher::VariadicOperator Op, in constructVariadic()
114 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()
944 bool MatchFinder::addDynamicMatcher(const internal::DynTypedMatcher &NodeMatch, in addDynamicMatcher()
/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.h214 std::vector<DynTypedMatcher> &Out,
219 std::vector<DynTypedMatcher> &Out, TypeList) {
230 static VariantMatcher outvalueToVariantMatcher(const DynTypedMatcher &Matcher) {
238 std::vector<DynTypedMatcher> Matchers;
564 typedef DynTypedMatcher::VariadicOperator VarOp;
DRegistry.cpp545 llvm::Optional<DynTypedMatcher> Result = Out.getSingleMatcher(); in constructBoundMatcher()
547 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.h258 class DynTypedMatcher {
262 DynTypedMatcher(MatcherInterface<T> *Implementation) in DynTypedMatcher() function
283 static DynTypedMatcher
286 std::vector<DynTypedMatcher> InnerMatchers);
291 static DynTypedMatcher trueMatcher(ast_type_traits::ASTNodeKind NodeKind);
302 DynTypedMatcher dynCastTo(const ast_type_traits::ASTNodeKind Kind) const;
319 llvm::Optional<DynTypedMatcher> tryBind(StringRef ID) const;
371 DynTypedMatcher(ast_type_traits::ASTNodeKind SupportedKind, in DynTypedMatcher() function
396 explicit WrapperMatcherInterface(DynTypedMatcher &&InnerMatcher) in WrapperMatcherInterface()
399 const DynTypedMatcher InnerMatcher;
[all …]
DASTMatchFinder.h171 bool addDynamicMatcher(const internal::DynTypedMatcher &NodeMatch,
203 std::vector<std::pair<internal::DynTypedMatcher, MatchCallback *>>
DASTMatchers.h1748 internal::DynTypedMatcher::VO_EachOf
1755 internal::DynTypedMatcher::VO_AnyOf
1762 internal::DynTypedMatcher::VO_AllOf
2103 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.cpp19 using ast_matchers::internal::DynTypedMatcher;
47 TEST(VariantValueTest, DynTypedMatcher) { in TEST() argument
/external/clang/unittests/ASTMatchers/
DASTMatchersTest.cpp459 internal::DynTypedMatcher::constructVariadic( in TEST()
460 internal::DynTypedMatcher::VO_AnyOf, in TEST()