aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-02-11 20:05:44 +0000
committerSteve Naroff <snaroff@apple.com>2009-02-11 20:05:44 +0000
commite21dd6ffef4585fa43cd3586ed971217d65bf56c (patch)
treef22e966014b4aa6f98501776285827fc0c441ab0 /include/clang/Basic
parentcc45cb3630b42c5245e26593e385097c220bc859 (diff)
Fix <rdar://problem/6243503> [sema] @throw; accepted outside catch block.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64318 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.def b/include/clang/Basic/DiagnosticSemaKinds.def
index 34fc2e8ef7..b354bf8767 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.def
+++ b/include/clang/Basic/DiagnosticSemaKinds.def
@@ -869,6 +869,8 @@ DIAG(error_bad_receiver_type, ERROR,
"bad receiver type %0")
DIAG(warn_objc_throw_expects_object, WARNING,
"invalid %0 argument (expected an ObjC object type)")
+DIAG(error_rethrow_used_outside_catch, ERROR,
+ "‘@throw’ (rethrow) used outside of a @catch block")
// C++ casts