]> granicus.if.org Git - clang/commit
Alternate fix to PR12248: put Sema in charge of special-casing
authorJohn McCall <rjmccall@apple.com>
Tue, 13 Mar 2012 00:37:01 +0000 (00:37 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 13 Mar 2012 00:37:01 +0000 (00:37 +0000)
commit78dae24600a877f52dbb6e58bfd5778754a00974
treec04e7d5b386b2fd083c0dff74a2d34517e444680
parent8ce6d214aef65ea1421eb11e84980dfa4da429b8
Alternate fix to PR12248:  put Sema in charge of special-casing
the diagnostic for assigning to a copied block capture.  This has
the pleasant side-effect of letting us special-case the diagnostic
for assigning to a copied lambda capture as well, without introducing
a new non-modifiable enumerator for it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152593 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Expr.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/ExprClassification.cpp
lib/Sema/SemaExpr.cpp
test/SemaCXX/lambda-expressions.cpp