Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-10-13 | Update all tests other than Driver/std.cpp to use -std=c++11 rather than | Richard Smith | |
-std=c++0x. Patch by Ahmed Charles! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141900 91177308-0d34-0410-b5e6-96231b3b80d8 | |||
2011-06-19 | Add test cases for false positives on -Wnull-arithmetic from Richard | Chandler Carruth | |
Trieu, and fix them by checking for array and function types as well as pointer types. I've added a predicate method on Type to bundle together the logic we're using here: isPointerLikeType(). I'd welcome better names for this predicate, this is the best I came up with. It's implemented as a switch to be a touch lighter weight than all the chained isa<...> casts that would result otherwise. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133383 91177308-0d34-0410-b5e6-96231b3b80d8 | |||
2011-06-16 | Add a new warning when a NULL constant is used in arithmetic operations. ↵ | Richard Trieu | |
The warning will fire on cases such as: int x = 1 + NULL; git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133196 91177308-0d34-0410-b5e6-96231b3b80d8 |