[PATCH] D85193: [clang] Check `expr` inside `InitListChecker::UpdateStructuredListElement()`
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 12 05:52:13 PDT 2020
aaron.ballman added a comment.
I have a suggestion for the added comment, but I also forgot to ask, do you need someone to commit on your behalf?
================
Comment at: clang/lib/Sema/SemaInit.cpp:3094
+ // This initializer overwrites a previous initializer.
+ // Emit warning if `expr` is valid.
+ if (expr)
----------------
I was hoping for something that describes the "why" more than the "what". How about: `No need to diagnose when expr is null because a more relevant diagnostic has already been issued and this diagnostic is potentially noise.`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85193/new/
https://reviews.llvm.org/D85193
More information about the cfe-commits
mailing list