summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/DiagnosticSemaKinds.td
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-09-28 18:44:09 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-09-28 18:44:09 +0000
commit250f67c3f9c5fbfc3cf91cb9da7cd013fdfc8435 (patch)
tree5cfc1ccb5fff10b4437d9938c01954bd4b2de52f /include/clang/Basic/DiagnosticSemaKinds.td
parentef72cd73f35752bbc91799a6b21cf0863c821dc7 (diff)
[cxx2a] P0614R1: Support init-statements in range-based for loops.
We don't yet support this for the case where a range-based for loop is implicitly rewritten to an ObjC for..in statement. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343350 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticSemaKinds.td')
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td
index 7c2f3d1833..7a95b53a51 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/include/clang/Basic/DiagnosticSemaKinds.td
@@ -2299,6 +2299,9 @@ def warn_for_range_copy : Warning<
"loop variable %0 of type %1 creates a copy from type %2">,
InGroup<RangeLoopAnalysis>, DefaultIgnore;
def note_use_reference_type : Note<"use reference type %0 to prevent copying">;
+def err_objc_for_range_init_stmt : Error<
+ "initialization statement is not supported when iterating over Objective-C "
+ "collection">;
// C++11 constexpr
def warn_cxx98_compat_constexpr : Warning<