[clang-tools-extra] 66bf54a - [clang-tidy] Use Python3 for add_new_check.py and rename_check.py
Carlos Galvez via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 15 22:54:25 PST 2022
Author: Carlos Galvez
Date: 2022-12-16T06:54:16Z
New Revision: 66bf54abb54e6eafb08fcece87cf5d9d32fedcd3
URL: https://github.com/llvm/llvm-project/commit/66bf54abb54e6eafb08fcece87cf5d9d32fedcd3
DIFF: https://github.com/llvm/llvm-project/commit/66bf54abb54e6eafb08fcece87cf5d9d32fedcd3.diff
LOG: [clang-tidy] Use Python3 for add_new_check.py and rename_check.py
Fixes #58782
Differential Revision: https://reviews.llvm.org/D139966
Added:
Modified:
clang-tools-extra/clang-tidy/add_new_check.py
clang-tools-extra/clang-tidy/rename_check.py
clang-tools-extra/docs/ReleaseNotes.rst
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/add_new_check.py b/clang-tools-extra/clang-tidy/add_new_check.py
index 19b6896e508fb..a85767acdce91 100755
--- a/clang-tools-extra/clang-tidy/add_new_check.py
+++ b/clang-tools-extra/clang-tidy/add_new_check.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
#===- add_new_check.py - clang-tidy check generator ---------*- python -*--===#
#
diff --git a/clang-tools-extra/clang-tidy/rename_check.py b/clang-tools-extra/clang-tidy/rename_check.py
index 9c2021751e0e5..4bb9af8cbe0a8 100755
--- a/clang-tools-extra/clang-tidy/rename_check.py
+++ b/clang-tools-extra/clang-tidy/rename_check.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
#===- rename_check.py - clang-tidy check renamer ------------*- python -*--===#
#
diff --git a/clang-tools-extra/docs/ReleaseNotes.rst b/clang-tools-extra/docs/ReleaseNotes.rst
index c70cba344b41f..2135dd1e01be0 100644
--- a/clang-tools-extra/docs/ReleaseNotes.rst
+++ b/clang-tools-extra/docs/ReleaseNotes.rst
@@ -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
^^^^^^^^^^
More information about the cfe-commits
mailing list