diff options
| author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2018-09-20 00:02:55 +0000 |
|---|---|---|
| committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2018-09-20 00:02:55 +0000 |
| commit | 04d38c5f527d06e43aad5bba55d2eb2f8131e0f5 (patch) | |
| tree | 46d1c08278dadae66de31efd71cdc9afd0ecdc7e /clang-tools-extra/clang-tidy/add_new_check.py | |
| parent | b081f44e17a244491240fabd5878165fa118cd08 (diff) | |
| download | bcm5719-llvm-04d38c5f527d06e43aad5bba55d2eb2f8131e0f5.tar.gz bcm5719-llvm-04d38c5f527d06e43aad5bba55d2eb2f8131e0f5.zip | |
[Clang-tidy] Alphabetical sort of files/checks. Add space after clang-tidy in source code headers.
llvm-svn: 342601
Diffstat (limited to 'clang-tools-extra/clang-tidy/add_new_check.py')
| -rwxr-xr-x | clang-tools-extra/clang-tidy/add_new_check.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang-tools-extra/clang-tidy/add_new_check.py b/clang-tools-extra/clang-tidy/add_new_check.py index 4d811aa1f2f..eb175b4acd1 100755 --- a/clang-tools-extra/clang-tidy/add_new_check.py +++ b/clang-tools-extra/clang-tidy/add_new_check.py @@ -56,8 +56,8 @@ def write_header(module_path, module, check_name, check_name_camel): + check_name_camel.upper() + '_H') f.write('//===--- ') f.write(os.path.basename(filename)) - f.write(' - clang-tidy') - f.write('-' * max(0, 43 - len(os.path.basename(filename)))) + f.write(' - clang-tidy ') + f.write('-' * max(0, 42 - len(os.path.basename(filename)))) f.write('*- C++ -*-===//') f.write(""" // @@ -107,8 +107,8 @@ def write_implementation(module_path, module, check_name_camel): with open(filename, 'w') as f: f.write('//===--- ') f.write(os.path.basename(filename)) - f.write(' - clang-tidy') - f.write('-' * max(0, 52 - len(os.path.basename(filename)))) + f.write(' - clang-tidy ') + f.write('-' * max(0, 51 - len(os.path.basename(filename)))) f.write('-===//') f.write(""" // |

