Index: clang/utils/clangdiag.py =================================================================== --- clang/utils/clangdiag.py +++ clang/utils/clangdiag.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #---------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: clang/utils/modfuzz.py =================================================================== --- clang/utils/modfuzz.py +++ clang/utils/modfuzz.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/usr/bin/env python # To use: # 1) Update the 'decls' list below with your fuzzing configuration. Index: compiler-rt/lib/sanitizer_common/scripts/litlint_test.py =================================================================== --- compiler-rt/lib/sanitizer_common/scripts/litlint_test.py +++ compiler-rt/lib/sanitizer_common/scripts/litlint_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # Tests for litlint.py # Index: compiler-rt/test/sanitizer_common/android_commands/android_compile.py =================================================================== --- compiler-rt/test/sanitizer_common/android_commands/android_compile.py +++ compiler-rt/test/sanitizer_common/android_commands/android_compile.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os, sys, subprocess from android_common import * Index: compiler-rt/test/sanitizer_common/android_commands/android_run.py =================================================================== --- compiler-rt/test/sanitizer_common/android_commands/android_run.py +++ compiler-rt/test/sanitizer_common/android_commands/android_run.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os, signal, sys, subprocess, tempfile from android_common import * Index: compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py =================================================================== --- compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py +++ compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os, sys, subprocess Index: compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py =================================================================== --- compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py +++ compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os, sys, subprocess Index: compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py =================================================================== --- compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py +++ compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import json Index: compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py =================================================================== --- compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py +++ compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import glob, os, pipes, sys, subprocess Index: debuginfo-tests/dexter/dexter.py =================================================================== --- debuginfo-tests/dexter/dexter.py +++ debuginfo-tests/dexter/dexter.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # DExTer : Debugging Experience Tester # ~~~~~~ ~ ~~ ~ ~~ # Index: debuginfo-tests/llgdb-tests/llgdb.py =================================================================== --- debuginfo-tests/llgdb-tests/llgdb.py +++ debuginfo-tests/llgdb-tests/llgdb.py @@ -1,4 +1,4 @@ -#!/bin/env python +#!/usr/bin/env python """ A gdb-compatible frontend for lldb that implements just enough commands to run the tests in the debuginfo-tests repository with lldb. Index: libc/AOR_v20.02/math/tools/plot.py =================================================================== --- libc/AOR_v20.02/math/tools/plot.py +++ libc/AOR_v20.02/math/tools/plot.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # ULP error plot tool. # Index: libcxx/utils/google-benchmark/mingw.py =================================================================== --- libcxx/utils/google-benchmark/mingw.py +++ libcxx/utils/google-benchmark/mingw.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/usr/bin/env python # encoding: utf-8 import argparse Index: lldb/examples/darwin/heap_find/heap.py =================================================================== --- lldb/examples/darwin/heap_find/heap.py +++ lldb/examples/darwin/heap_find/heap.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #---------------------------------------------------------------------- # This module is designed to live inside the "lldb" python package Index: lldb/examples/python/armv7_cortex_m_target_defintion.py =================================================================== --- lldb/examples/python/armv7_cortex_m_target_defintion.py +++ lldb/examples/python/armv7_cortex_m_target_defintion.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #===-- armv7_cortex_m_target_definition.py.py ------------------*- C++ -*-===// # # The LLVM Compiler Infrastructure Index: lldb/examples/python/bsd.py =================================================================== --- lldb/examples/python/bsd.py +++ lldb/examples/python/bsd.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python from __future__ import print_function import cmd Index: lldb/examples/python/cmdtemplate.py =================================================================== --- lldb/examples/python/cmdtemplate.py +++ lldb/examples/python/cmdtemplate.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # --------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: lldb/examples/python/crashlog.py =================================================================== --- lldb/examples/python/crashlog.py +++ lldb/examples/python/crashlog.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #---------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: lldb/examples/python/delta.py =================================================================== --- lldb/examples/python/delta.py +++ lldb/examples/python/delta.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #---------------------------------------------------------------------- # This module will enable GDB remote packet logging when the Index: lldb/examples/python/disasm-stress-test.py =================================================================== --- lldb/examples/python/disasm-stress-test.py +++ lldb/examples/python/disasm-stress-test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import argparse import datetime Index: lldb/examples/python/disasm.py =================================================================== --- lldb/examples/python/disasm.py +++ lldb/examples/python/disasm.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #---------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: lldb/examples/python/file_extract.py =================================================================== --- lldb/examples/python/file_extract.py +++ lldb/examples/python/file_extract.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/usr/bin/env python import string import struct Index: lldb/examples/python/gdbremote.py =================================================================== --- lldb/examples/python/gdbremote.py +++ lldb/examples/python/gdbremote.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #---------------------------------------------------------------------- # This module will enable GDB remote packet logging when the Index: lldb/examples/python/globals.py =================================================================== --- lldb/examples/python/globals.py +++ lldb/examples/python/globals.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #---------------------------------------------------------------------- # For the shells csh, tcsh: Index: lldb/examples/python/lldb_module_utils.py =================================================================== --- lldb/examples/python/lldb_module_utils.py +++ lldb/examples/python/lldb_module_utils.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python from __future__ import print_function import lldb Index: lldb/examples/python/lldbtk.py =================================================================== --- lldb/examples/python/lldbtk.py +++ lldb/examples/python/lldbtk.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python from __future__ import print_function import lldb Index: lldb/examples/python/mach_o.py =================================================================== --- lldb/examples/python/mach_o.py +++ lldb/examples/python/mach_o.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python from __future__ import print_function import cmd Index: lldb/examples/python/memory.py =================================================================== --- lldb/examples/python/memory.py +++ lldb/examples/python/memory.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #---------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: lldb/examples/python/operating_system.py =================================================================== --- lldb/examples/python/operating_system.py +++ lldb/examples/python/operating_system.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import lldb import struct Index: lldb/examples/python/performance.py =================================================================== --- lldb/examples/python/performance.py +++ lldb/examples/python/performance.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #---------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: lldb/examples/python/process_events.py =================================================================== --- lldb/examples/python/process_events.py +++ lldb/examples/python/process_events.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #---------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: lldb/examples/python/sbvalue.py =================================================================== --- lldb/examples/python/sbvalue.py +++ lldb/examples/python/sbvalue.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import lldb Index: lldb/examples/python/shadow.py =================================================================== --- lldb/examples/python/shadow.py +++ lldb/examples/python/shadow.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python from __future__ import print_function import lldb Index: lldb/examples/python/sources.py =================================================================== --- lldb/examples/python/sources.py +++ lldb/examples/python/sources.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python from __future__ import print_function import lldb Index: lldb/examples/python/stacks.py =================================================================== --- lldb/examples/python/stacks.py +++ lldb/examples/python/stacks.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python from __future__ import print_function import lldb import optparse Index: lldb/examples/python/symbolication.py =================================================================== --- lldb/examples/python/symbolication.py +++ lldb/examples/python/symbolication.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #---------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: lldb/examples/python/types.py =================================================================== --- lldb/examples/python/types.py +++ lldb/examples/python/types.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #---------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: lldb/examples/python/x86_64_linux_target_definition.py =================================================================== --- lldb/examples/python/x86_64_linux_target_definition.py +++ lldb/examples/python/x86_64_linux_target_definition.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #===-- x86_64_linux_target_definition.py -----------------------------*- C++ -*-===// # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. Index: lldb/examples/python/x86_64_qemu_target_definition.py =================================================================== --- lldb/examples/python/x86_64_qemu_target_definition.py +++ lldb/examples/python/x86_64_qemu_target_definition.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #===-- x86_64_qemu_target_definition.py -----------------------------*- C++ -*-===// # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. Index: lldb/examples/python/x86_64_target_definition.py =================================================================== --- lldb/examples/python/x86_64_target_definition.py +++ lldb/examples/python/x86_64_target_definition.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python #===-- x86_64_target_definition.py -----------------------------*- C++ -*-===// # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. Index: lldb/scripts/analyze-project-deps.py =================================================================== --- lldb/scripts/analyze-project-deps.py +++ lldb/scripts/analyze-project-deps.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/usr/bin/env python import argparse import itertools Index: lldb/scripts/reproducer-replay.py =================================================================== --- lldb/scripts/reproducer-replay.py +++ lldb/scripts/reproducer-replay.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python3 +#!/usr/bin/env python3 from multiprocessing import Pool import multiprocessing Index: lldb/test/API/functionalities/plugins/python_os_plugin/operating_system.py =================================================================== --- lldb/test/API/functionalities/plugins/python_os_plugin/operating_system.py +++ lldb/test/API/functionalities/plugins/python_os_plugin/operating_system.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import lldb import struct Index: lldb/test/API/functionalities/plugins/python_os_plugin/operating_system2.py =================================================================== --- lldb/test/API/functionalities/plugins/python_os_plugin/operating_system2.py +++ lldb/test/API/functionalities/plugins/python_os_plugin/operating_system2.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import lldb import struct Index: lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/operating_system.py =================================================================== --- lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/operating_system.py +++ lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/operating_system.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import lldb import struct Index: lldb/test/Shell/helper/build.py =================================================================== --- lldb/test/Shell/helper/build.py +++ lldb/test/Shell/helper/build.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/usr/bin/env python from __future__ import print_function Index: lldb/third_party/Python/module/progress/progress.py =================================================================== --- lldb/third_party/Python/module/progress/progress.py +++ lldb/third_party/Python/module/progress/progress.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python from __future__ import print_function Index: llvm/utils/DSAclean.py =================================================================== --- llvm/utils/DSAclean.py +++ llvm/utils/DSAclean.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/env python #changelog: #10/13/2005b: replaced the # in tmp(.#*)* with alphanumeric and _, this will then remove Index: llvm/utils/DSAextract.py =================================================================== --- llvm/utils/DSAextract.py +++ llvm/utils/DSAextract.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/env python #this is a script to extract given named nodes from a dot file, with #the associated edges. An edge is kept iff for edge x -> y Index: llvm/utils/benchmark/mingw.py =================================================================== --- llvm/utils/benchmark/mingw.py +++ llvm/utils/benchmark/mingw.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#!/usr/bin/env python # encoding: utf-8 import argparse Index: llvm/utils/docker/scripts/llvm_checksum/llvm_checksum.py =================================================================== --- llvm/utils/docker/scripts/llvm_checksum/llvm_checksum.py +++ llvm/utils/docker/scripts/llvm_checksum/llvm_checksum.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python """ A small program to compute checksums of LLVM checkout. """ from __future__ import absolute_import Index: llvm/utils/lint/common_lint.py =================================================================== --- llvm/utils/lint/common_lint.py +++ llvm/utils/lint/common_lint.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Common lint functions applicable to multiple types of files. Index: llvm/utils/lint/cpp_lint.py =================================================================== --- llvm/utils/lint/cpp_lint.py +++ llvm/utils/lint/cpp_lint.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Checks C++ files to make sure they conform to LLVM standards, as specified in # http://llvm.org/docs/CodingStandards.html . Index: llvm/utils/lint/generic_lint.py =================================================================== --- llvm/utils/lint/generic_lint.py +++ llvm/utils/lint/generic_lint.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Checks files to make sure they conform to LLVM standards which can be applied # to any programming language: at present, line length and trailing whitespace. Index: llvm/utils/schedcover.py =================================================================== --- llvm/utils/schedcover.py +++ llvm/utils/schedcover.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # This creates a CSV file from the output of the debug output of subtarget: # llvm-tblgen --gen-subtarget --debug-only=subtarget-emitter Index: llvm/utils/testgen/mc-bundling-x86-gen.py =================================================================== --- llvm/utils/testgen/mc-bundling-x86-gen.py +++ llvm/utils/testgen/mc-bundling-x86-gen.py @@ -1,5 +1,5 @@ -#!/usr/bin/python +#!/usr/bin/env python # Auto-generates an exhaustive and repetitive test for correct bundle-locked # alignment on x86. Index: openmp/runtime/tools/summarizeStats.py =================================================================== --- openmp/runtime/tools/summarizeStats.py +++ openmp/runtime/tools/summarizeStats.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import pandas as pd import numpy as np Index: polly/test/update_check.py =================================================================== --- polly/test/update_check.py +++ polly/test/update_check.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python3 +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # Polly/LLVM update_check.py Index: polly/utils/jscop2cloog.py =================================================================== --- polly/utils/jscop2cloog.py +++ polly/utils/jscop2cloog.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import argparse, os import json Index: polly/utils/pyscop/jscop2iscc.py =================================================================== --- polly/utils/pyscop/jscop2iscc.py +++ polly/utils/pyscop/jscop2iscc.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import argparse, isl, os import json