Revert D119136 "[clang] Implement Change scope of lambda trailing-return-type" and...
authorFangrui Song <i@maskray.me>
Wed, 20 Apr 2022 17:57:12 +0000 (10:57 -0700)
committerFangrui Song <i@maskray.me>
Wed, 20 Apr 2022 17:57:12 +0000 (10:57 -0700)
commitc79e6007edef4b0044be93c4ffff64dc806ac687
tree5e868171baac25d8dd70b24866165044226e6989
parent3d612a930dce229c887cd9a731084df419f43791
Revert D119136 "[clang] Implement Change scope of lambda trailing-return-type" and its follow-up

This reverts commit 69dd89fdcbd846375a45e2fe3a88710887236d7a.
This reverts commit 04000c2f928a7adc32138a664d167f01b642bef3.

The current states breaks libstdc++ usage (https://reviews.llvm.org/D119136#3455423).
The fixup has been reverted as it caused other valid code to be disallowed.
I think we should start from the clean state by reverting all relevant commits.
20 files changed:
clang/docs/ReleaseNotes.rst
clang/include/clang/AST/DeclCXX.h
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Parse/Parser.h
clang/include/clang/Sema/Scope.h
clang/include/clang/Sema/ScopeInfo.h
clang/include/clang/Sema/Sema.h
clang/lib/Parse/ParseExprCXX.cpp
clang/lib/Sema/Scope.cpp
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaCXXScopeSpec.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/lib/Sema/SemaLambda.cpp
clang/lib/Sema/TreeTransform.h
clang/test/CXX/expr/expr.prim/expr.prim.lambda/p11-1y.cpp
clang/test/CXX/expr/expr.prim/expr.prim.lambda/p4.cpp
clang/test/SemaCXX/lambda-capture-type-deduction.cpp [deleted file]
clang/test/SemaCXX/warn-shadow-in-lambdas.cpp
clang/www/cxx_status.html