Lines Matching refs:CommonAnc
125 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
869 auto MaybeExtZone = findExtractionZone(CommonAnc, SM, LangOpts); in prepare()