]> granicus.if.org Git - clang/commit
If capturing a variable fails, add a capture anyway (and mark it
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 28 May 2019 23:09:44 +0000 (23:09 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 28 May 2019 23:09:44 +0000 (23:09 +0000)
commit8465d5be63dbbd4ddb6adbab087b2a532bdc9e2b
treeb1e03b7558748c66bea5dd720fd9edc303b96c57
parent2ee14504678565a83ad74c0e85f8cb58abb9ffe3
If capturing a variable fails, add a capture anyway (and mark it
invalid) so that we can avoid repeated diagnostics for the same capture.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361891 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/ScopeInfo.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaLambda.cpp
lib/Sema/SemaStmt.cpp
test/CXX/expr/expr.prim/expr.prim.lambda/blocks.mm
test/Sema/captured-statements.c
test/SemaCXX/lambda-expressions.cpp
test/SemaObjCXX/capturing-flexible-array-in-block.mm