Bruno Ricci 32db24a7f2
[clang] Provide a more specific diagnostic for a misplaced lambda capture-default.
Currently a capture-default which is not the first element in the lambda-capture
is diagnosed with a generic expected variable name or 'this' in lambda capture
list, which is true but not very helpful.

If we don't have already parsed a capture-default then a lone "&" or "=" is
likely to be a misplaced capture-default, so diagnose it as such.

Differential Revision: https://reviews.llvm.org/D83681

Reviewed By: aaron.ballman
2020-07-18 20:35:16 +01:00
..
2019-05-30 15:38:02 +00:00
2019-09-04 21:01:57 +00:00
2018-04-06 15:14:32 +00:00
2018-04-06 15:14:32 +00:00
2019-08-27 20:33:05 +00:00
2017-04-04 21:18:36 +00:00
2020-02-24 08:08:47 -05:00
2019-03-14 14:40:48 +00:00