While here, fix an ugliness:
auto foo()->auto { return 42; }
This (silly) code gains a "-> int" hint. While correct and useful, it renders as
auto foo()->int->auto { return 42; }
which is confusing enough to do more harm than good I think.
Differential D120416
[clangd] Function return type hints: support lambdas, don't duplicate "->" sammccall on Feb 23 2022, 7:59 AM. Authored by
Details While here, fix an ugliness: auto foo()->auto { return 42; } This (silly) code gains a "-> int" hint. While correct and useful, it renders as auto foo()->int->auto { return 42; } which is confusing enough to do more harm than good I think.
Diff Detail
Event TimelineComment Actions Nice!
|