https://github.com/llvm/llvm-project/issues/53008
template <class Id> using A = quantity /**/<kind<Id>, 1>;
the presence of the comment between identifier and template opener seems to be causing the qualifier alignment to fail
Differential D116726
[clang-format] Fix a crash (assertion) in qualifier alignment when matching template closer is null MyDeveloperDay on Jan 6 2022, 12:24 AM. Authored by
Details https://github.com/llvm/llvm-project/issues/53008 template <class Id> using A = quantity /**/<kind<Id>, 1>; the presence of the comment between identifier and template opener seems to be causing the qualifier alignment to fail
Diff Detail Event Timeline
Comment Actions Use getNextNonComment() which has some const-ness knock ons (but probably not a bad thing) address the review concerns by adding more tests (which indeed highlighted new failure scenarios! Thanks @curdeius) Comment Actions Just a last thought, you can maybe minimize some of the test cases. using X = Y /**/ <>; reproduces the issue. Comment Actions Simplify down the test to make it easier to read, keep perhaps slightly duplicated tests to just ensure we have the coverage |
Could you test with a line comment too?