| /src/contrib/llvm-project/clang/lib/AST/ |
| H A D | ParentMapContext.cpp | 45 DynTypedNode ParentMapContext::traverseIgnored(const DynTypedNode &N) const { in traverseIgnored() 47 return DynTypedNode::create(*traverseIgnored(E)); in traverseIgnored() 67 explicit ParentVector(size_t N, const DynTypedNode &Value) { in ParentVector() 72 bool contains(const DynTypedNode &Value) { in contains() 75 void push_back(const DynTypedNode &Value) { in push_back() 79 llvm::ArrayRef<DynTypedNode> view() const { return Items; } in view() 81 llvm::SmallVector<DynTypedNode, 2> Items; 82 llvm::SmallDenseSet<DynTypedNode, 2> Seen; 91 DynTypedNode *, ParentVector *>>; 96 llvm::DenseMap<DynTypedNode, [all …]
|
| H A D | ASTTypeTraits.cpp | 186 void DynTypedNode::print(llvm::raw_ostream &OS, in print() 221 void DynTypedNode::dump(llvm::raw_ostream &OS, in dump() 237 SourceRange DynTypedNode::getSourceRange() const { in getSourceRange()
|
| /src/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | ParentMapContext.h | 55 DynTypedNodeList getParents(const DynTypedNode &Node); 65 DynTypedNode traverseIgnored(const DynTypedNode &N) const; 94 DynTypedNode SingleNode; 95 ArrayRef<DynTypedNode> Nodes; 100 DynTypedNodeList(const DynTypedNode &N) : IsSingleNode(true) { in DynTypedNodeList() 101 new (&SingleNode) DynTypedNode(N); in DynTypedNodeList() 104 DynTypedNodeList(ArrayRef<DynTypedNode> A) : IsSingleNode(false) { in DynTypedNodeList() 105 new (&Nodes) ArrayRef<DynTypedNode>(A); in DynTypedNodeList() 108 const DynTypedNode *begin() const { in begin() 112 const DynTypedNode *end() const { in end() [all …]
|
| H A D | ASTTypeTraits.h | 257 class DynTypedNode { 261 static DynTypedNode create(const T &Node) { 318 bool operator<(const DynTypedNode &Other) const { 348 bool operator==(const DynTypedNode &Other) const { 368 bool operator!=(const DynTypedNode &Other) const { 375 static inline DynTypedNode getEmptyKey() { 376 DynTypedNode Node; 380 static inline DynTypedNode getTombstoneKey() { 381 DynTypedNode Node; 385 static unsigned getHashValue(const DynTypedNode &Val) { [all …]
|
| H A D | ASTNodeTraverser.h | 314 void Visit(const DynTypedNode &N) { in Visit()
|
| /src/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchFinder.h | 195 match(clang::DynTypedNode::create(Node), Context); in match() 197 void match(const clang::DynTypedNode &Node, ASTContext &Context); 257 SmallVector<BoundNodes, 1> match(MatcherT Matcher, const DynTypedNode &Node, 302 SmallVector<BoundNodes, 1> match(MatcherT Matcher, const DynTypedNode &Node, in match() 314 return match(Matcher, DynTypedNode::create(Node), Context); in match() 328 matchDynamic(internal::DynTypedMatcher Matcher, const DynTypedNode &Node, in matchDynamic() 341 return matchDynamic(Matcher, DynTypedNode::create(Node), Context); in matchDynamic()
|
| H A D | ASTMatchersInternal.h | 216 void addNode(StringRef ID, const DynTypedNode &DynNode) { 233 DynTypedNode getNode(StringRef ID) const { 236 return DynTypedNode(); 251 using IDToNodeMap = std::map<std::string, DynTypedNode, std::less<>>; 290 void setBinding(StringRef Id, const DynTypedNode &DynNode) { 346 virtual bool dynMatches(const DynTypedNode &DynNode, ASTMatchFinder *Finder, 372 bool dynMatches(const DynTypedNode &DynNode, ASTMatchFinder *Finder, 469 bool matches(const DynTypedNode &DynNode, ASTMatchFinder *Finder, 476 bool matchesNoKindCheck(const DynTypedNode &DynNode, ASTMatchFinder *Finder, 609 return Implementation.matches(DynTypedNode::create(Node), Finder, Builder); [all …]
|
| H A D | ASTMatchers.h | 5672 Predicate.Node = DynTypedNode::create(Node); in AST_POLYMORPHIC_MATCHER_P() 8319 llvm::SmallVector<DynTypedNode, 8> Stack(Parents.begin(), Parents.end()); in AST_MATCHER_P() 8369 llvm::SmallVector<DynTypedNode, 8> Stack(Parents.begin(), Parents.end()); in AST_MATCHER_P()
|
| /src/contrib/llvm-project/clang/lib/ASTMatchers/ |
| H A D | ASTMatchFinder.cpp | 70 DynTypedNode Node; 118 bool findMatch(const DynTypedNode &DynNode) { in findMatch() 378 if (Matcher->matches(DynTypedNode::create(Node), Finder, in match() 386 if (Matcher->matches(DynTypedNode::create(Node), Finder, in match() 596 bool memoizedMatchesRecursively(const DynTypedNode &Node, ASTContext &Ctx, in memoizedMatchesRecursively() 631 bool matchesRecursively(const DynTypedNode &Node, in matchesRecursively() 671 bool matchesChildOf(const DynTypedNode &Node, ASTContext &Ctx, in matchesChildOf() 679 bool matchesDescendantOf(const DynTypedNode &Node, ASTContext &Ctx, in matchesDescendantOf() 689 bool matchesAncestorOf(const DynTypedNode &Node, ASTContext &Ctx, in matchesAncestorOf() 704 void match(const DynTypedNode &Node) { in match() [all …]
|
| H A D | ASTMatchersInternal.cpp | 52 static bool notUnaryOperator(const DynTypedNode &DynNode, 57 static bool allOfVariadicOperator(const DynTypedNode &DynNode, 62 static bool eachOfVariadicOperator(const DynTypedNode &DynNode, 67 static bool anyOfVariadicOperator(const DynTypedNode &DynNode, 72 static bool optionallyVariadicOperator(const DynTypedNode &DynNode, 112 const DynTypedNode &DynNode, ASTMatchFinder *Finder, 121 bool dynMatches(const DynTypedNode &DynNode, ASTMatchFinder *Finder, in dynMatches() 136 bool dynMatches(const DynTypedNode &DynNode, ASTMatchFinder *Finder, in dynMatches() 157 bool dynMatches(const DynTypedNode &, ASTMatchFinder *, in dynMatches() argument 174 bool dynMatches(const DynTypedNode &DynNode, ASTMatchFinder *Finder, in dynMatches() [all …]
|
| /src/contrib/llvm-project/clang/include/clang/Tooling/ASTDiff/ |
| H A D | ASTDiffInternal.h | 18 using DynTypedNode = DynTypedNode; variable
|
| H A D | ASTDiff.h | 41 DynTypedNode ASTNode;
|
| /src/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
| H A D | RangeSelector.cpp | 54 static Expected<DynTypedNode> getNode(const ast_matchers::BoundNodes &Nodes, in getNode() 136 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in node() 149 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in statement() 183 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in member() 195 Expected<DynTypedNode> N = getNode(Result.Nodes, ID); in name() 255 Expected<DynTypedNode> N = getNode(Result.Nodes, ID); in operator ()()
|
| H A D | Stencil.cpp | 36 static llvm::Expected<DynTypedNode> getNode(const BoundNodes &Nodes, in getNode()
|
| H A D | RewriteRule.cpp | 328 transformer::detail::rewriteDescendants(const DynTypedNode &DNode, in rewriteDescendants()
|
| /src/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/ |
| H A D | ASTSelection.h | 53 DynTypedNode Node; 57 SelectedASTNode(const DynTypedNode &Node, SourceSelectionKind SelectionKind) in SelectedASTNode()
|
| /src/contrib/llvm-project/clang/lib/Tooling/Refactoring/ |
| H A D | ASTSelection.cpp | 50 SelectedASTNode(DynTypedNode::create(*Context.getTranslationUnitDecl()), in ASTSelectionFinder() 98 SelectedASTNode(DynTypedNode::create(*D), SelectionKind)); in TraverseDecl() 126 SelectedASTNode(DynTypedNode::create(*S), SelectionKind)); in TraverseStmt() 425 const DynTypedNode &Node = Parent.get().Node; in isInFunctionLikeBodyOfCode() 443 const DynTypedNode &Node = Parent.get().Node; in getFunctionLikeNearestParent()
|
| /src/contrib/llvm-project/clang/include/clang/Tooling/Transformer/ |
| H A D | RewriteRule.h | 505 rewriteDescendants(const DynTypedNode &Node, RewriteRule Rule,
|
| /src/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRLocFinder.cpp | 449 getClosestAncestorDecl(DynTypedNode::create(TargetLoc)), in VisitTypeLoc()
|
| /src/contrib/llvm-project/clang/lib/Tooling/ASTDiff/ |
| H A D | ASTDiff.cpp | 202 N.ASTNode = DynTypedNode::create(*ASTNode); in PreTraverse() 413 const DynTypedNode &DTN = N.ASTNode; in getNodeValue()
|
| /src/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | UnsafeBufferUsage.cpp | 102 bool findMatch(const DynTypedNode &DynNode) { in findMatch() 195 if (Matcher->matches(DynTypedNode::create(Node), Finder, in match() 227 return Visitor.findMatch(DynTypedNode::create(Node)); in AST_MATCHER_P() 236 return Visitor.findMatch(DynTypedNode::create(Node)); in AST_MATCHER_P()
|
| /src/contrib/llvm-project/clang/lib/InstallAPI/ |
| H A D | Visitor.cpp | 258 for (const DynTypedNode &P : D->getASTContext().getParents(*M)) { in VisitFunctionDecl()
|