hanchenye-llvm-project/clang-tools-extra/unittests
Haojian Wu 53315a7b98 [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
2016-11-15 09:06:59 +00:00
..
change-namespace [change-namespace] consider typedef/using alias decls in the moved namespace. 2016-11-14 19:37:55 +00:00
clang-apply-replacements [clang-apply-replacements] use Range::operator==() instead of self-defined operator. 2016-06-21 17:59:57 +00:00
clang-move [clang-move] Make the output code look more pretty. 2016-11-15 09:06:59 +00:00
clang-query Remove autoconf support 2016-01-26 21:31:36 +00:00
clang-tidy Fix signed/unsigned comparison warnings 2016-10-18 13:15:31 +00:00
include/common Remove clang-modernize. 2015-12-17 11:49:19 +00:00
include-fixer [include-fixer] Support processing multiple files in one run. 2016-08-09 08:26:19 +00:00
CMakeLists.txt [clang-move] A prototype tool for moving class definition to new file. 2016-09-21 13:18:19 +00:00