llvm-project/clang/test/CXX/dcl.dcl
David Blaikie 282ad876bd 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)

llvm-svn: 166039
2012-10-16 18:53:14 +00:00
..
basic.namespace Egriegious hack to support libstdc++4.6's broken <atomic> header, which defines 2012-10-04 22:13:39 +00:00
dcl.attr/dcl.attr.grammar Improve C++11 attribute parsing. 2012-10-03 01:56:22 +00:00
dcl.enum Improve handling of enumerator values for C and C++, including: 2010-02-01 23:36:03 +00:00
dcl.link Switch CodeGen's "is this variable declaration a definition?" logic 2010-02-06 05:15:45 +00:00
dcl.spec Implement GCC's -Wint-to-pointer-cast. 2012-10-16 18:53:14 +00:00
p4-0x.cpp static_assert: Allow any string-literal as the message, not just a character 2012-03-05 23:20:05 +00:00