Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DParentMapContext.cpp45 DynTypedNode ParentMapContext::traverseIgnored(const DynTypedNode &N) const { in traverseIgnored()
77 llvm::DenseMap<DynTypedNode,
85 static DynTypedNode
88 return DynTypedNode::create(*D); in getSingleDynTypedNodeFromParentMap()
90 return DynTypedNode::create(*S); in getSingleDynTypedNodeFromParentMap()
91 return *U.get<DynTypedNode *>(); in getSingleDynTypedNodeFromParentMap()
264 return DynTypedNode::create(*E); in AscendIgnoreUnlessSpelledInSource()
315 return DynTypedNode::create(*Node); in createDynTypedNode()
318 return DynTypedNode::create(Node); in createDynTypedNode()
322 return DynTypedNode::create(Node); in createDynTypedNode()
[all …]
H A DASTTypeTraits.cpp186 void DynTypedNode::print(llvm::raw_ostream &OS, in print()
221 void DynTypedNode::dump(llvm::raw_ostream &OS, in dump()
235 SourceRange DynTypedNode::getSourceRange() const { in getSourceRange()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DParentMapContext.h55 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()
105 new (&Nodes) ArrayRef<DynTypedNode>(A); in DynTypedNodeList()
108 const DynTypedNode *begin() const { in begin()
112 const DynTypedNode *end() const { in end()
119 const DynTypedNode &operator[](size_t N) const {
[all …]
H A DASTTypeTraits.h257 class DynTypedNode {
376 DynTypedNode Node;
381 DynTypedNode Node;
403 static bool isEqual(const DynTypedNode &LHS, const DynTypedNode &RHS) {
431 DynTypedNode Result;
451 DynTypedNode Result;
470 DynTypedNode Result;
493 DynTypedNode Result;
517 struct DynTypedNode::BaseConverter<
522 struct DynTypedNode::BaseConverter<
[all …]
H A DASTNodeTraverser.h279 void Visit(const DynTypedNode &N) { in Visit()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchFinder.h195 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 DASTMatchersInternal.h220 void addNode(StringRef ID, const DynTypedNode &DynNode) {
237 DynTypedNode getNode(StringRef ID) const {
240 return DynTypedNode();
255 using IDToNodeMap = std::map<std::string, DynTypedNode, std::less<>>;
294 void setBinding(StringRef Id, const DynTypedNode &DynNode) {
376 bool dynMatches(const DynTypedNode &DynNode, ASTMatchFinder *Finder,
473 bool matches(const DynTypedNode &DynNode, ASTMatchFinder *Finder,
795 virtual bool matchesChildOf(const DynTypedNode &Node, ASTContext &Ctx,
1793 static DynTypedNode extract(const NestedNameSpecifierLoc &Loc) {
1794 return DynTypedNode::create(*Loc.getNestedNameSpecifier());
[all …]
H A DASTMatchers.h5648 Predicate.Node = DynTypedNode::create(Node); in AST_POLYMORPHIC_MATCHER_P()
8289 llvm::SmallVector<DynTypedNode, 8> Stack(Parents.begin(), Parents.end()); in AST_MATCHER_P()
8339 llvm::SmallVector<DynTypedNode, 8> Stack(Parents.begin(), Parents.end()); in AST_MATCHER_P()
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp70 DynTypedNode Node;
118 bool findMatch(const DynTypedNode &DynNode) { in findMatch()
631 bool matchesRecursively(const DynTypedNode &Node, in matchesRecursively()
704 void match(const DynTypedNode &Node) { in match()
789 const DynTypedNode *
904 if (const DynTypedNode *MatchNode = State.getNode<DynTypedNode>()) { in dumpNodeFromState()
907 dumpNode(Ctx, DynTypedNode::create(*QT), OS); in dumpNodeFromState()
909 dumpNode(Ctx, DynTypedNode::create(*TL), OS); in dumpNodeFromState()
911 dumpNode(Ctx, DynTypedNode::create(*NNS), OS); in dumpNodeFromState()
919 dumpNode(Ctx, DynTypedNode::create(*At), OS); in dumpNodeFromState()
[all …]
H A DASTMatchersInternal.cpp52 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,
112 const DynTypedNode &DynNode, ASTMatchFinder *Finder,
157 bool dynMatches(const DynTypedNode &, ASTMatchFinder *, in dynMatches() argument
286 bool DynTypedMatcher::matches(const DynTypedNode &DynNode, in matches()
366 static bool notUnaryOperator(const DynTypedNode &DynNode, in notUnaryOperator()
387 static bool allOfVariadicOperator(const DynTypedNode &DynNode, in allOfVariadicOperator()
399 static bool eachOfVariadicOperator(const DynTypedNode &DynNode, in eachOfVariadicOperator()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/ASTDiff/
H A DASTDiffInternal.h18 using DynTypedNode = DynTypedNode; variable
H A DASTDiff.h41 DynTypedNode ASTNode;
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DRangeSelector.cpp54 static Expected<DynTypedNode> getNode(const ast_matchers::BoundNodes &Nodes, in getNode()
143 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in node()
156 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in statement()
190 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in member()
202 Expected<DynTypedNode> N = getNode(Result.Nodes, ID); in name()
262 Expected<DynTypedNode> N = getNode(Result.Nodes, ID); in operator ()()
H A DStencil.cpp36 static llvm::Expected<DynTypedNode> getNode(const BoundNodes &Nodes, in getNode()
H A DRewriteRule.cpp328 transformer::detail::rewriteDescendants(const DynTypedNode &DNode, in rewriteDescendants()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DASTSelection.h53 DynTypedNode Node;
57 SelectedASTNode(const DynTypedNode &Node, SourceSelectionKind SelectionKind) in SelectedASTNode()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp50 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()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/
H A DEmptyNodeIntrospection.inc.in44 NodeIntrospection::GetLocations(clang::DynTypedNode const &) {
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/
H A DNodeIntrospection.h97 NodeLocationAccessors GetLocations(clang::DynTypedNode const &Node);
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/Transformer/
H A DRewriteRule.h505 rewriteDescendants(const DynTypedNode &Node, RewriteRule Rule,
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp449 getClosestAncestorDecl(DynTypedNode::create(TargetLoc)), in VisitTypeLoc()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp94 bool findMatch(const DynTypedNode &DynNode) { in findMatch()
187 if (Matcher->matches(DynTypedNode::create(Node), Finder, in match()
219 return Visitor.findMatch(DynTypedNode::create(Node)); in AST_MATCHER_P()
226 return Visitor.findMatch(DynTypedNode::create(Node)); in AST_MATCHER_P()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/ASTDiff/
H A DASTDiff.cpp202 N.ASTNode = DynTypedNode::create(*ASTNode); in PreTraverse()
413 const DynTypedNode &DTN = N.ASTNode; in getNodeValue()