[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


================
@@ -1374,6 +1379,18 @@ Decl *Parser::ParseFunctionDefinition(ParsingDeclarator &D,
                                                   : MultiTemplateParamsArg(),
                                               &SkipBody, BodyKind);
 
+  auto updateFuncRangeEnd = [&](Decl *D) {
----------------
zwuis wrote:

`updateFuncRangeLoc` should start with an upper-case letter.

https://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly

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


More information about the cfe-commits mailing list