Skip to content

Commit 66e47a5

Browse files
committed
[clang-tidy] adjust scripts to subsubsections in Release Notes
Summary: I added subsubsections for typical Clang-tidy entries in Release Notes, so now scripts are aware of this changes. I don't have GitHub commit access, so please commit changes. Reviewers: aaron.ballman, alexfh, hokein Reviewed By: alexfh Subscribers: njames93, xazax.hun, cfe-commits Tags: #clang-tools-extra, #clang Differential Revision: https://reviews.llvm.org/D72527
1 parent 14c2cf8 commit 66e47a5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

clang-tools-extra/clang-tidy/add_new_check.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ def add_release_notes(module_path, module, check_name):
219219
with open(filename, 'r') as f:
220220
lines = f.readlines()
221221

222-
lineMatcher = re.compile('Improvements to clang-tidy')
223-
nextSectionMatcher = re.compile('Improvements to clang-include-fixer')
222+
lineMatcher = re.compile('New checks')
223+
nextSectionMatcher = re.compile('New check aliases')
224224
checkerMatcher = re.compile('- New :doc:`(.*)')
225225

226226
print('Updating %s...' % filename)
@@ -249,12 +249,12 @@ def add_release_notes(module_path, module, check_name):
249249
f.write(line)
250250
continue
251251

252-
if line.startswith('----'):
252+
if line.startswith('^^^^'):
253253
f.write(line)
254254
continue
255255

256256
if header_found and add_note_here:
257-
if not line.startswith('----'):
257+
if not line.startswith('^^^^'):
258258
f.write("""- New :doc:`%s
259259
<clang-tidy/checks/%s>` check.
260260

clang-tools-extra/clang-tidy/rename_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ def add_release_notes(clang_tidy_path, old_check_name, new_check_name):
176176

177177
for line in lines:
178178
if not note_added:
179-
match = re.search('Improvements to clang-tidy', line)
179+
match = re.search('Renamed checks', line)
180180
if match:
181181
header_found = True
182182
elif header_found:
183-
if not line.startswith('----'):
183+
if not line.startswith('^^^^'):
184184
f.write("""
185185
- The '%s' check was renamed to :doc:`%s
186186
<clang-tidy/checks/%s>`

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ New checks
8888
Flags use of the `C` standard library functions ``memset``, ``memcpy`` and
8989
``memcmp`` and similar derivatives on non-trivial types.
9090

91-
New aliases
92-
^^^^^^^^^^^
91+
New check aliases
92+
^^^^^^^^^^^^^^^^^
9393

9494
- New alias :doc:`cert-dcl37-c
9595
<clang-tidy/checks/cert-dcl37-c>` to

0 commit comments

Comments
 (0)