-#!/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
#
#=- run-find-all-symbols.py - Parallel find-all-symbols runner -*- python -*-=#
#
-#!/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
#
#===- 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 -*-
# The LLVM Compiler Infrastructure
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# The LLVM Compiler Infrastructure
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# The LLVM Compiler Infrastructure
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# The LLVM Compiler Infrastructure
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# The LLVM Compiler Infrastructure
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# The LLVM Compiler Infrastructure
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# The LLVM Compiler Infrastructure
#
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Methods for reporting bugs."""
-#!/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
"""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
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
import sys, fileinput
-#! /usr/bin/env python
+#! /usr/bin/env python3
import sys, os, re
index = 'cwg_index.html'
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===- lib/asan/scripts/asan_symbolize.py -----------------------------------===#
#
# The LLVM Compiler Infrastructure
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===- lib/dfsan/scripts/build-libc-list.py ---------------------------------===#
#
# The LLVM Compiler Infrastructure
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===- lib/fuzzer/scripts/collect_data_flow.py ------------------------------===#
#
# The LLVM Compiler Infrastructure
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===- lib/fuzzer/scripts/merge_data_flow.py ------------------------------===#
#
# The LLVM Compiler Infrastructure
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===- lib/fuzzer/scripts/unbalanced_allocs.py ------------------------------===#
#
# The LLVM Compiler Infrastructure
-#!/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 ---------------------===#
#
# The LLVM Compiler Infrastructure
-#!/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
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
import os
import tempfile
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===----------------------------------------------------------------------===##
#
# The LLVM Compiler Infrastructure
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===----------------------------------------------------------------------===##
#
# The LLVM Compiler Infrastructure
-#! /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
#===----------------------------------------------------------------------===##
#
# The LLVM Compiler Infrastructure
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===----------------------------------------------------------------------===##
#
# The LLVM Compiler Infrastructure
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===----------------------------------------------------------------------===##
#
# The LLVM Compiler Infrastructure
-#!/usr/bin/env python
+#!/usr/bin/env python3
#===----------------------------------------------------------------------===##
#
# The LLVM Compiler Infrastructure
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# The LLVM Compiler Infrastructure
#
-#! /usr/bin/env python
+#! /usr/bin/env python3
import string
import struct
-#! /usr/bin/env python
+#! /usr/bin/env python3
from __future__ import print_function
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "/usr/bin/env python -u $SRCROOT/scripts/Xcode/build-llvm.py\n";
+ shellScript = "/usr/bin/env python3 -u $SRCROOT/scripts/Xcode/build-llvm.py\n";
};
26DC6A5813380D4300FF7998 /* Prepare Swig Bindings */ = {
isa = PBXShellScriptBuildPhase;
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf8 -*-
from __future__ import print_function
-#!/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
"""Renames *.py files to *.py.park."""
import os
import sys
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Renames *.py.park files to *.py."""
import os
import sys
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
A simple utility to redo the failed/errored tests.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Inferior program used by process control tests."""
from __future__ import print_function
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
The LLVM Compiler Infrastructure
-#!/usr/bin/env python
+#!/usr/bin/env python3
import binascii
import json
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Tests that the event system reports issues during decorator
handling as errors.
fi
OS_NAME=`uname -s`
-PYTHON=${PYTHON_EXECUTABLE:-/usr/bin/env python}
+PYTHON=${PYTHON_EXECUTABLE:-/usr/bin/env python3}
PYTHON_VERSION=`${PYTHON} --version 2>&1 | sed -e 's,Python ,,' -e 's,[.][0-9],,2' -e 's,[a-z][a-z][0-9],,'`
-#!/usr/bin/env python
+#!/usr/bin/env python3
import errno
import hashlib
-#! /usr/bin/env python
+#! /usr/bin/env python3
# package-clang-headers.py
#
-#! /usr/bin/env python
+#! /usr/bin/env python3
import argparse
import itertools
-#!/usr/bin/env python
+#!/usr/bin/env python3
import argparse
import os
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
The LLVM Compiler Infrastructure
-#!/usr/bin/env python
+#!/usr/bin/env python3
import sys
import subprocess
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
SWIG generation top-level script. Supports both local and remote generation
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
SWIG generation client. Supports both local and remote generation of SWIG
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Shared functionality used by `client` and `server` when generating or preparing
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Shared functionality used by `client` and `server` when dealing with
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
SWIG generation server. Listens for connections from swig generation clients
-#!/usr/bin/env python
+#!/usr/bin/env python3
import commands
import optparse
-#!/usr/bin/env python
+#!/usr/bin/env python3
if __name__ == "__main__":
import use_lldb_suite
-#!/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
"""This runs Apache Status on the remote host and returns the number of requests per second.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""This is a very simple client for the backdoor daemon. This is intended more
for testing rather than normal use. See bd_serv.py """
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Back door shell server
#!/usr/bin/python
-##!/usr/bin/env python
+##!/usr/bin/env python3
"""CGI shell server
This exposes a shell terminal on a web page.
-#!/usr/bin/env python
+#!/usr/bin/env python3
'''This demonstrates controlling a screen oriented application (curses).
It starts two instances of gnuchess and then pits them against each other.
-#!/usr/bin/env python
+#!/usr/bin/env python3
'''This demonstrates controlling a screen oriented application (curses).
It starts two instances of gnuchess and then pits them against each other.
-#!/usr/bin/env python
+#!/usr/bin/env python3
'''This demonstrates controlling a screen oriented application (curses).
It starts two instances of gnuchess and then pits them against each other.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""This collects filesystem capacity info using the 'df' command. Tuples of
filesystem name and percentage are stored in a list. A simple report is
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""This is for cleaning up binary files improperly added to CVS. This script
scans the given path to find binary files; checks with CVS to see if the sticky
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""This demonstrates an FTP "bookmark". This connects to an ftp site; does a
few ftp stuff; and then gives the user interactive control over the session. In
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""hive -- Hive Shell
-#!/usr/bin/env python
+#!/usr/bin/env python3
""" This runs a sequence of commands on a remote host using SSH. It runs a
simple system checks such as uptime and free to monitor the state of the remote
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Change passwords on the named machines. passmass host1 host2 host3 . . .
Note that login shell prompt on remote machine must end in # or $. """
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""This starts the python interpreter; captures the startup message; then gives
the user interactive control over the session. Why? For fun... """
# Don't do this unless you like being John Malkovich
-# c = pexpect.spawn ('/usr/bin/env python ./python.py')
+# c = pexpect.spawn ('/usr/bin/env python3 ./python.py')
import pexpect
-c = pexpect.spawn('/usr/bin/env python')
+c = pexpect.spawn('/usr/bin/env python3')
c.expect('>>>')
print 'And now for something completely different...'
f = lambda s: s and f(s[1:]) + s[0] # Makes a function to reverse a string.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Rippy!
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""This spawns a sub-shell (bash) and gives the user interactive control. The
entire shell session is logged to a file called script.log. This behaves much
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""This starts an SSH tunnel to a given host. If the SSH process ever dies then
this script will detect that and restart it. I use this under Cygwin to keep
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""This runs 'ls -l' on a remote host using SSH. At the prompts enter hostname,
user, and password.
-#!/usr/bin/env python
+#!/usr/bin/env python3
""" This runs netstat on a local or remote server. It calculates some simple
statistical information on the number of external inet connections. It groups
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""This displays uptime information using uptime. This is redundant,
but it demonstrates expecting for a regular expression that uses subgroups.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Convert the raw message sources from git patch emails to git-am friendly files.
-#!/usr/bin/env python
+#!/usr/bin/env python3
import subprocess
import sys
-#!/usr/bin/env python
+#!/usr/bin/env python3
##===-- lui.py -----------------------------------------------*- Python -*-===##
##
# The LLVM Compiler Infrastructure
-#!/usr/bin/env python
+#!/usr/bin/env python3
##===-- sandbox.py -------------------------------------------*- Python -*-===##
##
# The LLVM Compiler Infrastructure
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Greps and returns the first svn log entry containing a line matching the regular
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
The LLVM Compiler Infrastructure
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Run gdb to disassemble a function, feed the bytes to 'llvm-mc -disassemble' command,
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Run lldb to disassemble all the available functions for an executable image.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Run llvm-mc interactively.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Run the test suite and send the result as an email message.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Run lldb disassembler on all the binaries specified by a combination of root dir
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Run a program via lldb until it fails.
-#!/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
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
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
#
# 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
import os
import sys
-#!/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
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
#
# ======- git-llvm - LLVM Git Help Integration ---------*- python -*--========#
#
-#!/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
"""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
"""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
import sys
from lit.main import main
-#!/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
"""
lit - LLVM Integrated Tester.
-#!/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_statement
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
import llvmbuild
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Summarize the information in the given coverage files.
-#!/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
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
"""A script to generate FileCheck statements for 'opt' analysis tests.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""A test case update script.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""A test case update script.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Updates FileCheck checks in MIR tests.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""A script to generate FileCheck statements for 'opt' regression tests.
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
wciia - Whose Code Is It Anyway