[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 19b6896..a85767a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- add_new_check.py - clang-tidy check generator ---------*- python -*--===#
 #
index 9c20217..4bb9af8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- rename_check.py - clang-tidy check renamer ------------*- python -*--===#
 #
index c70cba3..2135dd1 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
 ^^^^^^^^^^