[PATCH] D79945: [Sema] Comparison of pointers to complete and incomplete types
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 29 14:46:43 PDT 2020
efriedma added inline comments.
================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:6447
+ InGroup<C99>;
+def warn_typecheck_compare_complete_incomplete_pointers : ExtWarn<
+ "ordered comparison of complete and incomplete pointers (%0 and %1)">,
----------------
pestctrl wrote:
> efriedma wrote:
> > warn_typecheck_compare_complete_incomplete_pointers should be a Warning, not an ExtWarn. And should be DefaultIgnore. And should indicate why we're warning. And should be in the group C99Compat.
> I'm confused by what you mean for "indicate why we're warning". Should I change the warning text?
Yes; try taking a look at the text of the other C99Compat warnings.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79945/new/
https://reviews.llvm.org/D79945
More information about the cfe-commits
mailing list