diff options
author | Haojian Wu <hokein@google.com> | 2016-11-15 09:06:59 +0000 |
---|---|---|
committer | Haojian Wu <hokein@google.com> | 2016-11-15 09:06:59 +0000 |
commit | 53315a7b98dd97f9ead880ecf84906b01e8958d2 (patch) | |
tree | c35130e07437b56940f1245a7a684d816a9bdc51 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 8741656efdd0b4f5a4dd6d2f6b7ad8d6e4f09725 (diff) | |
download | llvm-53315a7b98dd97f9ead880ecf84906b01e8958d2.zip llvm-53315a7b98dd97f9ead880ecf84906b01e8958d2.tar.gz llvm-53315a7b98dd97f9ead880ecf84906b01e8958d2.tar.bz2 |
[clang-move] Make the output code look more pretty.
Summary:
Add decent blank lines between declarations:
* Add extra blank line after #define or #includes.
* Add extra blank line between declarations.
* Add extra blank line in front of #endif.
Previously, the new generated code is quite tight:
```
#ifndef FOO_H
#define FOO_H
namespace a {
class A { public: int f(); };
int A::f() { return 0; }
} // namespace a
#endif // FOO_H
```
After this patch, the code looks like:
```
#ifndef FOO_H
#define FOO_H
namespace a {
class A { public: int f(); };
int A::f() { return 0; }
} // namespace a
#endif // FOO_H
```
Reviewers: ioeric
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D26493
llvm-svn: 286943
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
0 files changed, 0 insertions, 0 deletions