Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DParentMapContext.h55 DynTypedNodeList getParents(const DynTypedNode &Node);
65 DynTypedNode traverseIgnored(const DynTypedNode &N) const;
93 llvm::AlignedCharArrayUnion<DynTypedNode, ArrayRef<DynTypedNode>> Storage;
97 DynTypedNodeList(const DynTypedNode &N) : IsSingleNode(true) { in DynTypedNodeList()
98 new (&Storage) DynTypedNode(N); in DynTypedNodeList()
101 DynTypedNodeList(ArrayRef<DynTypedNode> A) : IsSingleNode(false) { in DynTypedNodeList()
102 new (&Storage) ArrayRef<DynTypedNode>(A); in DynTypedNodeList()
105 const DynTypedNode *begin() const { in begin()
107 return reinterpret_cast<const ArrayRef<DynTypedNode> *>(&Storage) in begin()
109 return reinterpret_cast<const DynTypedNode *>(&Storage); in begin()
[all …]
H A DASTTypeTraits.h233 class DynTypedNode {
237 static DynTypedNode create(const T &Node) {
294 bool operator<(const DynTypedNode &Other) const {
324 bool operator==(const DynTypedNode &Other) const {
344 bool operator!=(const DynTypedNode &Other) const {
351 static inline DynTypedNode getEmptyKey() {
352 DynTypedNode Node;
356 static inline DynTypedNode getTombstoneKey() {
357 DynTypedNode Node;
361 static unsigned getHashValue(const DynTypedNode &Val) {
[all …]
H A DASTNodeTraverser.h251 void Visit(const DynTypedNode &N) { in Visit()
H A DASTContext.h102 class DynTypedNode; variable
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DParentMapContext.cpp45 DynTypedNode ParentMapContext::traverseIgnored(const DynTypedNode &N) const { in traverseIgnored()
47 return DynTypedNode::create(*traverseIgnored(E)); in traverseIgnored()
64 using ParentVector = llvm::SmallVector<DynTypedNode, 2>;
72 DynTypedNode *, ParentVector *>>;
77 llvm::DenseMap<DynTypedNode,
79 DynTypedNode *, ParentVector *>>;
85 static DynTypedNode
88 return DynTypedNode::create(*D); in getSingleDynTypedNodeFromParentMap()
90 return DynTypedNode::create(*S); in getSingleDynTypedNodeFromParentMap()
91 return *U.get<DynTypedNode *>(); in getSingleDynTypedNodeFromParentMap()
[all …]
H A DASTTypeTraits.cpp140 void DynTypedNode::print(llvm::raw_ostream &OS, in print()
169 void DynTypedNode::dump(llvm::raw_ostream &OS, in dump()
181 SourceRange DynTypedNode::getSourceRange() const { in getSourceRange()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/ASTMatchers/
H A DASTMatchFinder.h193 match(clang::DynTypedNode::create(Node), Context); in match()
195 void match(const clang::DynTypedNode &Node, ASTContext &Context);
254 SmallVector<BoundNodes, 1> match(MatcherT Matcher, const DynTypedNode &Node,
299 SmallVector<BoundNodes, 1> match(MatcherT Matcher, const DynTypedNode &Node, in match()
311 return match(Matcher, DynTypedNode::create(Node), Context); in match()
325 matchDynamic(internal::DynTypedMatcher Matcher, const DynTypedNode &Node, in matchDynamic()
338 return matchDynamic(Matcher, DynTypedNode::create(Node), Context); in matchDynamic()
H A DASTMatchersInternal.h224 void addNode(StringRef ID, const DynTypedNode &DynNode) {
241 DynTypedNode getNode(StringRef ID) const {
244 return DynTypedNode();
259 using IDToNodeMap = std::map<std::string, DynTypedNode, std::less<>>;
298 void setBinding(StringRef Id, const DynTypedNode &DynNode) {
355 virtual bool dynMatches(const DynTypedNode &DynNode, ASTMatchFinder *Finder,
381 bool dynMatches(const DynTypedNode &DynNode, ASTMatchFinder *Finder,
478 bool matches(const DynTypedNode &DynNode, ASTMatchFinder *Finder,
485 bool matchesNoKindCheck(const DynTypedNode &DynNode, ASTMatchFinder *Finder,
620 return Implementation.matches(DynTypedNode::create(Node), Finder, Builder);
[all …]
H A DASTMatchers.h5204 Predicate.Node = DynTypedNode::create(Node); in AST_POLYMORPHIC_MATCHER_P()
7567 llvm::SmallVector<DynTypedNode, 8> Stack(Parents.begin(), Parents.end()); in AST_MATCHER_P()
7618 llvm::SmallVector<DynTypedNode, 8> Stack(Parents.begin(), Parents.end()); in AST_MATCHER_P()
/netbsd-src/external/apache2/llvm/dist/clang/lib/ASTMatchers/
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,
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 …]
H A DASTMatchFinder.cpp67 DynTypedNode Node;
115 bool findMatch(const DynTypedNode &DynNode) { in findMatch()
361 if (Matcher->matches(DynTypedNode::create(Node), Finder, in match()
369 if (Matcher->matches(DynTypedNode::create(Node), Finder, in match()
578 bool memoizedMatchesRecursively(const DynTypedNode &Node, ASTContext &Ctx, in memoizedMatchesRecursively()
613 bool matchesRecursively(const DynTypedNode &Node, in matchesRecursively()
644 bool matchesChildOf(const DynTypedNode &Node, ASTContext &Ctx, in matchesChildOf()
652 bool matchesDescendantOf(const DynTypedNode &Node, ASTContext &Ctx, in matchesDescendantOf()
662 bool matchesAncestorOf(const DynTypedNode &Node, ASTContext &Ctx, in matchesAncestorOf()
677 void match(const DynTypedNode &Node) { in match()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
260 Expected<DynTypedNode> N = getNode(Result.Nodes, ID); in operator ()()
H A DStencil.cpp36 static llvm::Expected<DynTypedNode>
H A DRewriteRule.cpp297 transformer::detail::rewriteDescendants(const DynTypedNode &DNode, in rewriteDescendants()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/ASTDiff/
H A DASTDiffInternal.h18 using DynTypedNode = DynTypedNode; variable
H A DASTDiff.h40 DynTypedNode ASTNode;
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp49 SelectedASTNode(DynTypedNode::create(*Context.getTranslationUnitDecl()), in ASTSelectionFinder()
97 SelectedASTNode(DynTypedNode::create(*D), SelectionKind)); in TraverseDecl()
125 SelectedASTNode(DynTypedNode::create(*S), SelectionKind)); in TraverseStmt()
424 const DynTypedNode &Node = Parent.get().Node; in isInFunctionLikeBodyOfCode()
442 const DynTypedNode &Node = Parent.get().Node; in getFunctionLikeNearestParent()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/Refactoring/
H A DASTSelection.h52 DynTypedNode Node;
56 SelectedASTNode(const DynTypedNode &Node, SourceSelectionKind SelectionKind) in SelectedASTNode()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/
H A DEmptyNodeIntrospection.inc.in44 NodeIntrospection::GetLocations(clang::DynTypedNode const &) {
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/
H A DNodeIntrospection.h97 NodeLocationAccessors GetLocations(clang::DynTypedNode const &Node);
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/Transformer/
H A DRewriteRule.h418 rewriteDescendants(const DynTypedNode &Node, RewriteRule Rule,
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp448 getClosestAncestorDecl(DynTypedNode::create(TargetLoc)), in VisitTypeLoc()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/ASTDiff/
H A DASTDiff.cpp203 N.ASTNode = DynTypedNode::create(*ASTNode); in PreTraverse()
414 const DynTypedNode &DTN = N.ASTNode; in getNodeValue()