summaryrefslogtreecommitdiff
path: root/test/Sema/warn-null.c
Commit message (Collapse)AuthorAge
* [Sema] Revert the change in r200622 that allowed integer casts to silence ↵Argyrios Kyrtzidis2014-02-11
| | | | | | | | | | -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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201165 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sema] For -Wnon-literal-null-conversion warning, look through integer ↵Argyrios Kyrtzidis2014-01-31
| | | | | | | | | | casts, which are used by some projects in their null macro. rdar://15925483 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200521 91177308-0d34-0410-b5e6-96231b3b80d8
* PR10837: Warn if a null pointer constant is formed by a zero integer constantRichard Smith2013-11-21
| | | | | | | | expression that is not a zero literal, in C. This is a different, and more targeted, approach than that in r194540. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195303 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r194540, it breaks various C++ programs.Joerg Sonnenberger2013-11-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195126 91177308-0d34-0410-b5e6-96231b3b80d8
* PR10837: Warn if a null pointer constant is formed by a zero integer constantRichard Smith2013-11-13
expression that is not a zero literal, in C. Patch by Ivan A. Kosarev! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194540 91177308-0d34-0410-b5e6-96231b3b80d8