/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | SelectionTests.cpp | 455 EXPECT_FALSE(T.commonAncestor()) << C.Code << "\n" << T; in TEST() 461 EXPECT_EQ(C.CommonAncestorKind, nodeKind(T.commonAncestor())) in TEST() 465 EXPECT_EQ(nodeRange(T.commonAncestor(), AST), Test.range()) in TEST() 471 EXPECT_TRUE(verifyCommonAncestor(T.root(), T.commonAncestor(), C.Code)) in TEST() 484 ASSERT_EQ("CXXRecordDecl", nodeKind(T.commonAncestor())) << T; in TEST() 485 auto *D = dyn_cast<CXXRecordDecl>(T.commonAncestor()->ASTNode.get<Decl>()); in TEST() 569 EXPECT_EQ("BreakStmt", T.commonAncestor()->kind()); in TEST() 570 EXPECT_EQ("WhileStmt", T.commonAncestor()->Parent->kind()); in TEST() 586 EXPECT_EQ(nullptr, T.commonAncestor()); in TEST() 600 EXPECT_EQ("IntegerLiteral", T.commonAncestor()->kind()); in TEST() [all …]
|
D | FindTargetTests.cpp | 81 const SelectionTree::Node *N = Selection.commonAncestor(); in assertNodeAndPrintDecls()
|
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
D | ExpandAutoType.cpp | 87 if (auto *Node = Inputs.ASTSelection.commonAncestor()) { in prepare() 126 Inputs.ASTSelection.commonAncestor()->getDeclContext()); in apply()
|
D | DumpAST.cpp | 37 for (auto N = Inputs.ASTSelection.commonAncestor(); N && !Node; in prepare() 139 if (auto *Node = Inputs.ASTSelection.commonAncestor()) in prepare()
|
D | AddUsing.cpp | 136 UsingFinder(Usings, &Inputs.ASTSelection.commonAncestor()->getDeclContext(), in findInsertionPoint() 179 &Inputs.ASTSelection.commonAncestor()->getDeclContext(); in findInsertionPoint() 242 auto *Node = Inputs.ASTSelection.commonAncestor(); in prepare()
|
D | ObjCLocalizeStringLiteral.cpp | 53 const SelectionTree::Node *N = Inputs.ASTSelection.commonAncestor(); in REGISTER_TWEAK()
|
D | AnnotateHighlightings.cpp | 40 for (auto N = Inputs.ASTSelection.commonAncestor(); N && !CommonDecl; in REGISTER_TWEAK()
|
D | RawStringLiteral.cpp | 83 const SelectionTree::Node *N = Inputs.ASTSelection.commonAncestor(); in prepare()
|
D | SwapIfBranches.cpp | 54 for (const SelectionTree::Node *N = Inputs.ASTSelection.commonAncestor(); in REGISTER_TWEAK()
|
D | RemoveUsingNamespace.cpp | 109 auto *CA = Inputs.ASTSelection.commonAncestor(); in prepare()
|
D | PopulateSwitch.cpp | 87 const SelectionTree::Node *CA = Sel.ASTSelection.commonAncestor(); in REGISTER_TWEAK()
|
D | DefineOutline.cpp | 374 Source = getSelectedFunction(Sel.ASTSelection.commonAncestor()); in prepare()
|
D | DefineInline.cpp | 407 const SelectionTree::Node *SelNode = Sel.ASTSelection.commonAncestor(); in prepare()
|
D | ExtractVariable.cpp | 471 computeExtractedExpr(Inputs.ASTSelection.commonAncestor())) in REGISTER_TWEAK()
|
D | ExtractFunction.cpp | 736 const Node *CommonAnc = Inputs.ASTSelection.commonAncestor(); in prepare()
|
/external/llvm-project/mlir/lib/IR/ |
D | SymbolTable.cpp | 602 Operation *commonAncestor = symbol->getParentOp(); in collectSymbolScopes() local 604 if (limitAncestors.count(commonAncestor)) in collectSymbolScopes() 606 } while ((commonAncestor = commonAncestor->getParentOp())); in collectSymbolScopes() 607 assert(commonAncestor && "'limit' and 'symbol' have no common ancestor"); in collectSymbolScopes() 613 collectValidReferencesFor(symbol, symName, commonAncestor, references)); in collectSymbolScopes() 616 if (commonAncestor == limit) { in collectSymbolScopes()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | Selection.h | 146 const Node *commonAncestor() const;
|
D | SemanticSelection.cpp | 117 for (const auto *Node = ST.commonAncestor(); Node != nullptr; in getSemanticRanges()
|
D | Selection.cpp | 49 const auto *Common = S.commonAncestor(); in recordMetrics() 844 const Node *SelectionTree::commonAncestor() const { in commonAncestor() function in clang::clangd::SelectionTree
|
D | XRefs.cpp | 182 if (const SelectionTree::Node *N = ST.commonAncestor()) { in getDeclAtPositionWithRelations() 1099 if (const SelectionTree::Node *N = ST.commonAncestor()) { in findDocumentHighlights() 1540 Result = RecordFromNode(ST.commonAncestor()); in findRecordTypeAt()
|
D | ClangdServer.cpp | 795 if (const SelectionTree::Node *N = T.commonAncestor()) { in getAST()
|
D | Hover.cpp | 851 if (const SelectionTree::Node *N = ST.commonAncestor()) { in getHover()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ |
D | MethodCallExprContext.java | 417 Optional<ResolvedReferenceType> commonAncestor = type.asUnionType().getCommonAncestor(); in solveMethodAsUsage() local 418 if (commonAncestor.isPresent()) { in solveMethodAsUsage() 419 … return solveMethodAsUsage(commonAncestor.get(), name, argumentsTypes, invokationContext); in solveMethodAsUsage()
|
/external/llvm-project/clang-tools-extra/clangd/refactor/ |
D | Rename.cpp | 160 const SelectionTree::Node *SelectedNode = Selection.commonAncestor(); in locateDeclAt()
|