summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/warn-null.c
Commit message (Collapse)AuthorAgeFilesLines
* [Sema] Revert the change in r200622 that allowed integer casts to silence ↵Argyrios Kyrtzidis2014-02-111-2/+2
| | | | | | | | | | -Wnon-literal-null-conversion in C code. It is actually useful to warn in such cases, thanks to Dmitri for pushing on this and making us see the light! Related to rdar://15925483 and rdar://15922612. The latter radar is where the usefulness of the warning is most clear. llvm-svn: 201165
* [Sema] For -Wnon-literal-null-conversion warning, look through integer ↵Argyrios Kyrtzidis2014-01-311-0/+3
| | | | | | | | | | casts, which are used by some projects in their null macro. rdar://15925483 llvm-svn: 200521
* PR10837: Warn if a null pointer constant is formed by a zero integer constantRichard Smith2013-11-211-0/+11
| | | | | | | expression that is not a zero literal, in C. This is a different, and more targeted, approach than that in r194540. llvm-svn: 195303
* Revert r194540, it breaks various C++ programs.Joerg Sonnenberger2013-11-191-6/+0
| | | | llvm-svn: 195126
* PR10837: Warn if a null pointer constant is formed by a zero integer constantRichard Smith2013-11-131-0/+6
expression that is not a zero literal, in C. Patch by Ivan A. Kosarev! llvm-svn: 194540
OpenPOWER on IntegriCloud