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 -*--===# #
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 -*--===# #
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits