Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DExtractFunction.cpp125 const Node *getParentOfRootStmts(const Node *CommonAnc) { in getParentOfRootStmts() argument
126 if (!CommonAnc) in getParentOfRootStmts()
129 switch (CommonAnc->Selected) { in getParentOfRootStmts()
133 Parent = CommonAnc; in getParentOfRootStmts()
141 Parent = CommonAnc->Parent; in getParentOfRootStmts()
241 const FunctionDecl *findEnclosingFunction(const Node *CommonAnc) { in findEnclosingFunction() argument
243 for (const Node *CurNode = CommonAnc; CurNode; CurNode = CurNode->Parent) { in findEnclosingFunction()
305 llvm::Optional<ExtractionZone> findExtractionZone(const Node *CommonAnc, in findExtractionZone() argument
309 ExtZone.Parent = getParentOfRootStmts(CommonAnc); in findExtractionZone()
867 const Node *CommonAnc = Inputs.ASTSelection.commonAncestor(); in prepare() local
[all …]