https://github.com/llvm/llvm-project/issues/43196
Fixes #43196
-> is incorrectly interpreted as a TrailingReturnArrow if we've seen an auto
auto p = new A; auto x = p -> foo<1>();
Differential D115903
[clang-format] Extra spaces surrounding arrow in templated member call in variable decl Authored by MyDeveloperDay on Dec 16 2021, 1:42 PM.
Details https://github.com/llvm/llvm-project/issues/43196 Fixes #43196 -> is incorrectly interpreted as a TrailingReturnArrow if we've seen an auto auto p = new A; auto x = p -> foo<1>();
Diff Detail
Event Timeline
Comment Actions LGTM.
| ||||||||||||||||||||||||
Won't it break lambdas with an identifier (e.g. macro) before the arrow? E.g.:
auto lmbd = [] NOEXCEPT -> int { return 0; };