summaryrefslogtreecommitdiff
path: root/include/clang/Basic
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2017-04-19 17:54:08 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2017-04-19 17:54:08 +0000
commit17081268e25326cb2afd21f56e5d12ac445a832c (patch)
tree483135aeebcd8d1edba55790ade1e2cec9d55abf /include/clang/Basic
parentbfb79c8fec5e58a34d73d75ec302ea3e8cae1750 (diff)
downloadclang-17081268e25326cb2afd21f56e5d12ac445a832c.tar.gz
[Sema][ObjC] Disallow jumping into ObjC fast enumeration loops.
rdar://problem/31635406 Differential Revision: https://reviews.llvm.org/D32187 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td
index 3912a85491..6cb872cc27 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/include/clang/Basic/DiagnosticSemaKinds.td
@@ -5000,6 +5000,8 @@ def note_protected_by_if_available : Note<
"jump enters controlled statement of if available">;
def note_protected_by_vla : Note<
"jump bypasses initialization of variable length array">;
+def note_protected_by_objc_fast_enumeration : Note<
+ "jump enters Objective-C fast enumeration loop">;
def note_protected_by_objc_try : Note<
"jump bypasses initialization of @try block">;
def note_protected_by_objc_catch : Note<