diff options
| author | Krasimir Georgiev <krasimir@google.com> | 2017-03-06 16:44:45 +0000 |
|---|---|---|
| committer | Krasimir Georgiev <krasimir@google.com> | 2017-03-06 16:44:45 +0000 |
| commit | bda77397db14ebf2d4688fae28226dcdf35bda1e (patch) | |
| tree | 6136c1ddf3564b900b64440e1679f959f66a779c /llvm/lib | |
| parent | adacd8f6176b90935f21f3df34cfcb8cca4e6dbf (diff) | |
| download | bcm5719-llvm-bda77397db14ebf2d4688fae28226dcdf35bda1e.tar.gz bcm5719-llvm-bda77397db14ebf2d4688fae28226dcdf35bda1e.zip | |
[clang-format] Make NamespaceEndCommentFixer add at most one comment
Summary:
Until now, NamespaceEndCommentFixer was adding missing comments for every run,
which results in multiple end comments for:
```
namespace {
int i;
int j;
}
#if A
int a = 1;
#else
int a = 2;
#endif
```
result before:
```
namespace {
int i;
int j;
}// namespace // namespace
#if A
int a = 1;
#else
int a = 2;
#endif
```
result after:
```
namespace {
int i;
int j;
}// namespace
#if A
int a = 1;
#else
int a = 2;
#endif
```
Reviewers: djasper
Reviewed By: djasper
Subscribers: klimek, cfe-commits
Differential Revision: https://reviews.llvm.org/D30659
llvm-svn: 297028
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions

