]> granicus.if.org Git - clang/commit
A new conversion warning for when an Objective-C object literal is implicitly
authorRichard Trieu <rtrieu@google.com>
Tue, 28 Jan 2014 23:40:26 +0000 (23:40 +0000)
committerRichard Trieu <rtrieu@google.com>
Tue, 28 Jan 2014 23:40:26 +0000 (23:40 +0000)
commit2ca8d0c1e640fdad9d49160b852b90e0f2e6ba60
tree945d95b9af42177fcf296a751e296efac6275b57
parent29ab1683e7fcbefc2aa58389383f95868324d21a
A new conversion warning for when an Objective-C object literal is implicitly
cast into a boolean true value.  This warning will catch code like:

if (@0) {}
if (@"foo") {}

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200356 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaChecking.cpp
test/Analysis/objc-string.mm
test/SemaObjCXX/warn-objc-literal-conversion.mm [new file with mode: 0644]