================ @@ -490,6 +491,13 @@ bool eligibleForExtraction(const SelectionTree::Node *N) { BO->getRHS() == OuterImplicit.ASTNode.get<Expr>()) return false; } + if (const auto *Decl = Parent->ASTNode.get<VarDecl>()) { + if (!Decl->isInitCapture() && ---------------- kadircet wrote:
> "end":{"character":18," But that's [[2 + ]]3, no? I get an end character position of 19 with both Qt Creator and VSCode for the [[2 + 3]] selection. oh wow you're right, looks like the version of YCM I have is having off-by-one for that case. --- sorry for the noise, i didn't know about `getBinaryOperatorRange` which does this kind of pruning. it all makes sense now. https://github.com/llvm/llvm-project/pull/69477 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits