Skip to content

Commit

Permalink
[clang-tidy] Use Python3 for add_new_check.py and rename_check.py
Browse files Browse the repository at this point in the history
Fixes llvm#58782

Differential Revision: https://reviews.llvm.org/D139966
  • Loading branch information
carlosgalvezp committed Dec 16, 2022
1 parent 59df564 commit 66bf54a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-tidy/add_new_check.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
#===- add_new_check.py - clang-tidy check generator ---------*- python -*--===#
#
Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clang-tidy/rename_check.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
#===- rename_check.py - clang-tidy check renamer ------------*- python -*--===#
#
Expand Down
3 changes: 3 additions & 0 deletions clang-tools-extra/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
^^^^^^^^^^

Expand Down

0 comments on commit 66bf54a

Please sign in to comment.