Fixes https://github.com/llvm/llvm-project/issues/55457
Ensures that attributes in the enum declaration are interpreted
correctly, for instance:
enum class [[nodiscard]] E { a, b };
Paths
| Differential D125848
[clang-format] Handle attributes in enum declaration. ClosedPublic Authored by tchatow on May 17 2022, 9:19 PM.
Details Summary Fixes https://github.com/llvm/llvm-project/issues/55457 Ensures that attributes in the enum declaration are interpreted enum class [[nodiscard]] E { a, b };
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 23 2022, 8:46 AM Comment Actions Could you please add test cases with non-empty enums both with and without comments please like in the bug report? Closed by commit rG8f70d16c9ab2: [clang-format] Handle attributes in enum declaration. (authored by tchatow, committed by curdeius). · Explain WhyMay 26 2022, 6:44 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 432266 clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp
|