================
@@ -14474,7 +14474,12 @@ void Sema::ActOnUninitializedDecl(Decl *RealDecl) {
}
// C++1z [dcl.dcl]p1 grammar implies that an initializer is mandatory.
if (isa<DecompositionDecl>(RealDecl)) {
- Diag(Var->getLocation(), diag::err_decomp_decl_requires_init) << Var;
+ // point carat to the token immediately after the closing bracket
----------------
AaronBallman wrote:
```suggestion
// Point the caret to the token immediately after the closing bracket.
```
https://github.com/llvm/llvm-project/pull/127924
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits