[PATCH] D16270: [clang-tidy] Python scripts shebang fixes

Kirill Bobyrev via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 17 07:54:38 PST 2016


omtcyf0 created this revision.
omtcyf0 added reviewers: klimek, alexfh.
omtcyf0 added a subscriber: cfe-commits.

This patch fixes shebang lines in Python script files.

Most Python scripts in LLVM & Clang are using this shebang line.

[[ https://mail.python.org/pipermail/tutor/2007-June/054816.html | Here]] is an explanaiton of why such line should be used instead of what is currently in these few files.

http://reviews.llvm.org/D16270

Files:
  clang-tidy/tool/clang-tidy-diff.py
  docs/clang-tidy/tools/dump_check_docs.py
  test/clang-tidy/check_clang_tidy.py

Index: test/clang-tidy/check_clang_tidy.py
===================================================================
--- test/clang-tidy/check_clang_tidy.py
+++ test/clang-tidy/check_clang_tidy.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #
 #===- check_clang_tidy.py - ClangTidy Test Helper ------------*- python -*--===#
 #
Index: docs/clang-tidy/tools/dump_check_docs.py
===================================================================
--- docs/clang-tidy/tools/dump_check_docs.py
+++ docs/clang-tidy/tools/dump_check_docs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 r"""
 Create stubs for check documentation files.
Index: clang-tidy/tool/clang-tidy-diff.py
===================================================================
--- clang-tidy/tool/clang-tidy-diff.py
+++ clang-tidy/tool/clang-tidy-diff.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #
 #===- clang-tidy-diff.py - ClangTidy Diff Checker ------------*- python -*--===#
 #


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16270.45106.patch
Type: text/x-patch
Size: 988 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160117/def6e0a4/attachment-0001.bin>


More information about the cfe-commits mailing list