diff options
| author | mydeveloperday <mydeveloperday@gmail.com> | 2020-05-09 11:26:38 +0100 |
|---|---|---|
| committer | mydeveloperday <mydeveloperday@gmail.com> | 2020-05-09 11:27:23 +0100 |
| commit | 31fd12aa09563d8402b1aefceaa2311b680e138c (patch) | |
| tree | c8288ac8f9a1002e50f9d801605f21ea455dff16 /llvm/lib/Analysis/CodeMetrics.cpp | |
| parent | 3c5dd5863c34ecd51e9d2a49929877d8151dea39 (diff) | |
| download | llvm-31fd12aa09563d8402b1aefceaa2311b680e138c.zip llvm-31fd12aa09563d8402b1aefceaa2311b680e138c.tar.gz llvm-31fd12aa09563d8402b1aefceaa2311b680e138c.tar.bz2 | |
[clang-format] [PR34574] Handle [[nodiscard]] attribute in class declaration
Summary:
https://bugs.llvm.org/show_bug.cgi?id=34574
https://bugs.llvm.org/show_bug.cgi?id=38401
```
template <typename T>
class [[nodiscard]] result
{
public:
result(T&&)
{
}
};
```
formats incorrectly to
```
template <typename T>
class [[nodiscard]] result{public : result(T &&){}};
```
Reviewed By: krasimir
Subscribers: cfe-commits
Tags: #clang, #clang-format
Differential Revision: https://reviews.llvm.org/D79354
Diffstat (limited to 'llvm/lib/Analysis/CodeMetrics.cpp')
0 files changed, 0 insertions, 0 deletions
