]> granicus.if.org Git - clang/commit
Add -Wobjc-string-compare under -Wobjc-literal-compare.
authorJordan Rose <jordan_rose@apple.com>
Tue, 17 Jul 2012 17:46:44 +0000 (17:46 +0000)
committerJordan Rose <jordan_rose@apple.com>
Tue, 17 Jul 2012 17:46:44 +0000 (17:46 +0000)
commiteec207f02a0208814bb8b4ca90099a2fed016244
tree863e68f346f990c98bbccb1ac11fb52579d650b5
parent8d872ca7f10bb70d0757b894af79641679262bba
Add -Wobjc-string-compare under -Wobjc-literal-compare.

Suggested by Ted, since string literal comparison is at least slightly more
sensible than comparison of runtime literals. (Ambiguous language on
developer.apple.com implies that strings are guaranteed to be uniqued within
a translation unit and possibly across a linked binary.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160378 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExpr.cpp
test/SemaObjC/objc-literal-comparison.m