From 66bf54abb54e6eafb08fcece87cf5d9d32fedcd3 Mon Sep 17 00:00:00 2001 From: Carlos Galvez Date: Tue, 13 Dec 2022 21:06:14 +0000 Subject: [PATCH] [clang-tidy] Use Python3 for add_new_check.py and rename_check.py Fixes #58782 Differential Revision: https://reviews.llvm.org/D139966 --- clang-tools-extra/clang-tidy/add_new_check.py | 2 +- clang-tools-extra/clang-tidy/rename_check.py | 2 +- clang-tools-extra/docs/ReleaseNotes.rst | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/clang-tools-extra/clang-tidy/add_new_check.py b/clang-tools-extra/clang-tidy/add_new_check.py index 19b6896e508fbd..a85767acdce916 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 9c2021751e0e59..4bb9af8cbe0a8f 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 c70cba344b41fb..2135dd1e01be0c 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 ^^^^^^^^^^