Home
last modified time | relevance | path

Searched refs:commonAncestor (Results 1 – 24 of 24) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/unittests/
DSelectionTests.cpp455 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 …]
DFindTargetTests.cpp81 const SelectionTree::Node *N = Selection.commonAncestor(); in assertNodeAndPrintDecls()
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DExpandAutoType.cpp87 if (auto *Node = Inputs.ASTSelection.commonAncestor()) { in prepare()
126 Inputs.ASTSelection.commonAncestor()->getDeclContext()); in apply()
DDumpAST.cpp37 for (auto N = Inputs.ASTSelection.commonAncestor(); N && !Node; in prepare()
139 if (auto *Node = Inputs.ASTSelection.commonAncestor()) in prepare()
DAddUsing.cpp136 UsingFinder(Usings, &Inputs.ASTSelection.commonAncestor()->getDeclContext(), in findInsertionPoint()
179 &Inputs.ASTSelection.commonAncestor()->getDeclContext(); in findInsertionPoint()
242 auto *Node = Inputs.ASTSelection.commonAncestor(); in prepare()
DObjCLocalizeStringLiteral.cpp53 const SelectionTree::Node *N = Inputs.ASTSelection.commonAncestor(); in REGISTER_TWEAK()
DAnnotateHighlightings.cpp40 for (auto N = Inputs.ASTSelection.commonAncestor(); N && !CommonDecl; in REGISTER_TWEAK()
DRawStringLiteral.cpp83 const SelectionTree::Node *N = Inputs.ASTSelection.commonAncestor(); in prepare()
DSwapIfBranches.cpp54 for (const SelectionTree::Node *N = Inputs.ASTSelection.commonAncestor(); in REGISTER_TWEAK()
DRemoveUsingNamespace.cpp109 auto *CA = Inputs.ASTSelection.commonAncestor(); in prepare()
DPopulateSwitch.cpp87 const SelectionTree::Node *CA = Sel.ASTSelection.commonAncestor(); in REGISTER_TWEAK()
DDefineOutline.cpp374 Source = getSelectedFunction(Sel.ASTSelection.commonAncestor()); in prepare()
DDefineInline.cpp407 const SelectionTree::Node *SelNode = Sel.ASTSelection.commonAncestor(); in prepare()
DExtractVariable.cpp471 computeExtractedExpr(Inputs.ASTSelection.commonAncestor())) in REGISTER_TWEAK()
DExtractFunction.cpp736 const Node *CommonAnc = Inputs.ASTSelection.commonAncestor(); in prepare()
/external/llvm-project/mlir/lib/IR/
DSymbolTable.cpp602 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/
DSelection.h146 const Node *commonAncestor() const;
DSemanticSelection.cpp117 for (const auto *Node = ST.commonAncestor(); Node != nullptr; in getSemanticRanges()
DSelection.cpp49 const auto *Common = S.commonAncestor(); in recordMetrics()
844 const Node *SelectionTree::commonAncestor() const { in commonAncestor() function in clang::clangd::SelectionTree
DXRefs.cpp182 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()
DClangdServer.cpp795 if (const SelectionTree::Node *N = T.commonAncestor()) { in getAST()
DHover.cpp851 if (const SelectionTree::Node *N = ST.commonAncestor()) { in getHover()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DMethodCallExprContext.java417 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/
DRename.cpp160 const SelectionTree::Node *SelectedNode = Selection.commonAncestor(); in locateDeclAt()