Fixes https://github.com/llvm/llvm-project/issues/53293.
After commit 5c2e7c9, the code:
template <> struct S : Template<int (*)[]> {};
was misformatted as:
template <> struct S : Template<int (*)[]>{};
Paths
| Differential D118106
[clang-format] Fix regression in parsing pointers to arrays. ClosedPublic Authored by curdeius on Jan 25 2022, 12:40 AM.
Details Summary Fixes https://github.com/llvm/llvm-project/issues/53293. After commit 5c2e7c9, the code: template <> struct S : Template<int (*)[]> {}; was misformatted as: template <> struct S : Template<int (*)[]>{};
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jan 25 2022, 1:40 AM This revision was landed with ongoing or failed builds.Jan 26 2022, 12:27 AM Closed by commit rG72e29caf039f: [clang-format] Fix regression in parsing pointers to arrays. (authored by curdeius). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 402783 clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp
|