[all-commits] [llvm/llvm-project] 8f70d1: [clang-format] Handle attributes in enum declaration.
tchatow via All-commits
all-commits at lists.llvm.org
Thu May 26 06:44:10 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8f70d16c9ab2d7c060f5c92a31a0fc4a82349897
https://github.com/llvm/llvm-project/commit/8f70d16c9ab2d7c060f5c92a31a0fc4a82349897
Author: Tyler Chatow <tchatow at gmail.com>
Date: 2022-05-26 (Thu, 26 May 2022)
Changed paths:
M clang/lib/Format/UnwrappedLineParser.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Handle attributes in enum declaration.
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
};
```
Reviewed By: MyDeveloperDay, curdeius
Differential Revision: https://reviews.llvm.org/D125848
More information about the All-commits
mailing list