[clang] [clang][Parser] Fix FunctionDecl source range for out-of-class '= delete'/'= default' definitions (PR #167007)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 9 06:11:29 PST 2025


================
@@ -1424,12 +1444,15 @@ Decl *Parser::ParseFunctionDefinition(ParsingDeclarator &D,
   if (SkipFunctionBodies && (!Res || Actions.canSkipFunctionBody(Res)) &&
       trySkippingFunctionBody()) {
     BodyScope.Exit();
+    updateFuncRangeEnd(Res);
----------------
zwuis wrote:

Why do we need to call `updateFuncRangeEnd` here? Could you give an example?

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


More information about the cfe-commits mailing list