[clang-tools-extra] 3ee4577 - [clang-tools-extra] Unify python shebangs (#187287)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 25 03:02:13 PDT 2026
Author: Ross Burton
Date: 2026-08-25T18:02:08+08:00
New Revision: 3ee45777538f5c99c9fefd4ba976dd38da07ceb6
URL: https://github.com/llvm/llvm-project/commit/3ee45777538f5c99c9fefd4ba976dd38da07ceb6
DIFF: https://github.com/llvm/llvm-project/commit/3ee45777538f5c99c9fefd4ba976dd38da07ceb6.diff
LOG: [clang-tools-extra] Unify python shebangs (#187287)
As per PEP-0394[1], there is no real concensus over what binary names
Python has, specifically 'python' could be Python 3, Python 2, or not
exist.
However, everyone has a python3 interpreter and the scripts are all
written for Python 3. Unify the shebangs so that the ~50% of shebangs
that use python now use python3.
[1] https://peps.python.org/pep-0394/
Added:
Modified:
clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
clang-tools-extra/clangd/test/remote-index/pipeline_helper.py
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py b/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
index 49a1b14932644..6158876d15f76 100755
--- a/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
+++ b/clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# =- run-find-all-symbols.py - Parallel find-all-symbols runner -*- python -*-=#
#
diff --git a/clang-tools-extra/clangd/test/remote-index/pipeline_helper.py b/clang-tools-extra/clangd/test/remote-index/pipeline_helper.py
index afdac985221a7..c9432341d304a 100644
--- a/clang-tools-extra/clangd/test/remote-index/pipeline_helper.py
+++ b/clang-tools-extra/clangd/test/remote-index/pipeline_helper.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# ===- pipeline_helper.py - Remote Index pipeline Helper *- python -------*--===#
#
More information about the cfe-commits
mailing list