[clang] [clang][Diagnostic] Clarify error message for auto (PR #149781)
Yanzuo Liu via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 8 23:09:17 PST 2025
================
@@ -8454,24 +8454,37 @@ Sema::CheckTemplateDeclScope(Scope *S, TemplateParameterList *TemplateParams) {
// C++ [temp.class.spec]p6: [P2096]
// A partial specialization may be declared in any scope in which the
// corresponding primary template may be defined.
+ auto FindTemplateParamsLoc = [](TemplateParameterList *TemplateParams,
----------------
zwuis wrote:
Please move the declaration so that the comment above and the corresponding code are not separated.
https://github.com/llvm/llvm-project/pull/149781
More information about the cfe-commits
mailing list