Eugene.Zelenko updated this revision to Diff 237720. Eugene.Zelenko added a comment.
Renamed "New aliases" to "New check aliases". Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D72527/new/ https://reviews.llvm.org/D72527 Files: clang-tools-extra/clang-tidy/add_new_check.py clang-tools-extra/clang-tidy/rename_check.py clang-tools-extra/docs/ReleaseNotes.rst Index: clang-tools-extra/docs/ReleaseNotes.rst =================================================================== --- clang-tools-extra/docs/ReleaseNotes.rst +++ clang-tools-extra/docs/ReleaseNotes.rst @@ -171,8 +171,8 @@ Finds classes, structs, and unions that contain redundant member access specifiers. -New aliases -^^^^^^^^^^^ +New check aliases +^^^^^^^^^^^^^^^^^ - New alias :doc:`cert-pos44-c <clang-tidy/checks/cert-pos44-c>` to Index: clang-tools-extra/clang-tidy/rename_check.py =================================================================== --- clang-tools-extra/clang-tidy/rename_check.py +++ clang-tools-extra/clang-tidy/rename_check.py @@ -176,11 +176,11 @@ for line in lines: if not note_added: - match = re.search('Improvements to clang-tidy', line) + match = re.search('Renamed checks', line) if match: header_found = True elif header_found: - if not line.startswith('----'): + if not line.startswith('^^^^'): f.write(""" - The '%s' check was renamed to :doc:`%s <clang-tidy/checks/%s>` Index: clang-tools-extra/clang-tidy/add_new_check.py =================================================================== --- clang-tools-extra/clang-tidy/add_new_check.py +++ clang-tools-extra/clang-tidy/add_new_check.py @@ -219,8 +219,8 @@ with open(filename, 'r') as f: lines = f.readlines() - lineMatcher = re.compile('Improvements to clang-tidy') - nextSectionMatcher = re.compile('Improvements to clang-include-fixer') + lineMatcher = re.compile('New checks') + nextSectionMatcher = re.compile('New check aliases') checkerMatcher = re.compile('- New :doc:`(.*)') print('Updating %s...' % filename) @@ -249,12 +249,12 @@ f.write(line) continue - if line.startswith('----'): + if line.startswith('^^^^'): f.write(line) continue if header_found and add_note_here: - if not line.startswith('----'): + if not line.startswith('^^^^'): f.write("""- New :doc:`%s <clang-tidy/checks/%s>` check.
Index: clang-tools-extra/docs/ReleaseNotes.rst =================================================================== --- clang-tools-extra/docs/ReleaseNotes.rst +++ clang-tools-extra/docs/ReleaseNotes.rst @@ -171,8 +171,8 @@ Finds classes, structs, and unions that contain redundant member access specifiers. -New aliases -^^^^^^^^^^^ +New check aliases +^^^^^^^^^^^^^^^^^ - New alias :doc:`cert-pos44-c <clang-tidy/checks/cert-pos44-c>` to Index: clang-tools-extra/clang-tidy/rename_check.py =================================================================== --- clang-tools-extra/clang-tidy/rename_check.py +++ clang-tools-extra/clang-tidy/rename_check.py @@ -176,11 +176,11 @@ for line in lines: if not note_added: - match = re.search('Improvements to clang-tidy', line) + match = re.search('Renamed checks', line) if match: header_found = True elif header_found: - if not line.startswith('----'): + if not line.startswith('^^^^'): f.write(""" - The '%s' check was renamed to :doc:`%s <clang-tidy/checks/%s>` Index: clang-tools-extra/clang-tidy/add_new_check.py =================================================================== --- clang-tools-extra/clang-tidy/add_new_check.py +++ clang-tools-extra/clang-tidy/add_new_check.py @@ -219,8 +219,8 @@ with open(filename, 'r') as f: lines = f.readlines() - lineMatcher = re.compile('Improvements to clang-tidy') - nextSectionMatcher = re.compile('Improvements to clang-include-fixer') + lineMatcher = re.compile('New checks') + nextSectionMatcher = re.compile('New check aliases') checkerMatcher = re.compile('- New :doc:`(.*)') print('Updating %s...' % filename) @@ -249,12 +249,12 @@ f.write(line) continue - if line.startswith('----'): + if line.startswith('^^^^'): f.write(line) continue if header_found and add_note_here: - if not line.startswith('----'): + if not line.startswith('^^^^'): f.write("""- New :doc:`%s <clang-tidy/checks/%s>` check.
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits