[PATCH] D98433: [clang] [C++2b] [P1102] Accept lambdas without parameter list ().
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 22 02:45:05 PDT 2021
curdeius added a comment.
I'll fix the formatting with the next update.
================
Comment at: clang/lib/Parse/ParseExprCXX.cpp:1445-1461
+ unsigned TokKind = 0;
+ switch (Tok.getKind()) {
+ case tok::kw_mutable: TokKind = 0; break;
+ case tok::arrow: TokKind = 1; break;
+ case tok::kw___attribute:
+ case tok::kw___private:
+ case tok::kw___global:
----------------
Is this really needed? May I simplify remove this switch and just have a generic warning message?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98433/new/
https://reviews.llvm.org/D98433
More information about the cfe-commits
mailing list