]> granicus.if.org Git - clang/commit
Switch from putting init capture VarDecls in the surrounding DeclContext to
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 28 Sep 2013 04:31:26 +0000 (04:31 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 28 Sep 2013 04:31:26 +0000 (04:31 +0000)
commit39edfeb34b0b0b8033179e35cf13cd5d95d56fa8
treeb1d17574e94fbc198ecfb8447fc1f1962a8aea64
parent04fa7a33279808dc3e5117c41b5f84c40eeb7362
Switch from putting init capture VarDecls in the surrounding DeclContext to
putting them in the call operator's DeclContext. This better matches the
language wording and avoids some cases where code gets confused by them for
namespace-scope lambdas and the like.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191606 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
lib/Sema/SemaLambda.cpp
test/CodeGenCXX/cxx1y-init-captures.cpp