[clang-tidy] Use Python3 for add_new_check.py and rename_check.py
authorCarlos Galvez <carlosgalvezp@gmail.com>
Tue, 13 Dec 2022 21:06:14 +0000 (21:06 +0000)
committerCarlos Galvez <carlosgalvezp@gmail.com>
Fri, 16 Dec 2022 06:54:16 +0000 (06:54 +0000)
Fixes #58782

Differential Revision: https://reviews.llvm.org/D139966

clang-tools-extra/clang-tidy/add_new_check.py
clang-tools-extra/clang-tidy/rename_check.py
clang-tools-extra/docs/ReleaseNotes.rst

index 19b6896e508fbd7fe5f4f1a399881a152978489a..a85767acdce91668e174cef21a53ef781c9c7356 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- add_new_check.py - clang-tidy check generator ---------*- python -*--===#
 #
index 9c2021751e0e598f5707e8ef5899720dfc2a91b0..4bb9af8cbe0a8fa690599719e0d88be2cd866165 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- rename_check.py - clang-tidy check renamer ------------*- python -*--===#
 #
index c70cba344b41fb57643a177181d06a7c26b7ccec..2135dd1e01be0c3249b7442f5936bd95b741220d 100644 (file)
@@ -96,6 +96,9 @@ The improvements are...
 Improvements to clang-tidy
 --------------------------
 
+- Change to Python 3 in the shebang of `add_new_check.py` and `rename_check.py`,
+  as the existing code is not compatible with Python 2.
+
 New checks
 ^^^^^^^^^^