From http://reviews.llvm.org/D4368 these cases were thought to not be reachable
and the checks removed before the rest of the code was committed in r216649.
However, these cases are reachable and the checks are added back.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317957
91177308-0d34-0410-b5e6-
96231b3b80d8
CEnd = Node->explicit_capture_end();
C != CEnd;
++C) {
+ if (C->capturesVLAType())
+ continue;
+
if (NeedComma)
OS << ", ";
NeedComma = true;
for (LambdaExpr::capture_iterator C = S->explicit_capture_begin(),
CEnd = S->explicit_capture_end();
C != CEnd; ++C) {
+ if (C->capturesVLAType())
+ continue;
+
ID.AddInteger(C->getCaptureKind());
switch (C->getCaptureKind()) {
case LCK_StarThis:
;
// CHECK-NOT: ;
+void g(int n) {
+ int buffer[n]; // CHECK: int buffer[n];
+ [&buffer]() {}(); // CHECK: [&buffer]
+}