Home
last modified time | relevance | path

Searched refs:DynTypedNode (Results 1 – 11 of 11) sorted by relevance

/external/clang/include/clang/AST/
DASTTypeTraits.h201 class DynTypedNode {
205 static DynTypedNode create(const T &Node) {
259 bool operator<(const DynTypedNode &Other) const {
263 bool operator==(const DynTypedNode &Other) const {
276 bool operator!=(const DynTypedNode &Other) const {
296 static DynTypedNode create(const BaseT &Node) {
297 DynTypedNode Result;
316 static DynTypedNode create(const T &Node) {
317 DynTypedNode Result;
336 static DynTypedNode create(const T &Node) {
[all …]
DASTContext.h436 typedef llvm::SmallVector<ast_type_traits::DynTypedNode, 2> ParentVector;
440 llvm::PointerUnion<ast_type_traits::DynTypedNode *,
468 ArrayRef<ast_type_traits::DynTypedNode> getParents(const NodeT &Node) { in getParents()
469 return getParents(ast_type_traits::DynTypedNode::create(Node)); in getParents()
472 ArrayRef<ast_type_traits::DynTypedNode>
473 getParents(const ast_type_traits::DynTypedNode &Node);
/external/clang/unittests/AST/
DASTTypeTraitsTest.cpp116 TEST(DynTypedNode, DeclSourceRange) { in TEST() argument
117 RangeVerifier<DynTypedNode> Verifier; in TEST()
122 TEST(DynTypedNode, StmtSourceRange) { in TEST() argument
123 RangeVerifier<DynTypedNode> Verifier; in TEST()
128 TEST(DynTypedNode, TypeLocSourceRange) { in TEST() argument
129 RangeVerifier<DynTypedNode> Verifier; in TEST()
134 TEST(DynTypedNode, NNSLocSourceRange) { in TEST() argument
135 RangeVerifier<DynTypedNode> Verifier; in TEST()
141 TEST(DynTypedNode, DeclDump) { in TEST() argument
147 TEST(DynTypedNode, StmtDump) { in TEST() argument
[all …]
DMatchVerifier.h143 inline void MatchVerifier<ast_type_traits::DynTypedNode>::run( in run()
241 class DumpVerifier : public MatchVerifier<ast_type_traits::DynTypedNode> {
249 const ast_type_traits::DynTypedNode &Node) override { in verify()
268 class PrintVerifier : public MatchVerifier<ast_type_traits::DynTypedNode> {
276 const ast_type_traits::DynTypedNode &Node) override { in verify()
/external/clang/lib/ASTMatchers/
DASTMatchersInternal.cpp23 bool NotUnaryOperator(const ast_type_traits::DynTypedNode DynNode,
27 bool AllOfVariadicOperator(const ast_type_traits::DynTypedNode DynNode,
32 bool EachOfVariadicOperator(const ast_type_traits::DynTypedNode DynNode,
37 bool AnyOfVariadicOperator(const ast_type_traits::DynTypedNode DynNode,
54 const ast_type_traits::DynTypedNode DynNode, ASTMatchFinder *Finder,
63 bool dynMatches(const ast_type_traits::DynTypedNode &DynNode, in dynMatches()
79 bool dynMatches(const ast_type_traits::DynTypedNode &DynNode, in dynMatches()
102 bool dynMatches(const ast_type_traits::DynTypedNode &, ASTMatchFinder *, in dynMatches() argument
181 bool DynTypedMatcher::matches(const ast_type_traits::DynTypedNode &DynNode, in matches()
196 const ast_type_traits::DynTypedNode &DynNode, ASTMatchFinder *Finder, in matchesNoKindCheck()
[all …]
DASTMatchFinder.cpp61 ast_type_traits::DynTypedNode Node;
113 bool findMatch(const ast_type_traits::DynTypedNode &DynNode) { in findMatch()
254 if (Matcher->matches(ast_type_traits::DynTypedNode::create(Node), Finder, in match()
262 if (Matcher->matches(ast_type_traits::DynTypedNode::create(Node), Finder, in match()
379 bool memoizedMatchesRecursively(const ast_type_traits::DynTypedNode &Node, in memoizedMatchesRecursively()
413 bool matchesRecursively(const ast_type_traits::DynTypedNode &Node, in matchesRecursively()
427 bool matchesChildOf(const ast_type_traits::DynTypedNode &Node, in matchesChildOf()
438 bool matchesDescendantOf(const ast_type_traits::DynTypedNode &Node, in matchesDescendantOf()
448 bool matchesAncestorOf(const ast_type_traits::DynTypedNode &Node, in matchesAncestorOf()
462 void match(const ast_type_traits::DynTypedNode &Node) { in match()
[all …]
/external/clang/include/clang/ASTMatchers/
DASTMatchFinder.h183 match(clang::ast_type_traits::DynTypedNode::create(Node), Context); in match()
185 void match(const clang::ast_type_traits::DynTypedNode &Node,
239 match(MatcherT Matcher, const ast_type_traits::DynTypedNode &Node,
275 match(MatcherT Matcher, const ast_type_traits::DynTypedNode &Node, in match()
287 return match(Matcher, ast_type_traits::DynTypedNode::create(Node), Context); in match()
DASTMatchersInternal.h68 void addNode(StringRef ID, const ast_type_traits::DynTypedNode& DynNode) { in addNode()
85 ast_type_traits::DynTypedNode getNode(StringRef ID) const { in getNode()
88 return ast_type_traits::DynTypedNode(); in getNode()
103 typedef std::map<std::string, ast_type_traits::DynTypedNode> IDToNodeMap;
143 const ast_type_traits::DynTypedNode &DynNode) { in setBinding()
197 virtual bool dynMatches(const ast_type_traits::DynTypedNode &DynNode,
222 bool dynMatches(const ast_type_traits::DynTypedNode &DynNode, in dynMatches()
303 bool matches(const ast_type_traits::DynTypedNode &DynNode,
310 bool matchesNoKindCheck(const ast_type_traits::DynTypedNode &DynNode,
450 return Implementation.matches(ast_type_traits::DynTypedNode::create(Node), in matches()
[all …]
DASTMatchers.h2772 Predicate.Node = ast_type_traits::DynTypedNode::create(Node); in AST_POLYMORPHIC_MATCHER_P()
/external/clang/lib/AST/
DASTTypeTraits.cpp112 void DynTypedNode::print(llvm::raw_ostream &OS, in print()
134 void DynTypedNode::dump(llvm::raw_ostream &OS, SourceManager &SM) const { in dump()
143 SourceRange DynTypedNode::getSourceRange() const { in getSourceRange()
DASTContext.cpp792 if (Entry.second.is<ast_type_traits::DynTypedNode *>()) { in ReleaseParentMapEntries()
793 delete Entry.second.get<ast_type_traits::DynTypedNode *>(); in ReleaseParentMapEntries()
8328 NodeOrVector = new ast_type_traits::DynTypedNode(ParentStack.back()); in TraverseNode()
8330 if (NodeOrVector.template is<ast_type_traits::DynTypedNode *>()) { in TraverseNode()
8332 NodeOrVector.template get<ast_type_traits::DynTypedNode *>(); in TraverseNode()
8352 ParentStack.push_back(ast_type_traits::DynTypedNode::create(*Node)); in TraverseNode()
8367 llvm::SmallVector<ast_type_traits::DynTypedNode, 16> ParentStack;
8374 ArrayRef<ast_type_traits::DynTypedNode>
8375 ASTContext::getParents(const ast_type_traits::DynTypedNode &Node) { in getParents()
8389 if (auto *N = I->second.dyn_cast<ast_type_traits::DynTypedNode *>()) { in getParents()