summaryrefslogtreecommitdiff
path: root/clang/test/Parser/objcxx11-invalid-lambda.cpp
AgeCommit message (Collapse)Author
2020-06-12[AST][RecoveryExpr] Build recovery expressions by default for C++.Haojian Wu
Reland https://reviews.llvm.org/D76696 All known crashes have been fixed, another attemption. We have rolled out this to all internal users for a while, didn't see big issues, we consider it is stable enough. Reviewed By: sammccall Subscribers: rsmith, hubert.reinterpretcast, ebevhan, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D78350
2020-03-26Revert "[AST] Build recovery expressions by default for C++."Haojian Wu
This reverts commit 0788acbccbec094903a3425ffe5a98f8d55cbd64. This reverts commit c2d7a1f79cedfc9fcb518596aa839da4de0adb69: Revert "[clangd] Add test for FindTarget+RecoveryExpr (which already works). NFC" It causes a crash on invalid code: class X { decltype(unresolved()) foo; }; constexpr int s = sizeof(X);
2020-03-25[AST] Build recovery expressions by default for C++.Haojian Wu
Update the existing tests. Reviewers: sammccall Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D76696
2019-05-20Rearrange and clean up how we disambiguate lambda-introducers from ObjCRichard Smith
message sends, designators, and attributes. Instead of having the tentative parsing phase sometimes return an indicator to say what diagnostic to produce if parsing fails and sometimes ask the caller to run it again, consistently ask the caller to try parsing again if tentative parsing would fail or is otherwise unable to completely parse the lambda-introducer without producing an irreversible semantic effect. Mostly NFC, but we should recover marginally better in some error cases (avoiding duplicate diagnostics). llvm-svn: 361182
2017-11-06[Parser] Fix TryParseLambdaIntroducer() error handlingJan Korous
rdar://35066196 Differential Revision: https://reviews.llvm.org/D39419 llvm-svn: 317493