From e04dd2525c43330e6b7348cb65d4d033d3eaf6db Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Tue, 19 Jan 2016 16:10:39 +0000 Subject: [PATCH] [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 --- clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py | 2 +- clang-tools-extra/docs/clang-tidy/tools/dump_check_docs.py | 2 +- clang-tools-extra/test/clang-tidy/check_clang_tidy.py | 2 +- 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 700c5db7bfe3..9e407cc62b45 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 5f376e76eecc..a45d15a613d0 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 0feb4b4aea30..a60c25cb0829 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 -*--===# #