[clang-tools-extra] r318918 - [clang-tidy] rename_check.py: Update '=====...' line in the docs.

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 23 06:05:32 PST 2017


Author: alexfh
Date: Thu Nov 23 06:05:32 2017
New Revision: 318918

URL: http://llvm.org/viewvc/llvm-project?rev=318918&view=rev
Log:
[clang-tidy] rename_check.py: Update '=====...' line in the docs.

Modified:
    clang-tools-extra/trunk/clang-tidy/rename_check.py

Modified: clang-tools-extra/trunk/clang-tidy/rename_check.py
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/rename_check.py?rev=318918&r1=318917&r2=318918&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/rename_check.py (original)
+++ clang-tools-extra/trunk/clang-tidy/rename_check.py Thu Nov 23 06:05:32 2017
@@ -226,6 +226,13 @@ def main():
     replaceInFile(filename, generateCommentLineSource(originalName),
                   generateCommentLineSource(filename))
     replaceInFile(filename, header_guard_old, header_guard_new)
+
+    if args.new_check_name + '.rst' in filename:
+      replaceInFile(
+          filename,
+          args.old_check_name + '\n' + '=' * len(args.old_check_name) + '\n',
+          args.new_check_name + '\n' + '=' * len(args.new_check_name) + '\n')
+
     replaceInFile(filename, args.old_check_name, args.new_check_name)
     replaceInFile(filename, check_name_camel, new_check_name_camel)
 




More information about the cfe-commits mailing list