[clang-tools-extra] [clangd] Let DefineOutline tweak create a definition from scratch (PR #71950)
via cfe-commits
cfe-commits at lists.llvm.org
Fri May 15 08:42:20 PDT 2026
================
@@ -380,6 +384,30 @@ struct InsertionAnchor {
// initializers.
SourceRange getDeletionRange(const FunctionDecl *FD,
const syntax::TokenBuffer &TokBuf) {
+ if (!FD->hasBody()) {
+ if (!FD->isExplicitlyDefaulted())
+ return {};
+
+ auto tokens = TokBuf.expandedTokens(FD->getSourceRange());
----------------
timon-ul wrote:
nit: please capitalize `Tokens`
https://github.com/llvm/llvm-project/pull/71950
More information about the cfe-commits
mailing list