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

Nathan Chancellor via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 6 14:22:58 PST 2020


nathanchance marked 2 inline comments as done.
nathanchance 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>;
----------------
xbolva00 wrote:
> You can reuse warning text:
> 
> warn_pointer_to_int_cast.Text
> 
> I think..
Thanks, that is indeed cleaner!


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