]> granicus.if.org Git - clang/commitdiff
Improve on warning when objc pointer is used in
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 23 Jun 2011 21:17:59 +0000 (21:17 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 23 Jun 2011 21:17:59 +0000 (21:17 +0000)
c++ catch in fragile abi - per Eli's request.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133760 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
test/SemaObjCXX/exceptions-fragile.mm

index fb031596d5b8ed545c2bb154213619eabb97f714..c734c064e7feba4f5ba76bffdc446120106e4d0c 100644 (file)
@@ -3154,7 +3154,7 @@ def err_qualified_objc_catch_parm : Error<
 def err_objc_pointer_cxx_catch_gnu : Error<
   "can't catch Objective C exceptions in C++ in the GNU runtime">;
 def warn_objc_pointer_cxx_catch_fragile : Warning<
-  "catching Objective C exceptions in C++ in the non-unified "
+  "can not catch an exception thrown with @throw in C++ in the non-unified "
   "exception model">, InGroup<ObjCNonUnifiedException>;
 def err_objc_object_catch : Error<
   "can't catch an Objective C object by value">;
index ebbf6a0374d355db4471b66d6980f18f3e3c9a60..71e259aa6bbafb73b04f3f2210dd8d7e8c7af60c 100644 (file)
@@ -6,7 +6,7 @@ void opaque();
 namespace test0 {
   void test() {
     try {
-    } catch (NSException *e) { // expected-warning {{catching Objective C exceptions in C++ in the non-unified exception model [-Wobjc-nonunified-exceptions]}}
+    } catch (NSException *e) { // expected-warning {{can not catch an exception thrown with @throw in C++ in the non-unified exception model}}
     }
   }
 }