[PATCH] D79945: [Sema] Comparison of pointers to complete and incomplete types

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 26 12:32:54 PDT 2020


efriedma added inline comments.


================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:6446
+  "ordered comparison of complete and incomplete pointers (%0 and %1)">,
+  InGroup<C99>;
+def warn_typecheck_compare_complete_incomplete_pointers : ExtWarn<
----------------
ext_typecheck_compare_complete_incomplete_pointers should be `InGroup<C11>`


================
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)">,
----------------
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.


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