[clang-tools-extra] [clangd] Offer Extract to Function for single expression-statements (PR #219945)

Christian Kandeler via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 11 07:54:02 PDT 2026


================
@@ -156,15 +177,11 @@ const Node *getParentOfRootStmts(const Node *CommonAnc) {
   case SelectionTree::Selection::Complete:
     // If the Common Ancestor is completely selected, then it's a root statement
     // and its parent will be unselected.
----------------
ckandeler wrote:

Done.

https://github.com/llvm/llvm-project/pull/219945


More information about the cfe-commits mailing list