]> granicus.if.org Git - clang/commit
Update equality and relationship comparisons of pointers to reflect
authorDouglas Gregor <dgregor@apple.com>
Tue, 15 Jun 2010 21:38:40 +0000 (21:38 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 15 Jun 2010 21:38:40 +0000 (21:38 +0000)
commit6e5122c8ce152e19355b707d952ab53fe58bd7ad
treeb0e169ab6ffab50cc653b1d25cc4d5ffc7c28f07
parentc54539cd173e20d8b179b9488fabfc5eb4cf5ee6
Update equality and relationship comparisons of pointers to reflect
C++ semantics, eliminating an extension diagnostic that doesn't match
C++ semantics (ordered comparison with NULL) and tightening some
extwarns to errors in C++ to match GCC and maintain conformance in
SFINAE contexts. Fixes <rdar://problem/7941392>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106050 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExpr.cpp
test/SemaCXX/compare.cpp