[PATCH] D72231: [Sema] Adds the pointer-to-int-cast diagnostic

Mark de Wever via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 16 06:42:44 PST 2020


Mordante marked 2 inline comments as done.
Mordante added a comment.
Herald added a subscriber: martong.

Thanks for the review.

I'll have a look at your suggestion for a follow-up patch.



================
Comment at: clang/test/Sema/cast.c:1
-// RUN: %clang_cc1 -fsyntax-only -triple x86_64-unknown-unknown %s -verify
+// RUN: %clang_cc1 -fsyntax-only -triple x86_64-unknown-unknown -Wpointer-to-int-cast %s -verify
 
----------------
rsmith wrote:
> Don't specify the warning flag here, so that we have some test coverage that this is enabled by default.
Good catch! This was needed before the diagnostic was enabled by default.


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

https://reviews.llvm.org/D72231





More information about the cfe-commits mailing list