================
@@ -3101,9 +3162,11 @@ InitListChecker::CheckDesignatedInitializer(const
InitializedEntity &Entity,
unsigned OldIndex = StructuredIndex - 1;
if (StructuredList && OldIndex <= StructuredList->getNumInits()) {
if (Expr *PrevInit = StructuredList->getInit(OldIndex)) {
- SemaRef.Diag(PrevInit->getBeginLoc(),
- diag::note_previous_field_init)
+ SemaBase::SemaDiagnosticBuilder Diag =
----------------
ojhunt wrote:
This looked unfamiliar to me, it looks like auto is used for this specific
case, I guess Diag(..) is considered sufficient unambiguous as to the outcome,
so this one can stay auto :D
https://github.com/llvm/llvm-project/pull/173136
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits