summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2016-01-19 16:10:39 +0000
committerAlexander Kornienko <alexfh@google.com>2016-01-19 16:10:39 +0000
commite04dd2525c43330e6b7348cb65d4d033d3eaf6db (patch)
treeeea42c3ba6cc1091610f28d5d4a19d7263fe0242
parentb9f4f62cfe15dd6dc2c827c6cc9c51f72f933c5c (diff)
downloadbcm5719-llvm-e04dd2525c43330e6b7348cb65d4d033d3eaf6db.tar.gz
bcm5719-llvm-e04dd2525c43330e6b7348cb65d4d033d3eaf6db.zip
[clang-tidy] Python scripts shebang fixes
Summary: 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. Reviewers: klimek, alexfh Subscribers: cfe-commits Patch by Kirill Bobyrev! Differential Revision: http://reviews.llvm.org/D16270 llvm-svn: 258133
-rwxr-xr-xclang-tools-extra/clang-tidy/tool/clang-tidy-diff.py2
-rwxr-xr-xclang-tools-extra/docs/clang-tidy/tools/dump_check_docs.py2
-rwxr-xr-xclang-tools-extra/test/clang-tidy/check_clang_tidy.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py b/clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py
index 700c5db7bfe..9e407cc62b4 100755
--- a/clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py
+++ b/clang-tools-extra/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 -*--===#
#
diff --git a/clang-tools-extra/docs/clang-tidy/tools/dump_check_docs.py b/clang-tools-extra/docs/clang-tidy/tools/dump_check_docs.py
index 5f376e76eec..a45d15a613d 100755
--- a/clang-tools-extra/docs/clang-tidy/tools/dump_check_docs.py
+++ b/clang-tools-extra/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.
diff --git a/clang-tools-extra/test/clang-tidy/check_clang_tidy.py b/clang-tools-extra/test/clang-tidy/check_clang_tidy.py
index 0feb4b4aea3..a60c25cb082 100755
--- a/clang-tools-extra/test/clang-tidy/check_clang_tidy.py
+++ b/clang-tools-extra/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 -*--===#
#
OpenPOWER on IntegriCloud