Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DParentMapContext.cpp46 DynTypedNode ParentMapContext::traverseIgnored(const DynTypedNode &N) const { in traverseIgnored()
48 return DynTypedNode::create(*traverseIgnored(E)); in traverseIgnored()
68 explicit ParentVector(size_t N, const DynTypedNode &Value) { in ParentVector()
73 bool contains(const DynTypedNode &Value) const { in contains()
78 void push_back(const DynTypedNode &Value) { in push_back()
84 ArrayRef<DynTypedNode> view() const { return Items; } in view()
87 llvm::SmallVector<DynTypedNode, 1> Items;
97 DynTypedNode *, ParentVector *>>;
102 llvm::DenseMap<DynTypedNode,
104 DynTypedNode *, ParentVector *>>;
[all …]
H A DASTTypeTraits.cpp186 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()
/freebsd/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()
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 DASTNodeTraverser.h314 void Visit(const DynTypedNode &N) { in Visit()
/freebsd/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.h219 void addNode(StringRef ID, const DynTypedNode &DynNode) {
236 DynTypedNode getNode(StringRef ID) const {
239 return DynTypedNode();
254 using IDToNodeMap = std::map<std::string, DynTypedNode, std::less<>>;
293 void setBinding(StringRef Id, const DynTypedNode &DynNode) {
349 virtual bool dynMatches(const DynTypedNode &DynNode, ASTMatchFinder *Finder,
375 bool dynMatches(const DynTypedNode &DynNode, ASTMatchFinder *Finder,
472 bool matches(const DynTypedNode &DynNode, ASTMatchFinder *Finder,
479 bool matchesNoKindCheck(const DynTypedNode &DynNode, ASTMatchFinder *Finder,
612 return Implementation.matches(DynTypedNode::create(Node), Finder, Builder);
[all …]
H A DASTMatchers.h3299 const DynTypedNode &BN = Nodes.getNode(this->BindingID); in AST_MATCHER_P()
5718 Predicate.Node = DynTypedNode::create(Node); in AST_POLYMORPHIC_MATCHER_P()
8390 llvm::SmallVector<DynTypedNode, 8> Stack(Parents.begin(), Parents.end()); in AST_MATCHER_P()
8440 llvm::SmallVector<DynTypedNode, 8> Stack(Parents.begin(), Parents.end()); in AST_MATCHER_P()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp70 DynTypedNode Node;
118 bool findMatch(const DynTypedNode &DynNode) { in findMatch()
379 if (Matcher->matches(DynTypedNode::create(Node), Finder, in match()
387 if (Matcher->matches(DynTypedNode::create(Node), Finder, in match()
598 bool memoizedMatchesRecursively(const DynTypedNode &Node, ASTContext &Ctx, in memoizedMatchesRecursively()
633 bool matchesRecursively(const DynTypedNode &Node, in matchesRecursively()
673 bool matchesChildOf(const DynTypedNode &Node, ASTContext &Ctx, in matchesChildOf()
681 bool matchesDescendantOf(const DynTypedNode &Node, ASTContext &Ctx, in matchesDescendantOf()
691 bool matchesAncestorOf(const DynTypedNode &Node, ASTContext &Ctx, in matchesAncestorOf()
706 void match(const DynTypedNode &Node) { in match()
[all …]
H A DASTMatchersInternal.cpp51 static bool notUnaryOperator(const DynTypedNode &DynNode,
56 static bool allOfVariadicOperator(const DynTypedNode &DynNode,
61 static bool eachOfVariadicOperator(const DynTypedNode &DynNode,
66 static bool anyOfVariadicOperator(const DynTypedNode &DynNode,
71 static bool optionallyVariadicOperator(const DynTypedNode &DynNode,
111 const DynTypedNode &DynNode, ASTMatchFinder *Finder,
120 bool dynMatches(const DynTypedNode &DynNode, ASTMatchFinder *Finder, in dynMatches()
135 bool dynMatches(const DynTypedNode &DynNode, ASTMatchFinder *Finder, in dynMatches()
156 bool dynMatches(const DynTypedNode &, ASTMatchFinder *, in dynMatches() argument
173 bool dynMatches(const DynTypedNode &DynNode, ASTMatchFinder *Finder, in dynMatches()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp95 virtual bool matches(const DynTypedNode &DynNode, ASTContext &Ctx,
111 void addNode(StringRef ID, const DynTypedNode &Node) { Nodes[ID] = Node; } in addNode()
114 llvm::StringMap<DynTypedNode> Nodes;
141 bool findMatch(const DynTypedNode &DynNode) { in findMatch()
232 if (Matcher->matches(DynTypedNode::create(Node), *ActiveASTContext, in match()
265 Visitor.findMatch(DynTypedNode::create(*S)); in forEachDescendantEvaluatedStmt()
273 Visitor.findMatch(DynTypedNode::create(*S)); in forEachDescendantStmt()
1076 Result.addNode(Tag, DynTypedNode::create(*UnsafeArg)); in hasUnsafePrintfStringArg()
1090 Result.addNode(Tag, DynTypedNode::create(*UnsafeArg)); in hasUnsafePrintfStringArg()
1105 Result.addNode(Tag, DynTypedNode::create(*UnsafeArg)); in hasUnsafePrintfStringArg()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/ASTDiff/
H A DASTDiffInternal.h18 using DynTypedNode = DynTypedNode; variable
H A DASTDiff.h41 DynTypedNode ASTNode;
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DRangeSelector.cpp53 static Expected<DynTypedNode> getNode(const ast_matchers::BoundNodes &Nodes, in getNode()
135 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in node()
148 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in statement()
182 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in member()
194 Expected<DynTypedNode> N = getNode(Result.Nodes, ID); in name()
254 Expected<DynTypedNode> N = getNode(Result.Nodes, ID); in operator ()()
H A DStencil.cpp35 static llvm::Expected<DynTypedNode> getNode(const BoundNodes &Nodes, in getNode()
H A DRewriteRule.cpp327 transformer::detail::rewriteDescendants(const DynTypedNode &DNode, in rewriteDescendants()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DASTSelection.h53 DynTypedNode Node;
57 SelectedASTNode(const DynTypedNode &Node, SourceSelectionKind SelectionKind) in SelectedASTNode()
/freebsd/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/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DOSObjectCStyleCast.cpp41 const DynTypedNode &BN = Nodes.getNode(this->BindingID); in AST_MATCHER_P()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Transformer/
H A DRewriteRule.h505 rewriteDescendants(const DynTypedNode &Node, RewriteRule Rule,
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp448 getClosestAncestorDecl(DynTypedNode::create(TargetLoc)), in VisitTypeLoc()
/freebsd/contrib/llvm-project/clang/lib/InstallAPI/
H A DVisitor.cpp257 for (const DynTypedNode &P : D->getASTContext().getParents(*M)) { in VisitFunctionDecl()