summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/add_new_check.py
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clang-tidy/add_new_check.py')
-rwxr-xr-xclang-tools-extra/clang-tidy/add_new_check.py8
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("""
//
OpenPOWER on IntegriCloud