/external/llvm-project/clang/lib/AST/ |
D | ParentMapContext.cpp | 45 DynTypedNode ParentMapContext::traverseIgnored(const DynTypedNode &N) const { in traverseIgnored() 47 return DynTypedNode::create(*traverseIgnored(E)); in traverseIgnored() 54 using ParentVector = llvm::SmallVector<DynTypedNode, 2>; 62 DynTypedNode *, ParentVector *>>; 67 llvm::DenseMap<DynTypedNode, 69 DynTypedNode *, ParentVector *>>; 75 static DynTypedNode 78 return DynTypedNode::create(*D); in getSingleDynTypedNodeFromParentMap() 80 return DynTypedNode::create(*S); in getSingleDynTypedNodeFromParentMap() 81 return *U.get<DynTypedNode *>(); in getSingleDynTypedNodeFromParentMap() [all …]
|
/external/llvm-project/clang/include/clang/AST/ |
D | ParentMapContext.h | 55 DynTypedNodeList getParents(const DynTypedNode &Node); 65 DynTypedNode traverseIgnored(const DynTypedNode &N) const; 92 std::aligned_union_t<1, DynTypedNode, ArrayRef<DynTypedNode>> Storage; 96 DynTypedNodeList(const DynTypedNode &N) : IsSingleNode(true) { in DynTypedNodeList() 97 new (&Storage) DynTypedNode(N); in DynTypedNodeList() 100 DynTypedNodeList(ArrayRef<DynTypedNode> A) : IsSingleNode(false) { in DynTypedNodeList() 101 new (&Storage) ArrayRef<DynTypedNode>(A); in DynTypedNodeList() 104 const DynTypedNode *begin() const { in begin() 106 return reinterpret_cast<const ArrayRef<DynTypedNode> *>(&Storage) in begin() 108 return reinterpret_cast<const DynTypedNode *>(&Storage); in begin() [all …]
|
D | ASTTypeTraits.h | 229 class DynTypedNode { 233 static DynTypedNode create(const T &Node) { 290 bool operator<(const DynTypedNode &Other) const { 320 bool operator==(const DynTypedNode &Other) const { 340 bool operator!=(const DynTypedNode &Other) const { 347 static inline DynTypedNode getEmptyKey() { 348 DynTypedNode Node; 352 static inline DynTypedNode getTombstoneKey() { 353 DynTypedNode Node; 357 static unsigned getHashValue(const DynTypedNode &Val) { [all …]
|
/external/clang/include/clang/AST/ |
D | ASTTypeTraits.h | 210 class DynTypedNode { 214 static DynTypedNode create(const T &Node) { 272 bool operator<(const DynTypedNode &Other) const { 302 bool operator==(const DynTypedNode &Other) const { 322 bool operator!=(const DynTypedNode &Other) const { 329 static inline DynTypedNode getEmptyKey() { 330 DynTypedNode Node; 334 static inline DynTypedNode getTombstoneKey() { 335 DynTypedNode Node; 339 static unsigned getHashValue(const DynTypedNode &Val) { [all …]
|
D | ASTContext.h | 467 typedef llvm::SmallVector<ast_type_traits::DynTypedNode, 2> ParentVector; 474 ast_type_traits::DynTypedNode *, 480 ast_type_traits::DynTypedNode, 482 ast_type_traits::DynTypedNode *, ParentVector *>> 488 typedef ast_type_traits::DynTypedNode DynTypedNode; typedef 489 llvm::AlignedCharArrayUnion<ast_type_traits::DynTypedNode, 490 ArrayRef<DynTypedNode>> Storage; 494 DynTypedNodeList(const DynTypedNode &N) : IsSingleNode(true) { in DynTypedNodeList() 495 new (Storage.buffer) DynTypedNode(N); in DynTypedNodeList() 497 DynTypedNodeList(ArrayRef<DynTypedNode> A) : IsSingleNode(false) { in DynTypedNodeList() [all …]
|
/external/clang/unittests/AST/ |
D | ASTTypeTraitsTest.cpp | 127 TEST(DynTypedNode, DeclSourceRange) { in TEST() argument 128 RangeVerifier<DynTypedNode> Verifier; in TEST() 133 TEST(DynTypedNode, StmtSourceRange) { in TEST() argument 134 RangeVerifier<DynTypedNode> Verifier; in TEST() 139 TEST(DynTypedNode, TypeLocSourceRange) { in TEST() argument 140 RangeVerifier<DynTypedNode> Verifier; in TEST() 145 TEST(DynTypedNode, NNSLocSourceRange) { in TEST() argument 146 RangeVerifier<DynTypedNode> Verifier; in TEST() 152 TEST(DynTypedNode, DeclDump) { in TEST() argument 158 TEST(DynTypedNode, StmtDump) { in TEST() argument [all …]
|
D | MatchVerifier.h | 162 inline void MatchVerifier<ast_type_traits::DynTypedNode>::run( in run() 260 class DumpVerifier : public MatchVerifier<ast_type_traits::DynTypedNode> { 268 const ast_type_traits::DynTypedNode &Node) override { in verify() 287 class PrintVerifier : public MatchVerifier<ast_type_traits::DynTypedNode> { 295 const ast_type_traits::DynTypedNode &Node) override { in verify()
|
/external/llvm-project/clang/unittests/AST/ |
D | ASTTypeTraitsTest.cpp | 126 TEST(DynTypedNode, DeclSourceRange) { in TEST() argument 127 RangeVerifier<DynTypedNode> Verifier; in TEST() 132 TEST(DynTypedNode, StmtSourceRange) { in TEST() argument 133 RangeVerifier<DynTypedNode> Verifier; in TEST() 138 TEST(DynTypedNode, TypeLocSourceRange) { in TEST() argument 139 RangeVerifier<DynTypedNode> Verifier; in TEST() 144 TEST(DynTypedNode, NNSLocSourceRange) { in TEST() argument 145 RangeVerifier<DynTypedNode> Verifier; in TEST() 151 TEST(DynTypedNode, DeclDump) { in TEST() argument 157 TEST(DynTypedNode, StmtDump) { in TEST() argument [all …]
|
D | ASTContextParentMapTest.cpp | 93 EXPECT_THAT(Ctx.getParents(Bar), ElementsAre(DynTypedNode::create(Foo))); in TEST() 94 EXPECT_THAT(Ctx.getParents(Foo), ElementsAre(DynTypedNode::create(TU))); in TEST() 98 EXPECT_THAT(Ctx.getParents(Bar), ElementsAre(DynTypedNode::create(Foo))); in TEST() 103 EXPECT_THAT(Ctx.getParents(Bar), ElementsAre(DynTypedNode::create(Foo))); in TEST() 104 EXPECT_THAT(Ctx.getParents(Foo), ElementsAre(DynTypedNode::create(TU))); in TEST()
|
D | MatchVerifier.h | 166 MatchVerifier<DynTypedNode>::run(const MatchFinder::MatchResult &Result) { in run() 263 class DumpVerifier : public MatchVerifier<DynTypedNode> { 271 const DynTypedNode &Node) override { in verify() 290 class PrintVerifier : public MatchVerifier<DynTypedNode> { 298 const DynTypedNode &Node) override { in verify()
|
/external/clang/lib/ASTMatchers/ |
D | ASTMatchersInternal.cpp | 24 bool NotUnaryOperator(const ast_type_traits::DynTypedNode &DynNode, 28 bool AllOfVariadicOperator(const ast_type_traits::DynTypedNode &DynNode, 33 bool EachOfVariadicOperator(const ast_type_traits::DynTypedNode &DynNode, 38 bool AnyOfVariadicOperator(const ast_type_traits::DynTypedNode &DynNode, 55 const ast_type_traits::DynTypedNode &DynNode, ASTMatchFinder *Finder, 64 bool dynMatches(const ast_type_traits::DynTypedNode &DynNode, in dynMatches() 80 bool dynMatches(const ast_type_traits::DynTypedNode &DynNode, in dynMatches() 103 bool dynMatches(const ast_type_traits::DynTypedNode &, ASTMatchFinder *, in dynMatches() argument 182 bool DynTypedMatcher::matches(const ast_type_traits::DynTypedNode &DynNode, in matches() 197 const ast_type_traits::DynTypedNode &DynNode, ASTMatchFinder *Finder, in matchesNoKindCheck() [all …]
|
D | ASTMatchFinder.cpp | 61 ast_type_traits::DynTypedNode Node; 113 bool findMatch(const ast_type_traits::DynTypedNode &DynNode) { in findMatch() 251 if (Matcher->matches(ast_type_traits::DynTypedNode::create(Node), Finder, in match() 259 if (Matcher->matches(ast_type_traits::DynTypedNode::create(Node), Finder, in match() 376 bool memoizedMatchesRecursively(const ast_type_traits::DynTypedNode &Node, in memoizedMatchesRecursively() 410 bool matchesRecursively(const ast_type_traits::DynTypedNode &Node, in matchesRecursively() 424 bool matchesChildOf(const ast_type_traits::DynTypedNode &Node, in matchesChildOf() 435 bool matchesDescendantOf(const ast_type_traits::DynTypedNode &Node, in matchesDescendantOf() 445 bool matchesAncestorOf(const ast_type_traits::DynTypedNode &Node, in matchesAncestorOf() 459 void match(const ast_type_traits::DynTypedNode &Node) { in match() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | FindTarget.cpp | 47 using ast_type_traits::DynTypedNode; 50 nodeToString(const ast_type_traits::DynTypedNode &N) { in nodeToString() 339 nodeToString(ast_type_traits::DynTypedNode::create(Node))); in debug() 344 nodeToString(ast_type_traits::DynTypedNode::create(*D))); in report() 687 allTargetDecls(const ast_type_traits::DynTypedNode &N) { in allTargetDecls() 712 targetDecl(const ast_type_traits::DynTypedNode &N, DeclRelationSet Mask) { in targetDecl() 722 explicitReferenceTargets(DynTypedNode N, DeclRelationSet Mask) { in explicitReferenceTargets() 770 explicitReferenceTargets(DynTypedNode::create(*D), in refInDecl() 844 explicitReferenceTargets(DynTypedNode::create(*E), {})}); in refInStmt() 863 explicitReferenceTargets(DynTypedNode::create(*E), {})}); in refInStmt() [all …]
|
D | FindTarget.h | 84 targetDecl(const ast_type_traits::DynTypedNode &, DeclRelationSet Mask); 91 allTargetDecls(const ast_type_traits::DynTypedNode &); 165 explicitReferenceTargets(ast_type_traits::DynTypedNode N,
|
D | Selection.cpp | 38 using ast_type_traits::DynTypedNode; 391 void printNodeKind(llvm::raw_ostream &OS, const DynTypedNode &N) { in printNodeKind() 405 std::string printNodeToString(const DynTypedNode &N, const PrintingPolicy &PP) { in printNodeToString() 501 auto N = DynTypedNode::create(*X); in dataTraverseStmtPre() 560 Nodes.back().ASTNode = DynTypedNode::create(*AST.getTranslationUnitDecl()); in SelectionVisitor() 572 auto N = DynTypedNode::create(*Node); in traverseNode() 575 push(DynTypedNode::create(*Node)); in traverseNode() 608 bool canSafelySkipNode(const DynTypedNode &N) { in canSafelySkipNode() 650 void push(DynTypedNode Node) { in push() 683 SourceRange earlySourceRange(const DynTypedNode &N) { in earlySourceRange() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | MagicNumbersCheck.cpp | 27 const DynTypedNode &Node) { in isUsedToInitializeAConstant() 41 [&Result](const DynTypedNode &Parent) { in isUsedToInitializeAConstant() 47 const DynTypedNode &Node) { in isUsedToDefineABitField() 53 [&Result](const DynTypedNode &Parent) { in isUsedToDefineABitField() 140 [&Result](const DynTypedNode &Parent) { in isConstant() 149 [](const DynTypedNode &GrandParent) { in isConstant() 222 [&Result](const DynTypedNode &Parent) { in isBitFieldWidth()
|
/external/llvm-project/clang/include/clang/ASTMatchers/ |
D | ASTMatchFinder.h | 187 match(clang::DynTypedNode::create(Node), Context); in match() 189 void match(const clang::DynTypedNode &Node, ASTContext &Context); 248 SmallVector<BoundNodes, 1> match(MatcherT Matcher, const DynTypedNode &Node, 288 SmallVector<BoundNodes, 1> match(MatcherT Matcher, const DynTypedNode &Node, in match() 300 return match(Matcher, DynTypedNode::create(Node), Context); in match() 314 matchDynamic(internal::DynTypedMatcher Matcher, const DynTypedNode &Node, in matchDynamic() 327 return matchDynamic(Matcher, DynTypedNode::create(Node), Context); in matchDynamic()
|
D | ASTMatchersInternal.h | 164 void addNode(StringRef ID, const DynTypedNode &DynNode) { in addNode() 181 DynTypedNode getNode(StringRef ID) const { in getNode() 184 return DynTypedNode(); in getNode() 199 using IDToNodeMap = std::map<std::string, DynTypedNode, std::less<>>; 238 void setBinding(StringRef Id, const DynTypedNode &DynNode) { in setBinding() 295 virtual bool dynMatches(const DynTypedNode &DynNode, ASTMatchFinder *Finder, 321 bool dynMatches(const DynTypedNode &DynNode, ASTMatchFinder *Finder, in dynMatches() 418 bool matches(const DynTypedNode &DynNode, ASTMatchFinder *Finder, 425 bool matchesNoKindCheck(const DynTypedNode &DynNode, ASTMatchFinder *Finder, 554 return Implementation.matches(DynTypedNode::create(Node), Finder, Builder); in matches() [all …]
|
/external/clang/include/clang/ASTMatchers/ |
D | ASTMatchFinder.h | 184 match(clang::ast_type_traits::DynTypedNode::create(Node), Context); in match() 186 void match(const clang::ast_type_traits::DynTypedNode &Node, 240 match(MatcherT Matcher, const ast_type_traits::DynTypedNode &Node, 281 match(MatcherT Matcher, const ast_type_traits::DynTypedNode &Node, in match() 293 return match(Matcher, ast_type_traits::DynTypedNode::create(Node), Context); in match()
|
D | ASTMatchersInternal.h | 126 void addNode(StringRef ID, const ast_type_traits::DynTypedNode& DynNode) { in addNode() 143 ast_type_traits::DynTypedNode getNode(StringRef ID) const { in getNode() 146 return ast_type_traits::DynTypedNode(); in getNode() 161 typedef std::map<std::string, ast_type_traits::DynTypedNode> IDToNodeMap; 200 void setBinding(StringRef Id, const ast_type_traits::DynTypedNode &DynNode) { in setBinding() 257 virtual bool dynMatches(const ast_type_traits::DynTypedNode &DynNode, 280 bool dynMatches(const ast_type_traits::DynTypedNode &DynNode, in dynMatches() 362 bool matches(const ast_type_traits::DynTypedNode &DynNode, 369 bool matchesNoKindCheck(const ast_type_traits::DynTypedNode &DynNode, 509 return Implementation.matches(ast_type_traits::DynTypedNode::create(Node), in matches() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | DumpASTTests.cpp | 143 auto Node = dumpAST(DynTypedNode::create(findUnqualifiedDecl(AST, "root")), in TEST() 153 auto Node = dumpAST(DynTypedNode::create(findDecl(AST, "x")), AST.getTokens(), in TEST() 162 auto Node = dumpAST(DynTypedNode::create(findDecl(AST, "x")), AST.getTokens(), in TEST()
|
/external/llvm-project/clang/lib/ASTMatchers/ |
D | ASTMatchFinder.cpp | 67 DynTypedNode Node; 115 bool findMatch(const DynTypedNode &DynNode) { in findMatch() 334 if (Matcher->matches(DynTypedNode::create(Node), Finder, in match() 342 if (Matcher->matches(DynTypedNode::create(Node), Finder, in match() 467 bool memoizedMatchesRecursively(const DynTypedNode &Node, ASTContext &Ctx, in memoizedMatchesRecursively() 502 bool matchesRecursively(const DynTypedNode &Node, in matchesRecursively() 535 bool matchesChildOf(const DynTypedNode &Node, ASTContext &Ctx, in matchesChildOf() 543 bool matchesDescendantOf(const DynTypedNode &Node, ASTContext &Ctx, in matchesDescendantOf() 553 bool matchesAncestorOf(const DynTypedNode &Node, ASTContext &Ctx, in matchesAncestorOf() 568 void match(const DynTypedNode &Node) { in match() [all …]
|
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 …]
|
/external/llvm-project/clang/include/clang/Tooling/ASTDiff/ |
D | ASTDiffInternal.h | 18 using DynTypedNode = DynTypedNode; variable
|
/external/llvm-project/clang/lib/Tooling/Transformer/ |
D | RangeSelector.cpp | 53 static Expected<DynTypedNode> getNode(const ast_matchers::BoundNodes &Nodes, in getNode() 142 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in node() 155 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in statement() 189 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in member() 201 Expected<DynTypedNode> N = getNode(Result.Nodes, ID); in name() 251 Expected<DynTypedNode> N = getNode(Result.Nodes, ID); in operator ()()
|