[PATCH] D75758: [Sema] Add -Wpointer-to-enum-cast and -Wvoid-pointer-to-enum-cast

Dávid Bolvanský via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 6 12:43:20 PST 2020


xbolva00 added inline comments.


================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:3673
+def warn_pointer_to_enum_cast : Warning<
+  "cast to smaller integer type %1 from %0">,
+  InGroup<PointerToEnumCast>;
----------------
You can reuse warning text:

warn_pointer_to_int_cast.Text

I think..


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75758/new/

https://reviews.llvm.org/D75758





More information about the cfe-commits mailing list