aaron.ballman added inline comments.

================
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:
----------------
curdeius wrote:
> Is this really needed? May I simplify remove this switch and just have a 
> generic warning message?
I think a generic diagnostic would be reasonable. I think `lambda without a 
parameter clause is a C++2b extension` would be sufficiently clear.



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98433/new/

https://reviews.llvm.org/D98433

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to