aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Frontend/CompilerInvocation.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-10-16 18:53:14 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-10-16 18:53:14 +0000
commit9b29f4fe3d0600edf6ba00d48f2d4f2b1984f247 (patch)
treef13f077dad332226274079842e93f7628071be8d /include/clang/Frontend/CompilerInvocation.h
parent4695f91f4302a90ae462cd64dda59b34c3dad821 (diff)
Implement GCC's -Wint-to-pointer-cast.
This implementation doesn't warn on anything that GCC doesn't warn on with the exception of templates specializations (GCC doesn't warn, Clang does). The specific skipped cases (boolean, constant expressions, enums) are open for debate/adjustment if anyone wants to demonstrate that GCC is being overly conservative here. The only really obvious false positive I found was in the Clang regression suite's MPI test - apparently MPI uses specific flag values in pointer constants. (eg: #define FOO (void*)~0) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/CompilerInvocation.h')
0 files changed, 0 insertions, 0 deletions