find . -name "*.py" -exec sed "s|\!/usr/bin/env python$|\!/usr/bin/env python3|g" -i {} \;
===================================================================
Gbp-Pq: Name python3-shebang.patch
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
#=- run-find-all-symbols.py - Parallel find-all-symbols runner -*- python -*-=#
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
#===- add_new_check.py - clang-tidy check generator ---------*- python -*--===#
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
#===- rename_check.py - clang-tidy check renamer ------------*- python -*--===#
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
#===- clang-tidy-diff.py - ClangTidy Diff Checker -----------*- python -*--===#
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
#===- run-clang-tidy.py - Parallel clang-tidy runner --------*- python -*--===#
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===- cppreference_parser.py - ------------------------------*- python -*--===#
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===- gen_std.py - ------------------------------------------*- python -*--===#
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===- test.py - ---------------------------------------------*- python -*--===#
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
#===- check_clang_tidy.py - ClangTidy Test Helper ------------*- python -*--===#
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===- cindex-dump.py - cindex/Python Source Dump -------------*- python -*--===#
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===- cindex-includes.py - cindex/Python Inclusion Graph -----*- python -*--===#
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
# A tool to parse ASTMatchers.h and update the documentation in
# ../LibASTMatchersReference.html automatically. Run from the
# directory in which this file is located to update the docs.
-#!/usr/bin/env python
+#!/usr/bin/env python3
# A tool to parse the FormatStyle struct from Format.h and update the
# documentation in ../ClangFormatStyleOptions.rst automatically.
# Run from the directory in which this file is located to update the docs.
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
from collections import OrderedDict
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
#===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===#
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
#===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===#
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Utility for opening a file using the default application in a cross-platform
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import absolute_import, division, print_function
from pprint import pprint
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import absolute_import, division, print_function
import sys
from socket import *
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""CaptureCmd - A generic tool for capturing information about the
invocations of another program.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
A simple utility that compares tool invocations and exit codes issued by
-#!/usr/bin/env python
+#!/usr/bin/env python3
import os
import re
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
This is a generic fuzz testing tool, see --help for more information.
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import absolute_import, division, print_function
def pcall(f, N):
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
CmpRuns - A simple tool for comparing two static analyzer runs to determine
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Static Analyzer qualification infrastructure: adding a new project to
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Static Analyzer qualification infrastructure.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Update reference results for static analyzer.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Script to Summarize statistics in the scan-build output.
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
#===- exploded-graph-rewriter.py - ExplodedGraph dump tool -----*- python -*--#
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Check CFC - Check Compile Flow Consistency
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import absolute_import, division, print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Test internal functions within check_cfc.py."""
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Calls C-Reduce to create a minimal reproducer for clang crashes.
Output files:
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import absolute_import, division, print_function
import json
-#!/usr/bin/env python
+#!/usr/bin/env python3
# To use:
# 1) Update the 'decls' list below with your fuzzing configuration.
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import absolute_import, division, print_function
import os
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===- lib/asan/scripts/asan_symbolize.py -----------------------------------===#
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===- lib/dfsan/scripts/build-libc-list.py ---------------------------------===#
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===- lib/fuzzer/scripts/unbalanced_allocs.py ------------------------------===#
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Copyright (c) 2009 Google Inc. All rights reserved.
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===- lib/sanitizer_common/scripts/gen_dynamic_list.py ---------------------===#
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# litlint
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Merge or print the coverage data collected by asan's coverage.
# Input files are sequences of 4-byte integers.
# We need to merge these integers into a set and then
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-#!/usr/bin/env python
+#!/usr/bin/env python3
import os
from builtins import range
-#!/usr/bin/env python
+#!/usr/bin/env python3
# encoding: utf-8
import argparse
-#!/usr/bin/env python
+#!/usr/bin/env python3
import unittest
"""
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
strip_asm.py - Cleanup ASM output for the specified file
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
-#!/usr/bin/env python
+#!/usr/bin/env python3
import string
import struct
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
A simple bench runner which delegates to the ./dotest.py test driver to run the
-#!/usr/bin/env python
+#!/usr/bin/env python3
import binascii
import json
-#!/usr/bin/env python
+#!/usr/bin/env python3
import argparse
import itertools
-#!/usr/bin/env python
+#!/usr/bin/env python3
import subprocess
import optparse
-#!/usr/bin/env python
+#!/usr/bin/env python3
'''This module implements a Finite State Machine (FSM). In addition to state
this FSM also maintains a user defined "memory". So this FSM can be used as a
-#!/usr/bin/env python
+#!/usr/bin/env python3
##===-- lui.py -----------------------------------------------*- Python -*-===##
##
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-#!/usr/bin/env python
+#!/usr/bin/env python3
##===-- sandbox.py -------------------------------------------*- Python -*-===##
##
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
import sys
import subprocess
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
import os
import re
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Given a previous good compile narrow down miscompiles.
# Expects two directories named "before" and "after" each containing a set of
-#!/usr/bin/env python
+#!/usr/bin/env python3
# encoding: utf-8
import argparse
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
compare.py - versatile benchmark output compare tool
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
strip_asm.py - Cleanup ASM output for the specified file
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# The way you use this is you create a script that takes in as its first
# argument a count. The script passes into LLVM the count via a command
-#!/usr/bin/env python
+#!/usr/bin/env python3
# This script is used to bisect skip and count arguments for --debug-counter.
# It is similar to bisect, except it understands how to increase skip and decrease count
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Reduces GlobalISel failures.
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Given a -print-before-all -print-module-scope log from an opt invocation,
# chunk it into a series of individual IR files, one for each pass invocation.
# If the log ends with an obvious stack trace, try to split off a separate
-#!/usr/bin/env python
+#!/usr/bin/env python3
import os
import plistlib
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""A ladder graph creation program.
This is a python program that creates c source code that will generate
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""A tool for extracting a list of symbols to export
-#!/usr/bin/env python
+#!/usr/bin/env python3
# This script extracts the VPlan digraphs from the vectoriser debug messages
# and saves them in individual dot files (one for each plan). Optionally, and
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Runs tablegen."""
import subprocess
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Symlinks, or on Windows copies, an existing file to a second location.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Helps to keep BUILD.gn files in sync with the corresponding CMakeLists.txt.
-#!/usr/bin/env python
+#!/usr/bin/env python3
r"""Emulates the bits of CMake's configure_file() function needed in LLVM.
The CMake build uses configure_file() for several things. This emulates that
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Gets the current revision and writes it to VCSRevision.h."""
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Downloads a prebuilt gn binary to a place where gn.py can find it."""
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Calls `gn` with the right --dotfile= and --root= arguments for LLVM."""
# GN normally expects a file called '.gn' at the root of the repository.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""A tool for looking for indirect jumps and calls in x86 binaries.
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Source: http://code.activestate.com/recipes/475116/, with
# modifications by Daniel Dunbar.
-#!/usr/bin/env python
+#!/usr/bin/env python3
import sys
-#!/usr/bin/env python
+#!/usr/bin/env python3
import sys
import time
-#!/usr/bin/env python
+#!/usr/bin/env python3
import sys
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
import os
-#!/usr/bin/env python
+#!/usr/bin/env python3
import sys
-#!/usr/bin/env python
+#!/usr/bin/env python3
import argparse
import platform
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
import sys
-#!/usr/bin/env python
+#!/usr/bin/env python3
import sys
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Summarize the information in the given coverage files.
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
import re, string, sys, os, time
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
import re, string, sys, os, time, math
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""A shuffle vector fuzz tester.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""A shuffle-select vector fuzz tester.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Script to sort the top-most block of #include lines.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Unicode case folding database conversion utility
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
wciia - Whose Code Is It Anyway