Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# =- run-find-all-symbols.py - Parallel find-all-symbols runner -*- python -*-=#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# ===- pipeline_helper.py - Remote Index pipeline Helper *- python -------*--===#
#
Expand Down
2 changes: 1 addition & 1 deletion clang/bindings/python/examples/cindex/cindex-dump.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# ===- cindex-dump.py - cindex/Python Source Dump -------------*- python -*--===#
#
Expand Down
2 changes: 1 addition & 1 deletion clang/bindings/python/examples/cindex/cindex-includes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# ===- cindex-includes.py - cindex/Python Inclusion Graph -----*- python -*--===#
#
Expand Down
2 changes: 1 addition & 1 deletion clang/docs/tools/generate_formatted_state.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# A tool to parse creates a document outlining how clang formatted the
# LLVM project is.

Expand Down
2 changes: 1 addition & 1 deletion clang/test/Analysis/check-analyzer-fixit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# ===- check-analyzer-fixit.py - Static Analyzer test helper ---*- python -*-===#
#
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Analysis/csv2json.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# ===- csv2json.py - Static Analyzer test helper ---*- python -*-===#
#
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Driver/ftime-trace-sections.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import json, sys, time

Expand Down
2 changes: 1 addition & 1 deletion clang/tools/include-mapping/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/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.
Expand Down
2 changes: 1 addition & 1 deletion clang/tools/scan-build/bin/set-xcode-analyzer
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# [PR 11661] Note that we hardwire to /usr/bin/python because we
# want to the use the system version of Python on Mac OS X.
Expand Down
2 changes: 1 addition & 1 deletion clang/tools/scan-view/bin/scan-view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import print_function

Expand Down
2 changes: 1 addition & 1 deletion clang/tools/scan-view/share/Reporter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""Methods for reporting bugs."""
Expand Down
2 changes: 1 addition & 1 deletion clang/tools/scan-view/share/startfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""Utility for opening a file using the default application in a cross-platform
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/ABITest/ABITestGen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import absolute_import, division, print_function
from pprint import pprint
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/CIndex/completion_logger_server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import absolute_import, division, print_function
import sys
from socket import *
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/CaptureCmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""CaptureCmd - A generic tool for capturing information about the
invocations of another program.
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/CmpDriver
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
A simple utility that compares tool invocations and exit codes issued by
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/FindSpecRefs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import os
import re
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/FuzzTest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
This is a generic fuzz testing tool, see --help for more information.
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/TestUtils/deep-stack.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import absolute_import, division, print_function

Expand Down
2 changes: 1 addition & 1 deletion clang/utils/analyzer/CmpRuns.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
CmpRuns - A simple tool for comparing two static analyzer runs to determine
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/analyzer/SATest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import argparse
import sys
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/analyzer/SATestAdd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
Static Analyzer qualification infrastructure: adding a new project to
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/analyzer/SATestBuild.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
Static Analyzer qualification infrastructure.
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/analyzer/SATestUpdateDiffs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
Update reference results for static analyzer.
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/analyzer/SumTimerInfo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
Script to Summarize statistics in the scan-build output.
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/analyzer/exploded-graph-rewriter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# ===- exploded-graph-rewriter.py - ExplodedGraph dump tool -----*- python -*--#
#
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/check_cfc/check_cfc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""Check CFC - Check Compile Flow Consistency

Expand Down
2 changes: 1 addition & 1 deletion clang/utils/check_cfc/obj_diff.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import absolute_import, division, print_function

Expand Down
2 changes: 1 addition & 1 deletion clang/utils/check_cfc/test_check_cfc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""Test internal functions within check_cfc.py."""

Expand Down
2 changes: 1 addition & 1 deletion clang/utils/clangdiag.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# ----------------------------------------------------------------------
# Be sure to add the python path that points to the LLDB shared library.
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/modfuzz.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# To use:
# 1) Update the 'decls' list below with your fuzzing configuration.
Expand Down
2 changes: 1 addition & 1 deletion clang/utils/token-delta.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

from __future__ import absolute_import, division, print_function
import os
Expand Down
2 changes: 1 addition & 1 deletion clang/www/builtins.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import sys, fileinput

Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/lib/asan/scripts/asan_symbolize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/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.
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/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.
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/lib/sanitizer_common/scripts/sancov.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/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
Expand Down
2 changes: 1 addition & 1 deletion cross-project-tests/debuginfo-tests/dexter/dexter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# DExTer : Debugging Experience Tester
# ~~~~~~ ~ ~~ ~ ~~
#
Expand Down
2 changes: 1 addition & 1 deletion libc/AOR_v20.02/math/tools/plot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# ULP error plot tool.
#
Expand Down
2 changes: 1 addition & 1 deletion libc/utils/docgen/docgen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# ====- Generate documentation for libc functions ------------*- python -*--==#
#
Expand Down
2 changes: 1 addition & 1 deletion libcxx/test/libcxx-03/transitive_includes/to_csv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# ===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
2 changes: 1 addition & 1 deletion libcxx/test/libcxx/transitive_includes/to_csv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# ===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
2 changes: 1 addition & 1 deletion libcxx/utils/generate_abi_list.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# ===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
2 changes: 1 addition & 1 deletion libcxx/utils/generate_escaped_output_table.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# ===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
2 changes: 1 addition & 1 deletion libcxx/utils/generate_extended_grapheme_cluster_table.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# ===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
2 changes: 1 addition & 1 deletion libcxx/utils/generate_extended_grapheme_cluster_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# ===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
2 changes: 1 addition & 1 deletion libcxx/utils/generate_feature_test_macro_components.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import os
from builtins import range
Expand Down
2 changes: 1 addition & 1 deletion libcxx/utils/generate_indic_conjunct_break_table.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# ===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
2 changes: 1 addition & 1 deletion libcxx/utils/generate_iwyu_mapping.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import argparse
import libcxx.header_information
Expand Down
2 changes: 1 addition & 1 deletion libcxx/utils/generate_width_estimation_table.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# ===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
2 changes: 1 addition & 1 deletion libcxx/utils/run.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# ===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
2 changes: 1 addition & 1 deletion libcxx/utils/ssh.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# ===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
2 changes: 1 addition & 1 deletion libcxx/utils/sym_diff.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# ===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Expand Down
2 changes: 1 addition & 1 deletion lld/test/MachO/tools/generate-cfi-funcs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""Generate skeletal functions with a variety .cfi_ directives.
The purpose is to produce object-file test inputs to lld with a
Expand Down
2 changes: 1 addition & 1 deletion lld/test/MachO/tools/validate-unwind-info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""Validate compact unwind info by cross checking the llvm-objdump
reports of the input object file vs final linked output.
Expand Down
2 changes: 1 addition & 1 deletion lld/utils/benchmark.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/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.
Expand Down
2 changes: 1 addition & 1 deletion lldb/docs/use/tutorials/writing-custom-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ a few of them. Here's a trivial example of adding two "utility" commands into a
"my-utilities" container:

```python3
#!/usr/bin/env python
#!/usr/bin/env python3

import lldb

Expand Down
2 changes: 1 addition & 1 deletion lldb/examples/python/armv7_cortex_m_target_defintion.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# ===-- armv7_cortex_m_target_definition.py.py ------------------*- C++ -*-===//
#
# The LLVM Compiler Infrastructure
Expand Down
2 changes: 1 addition & 1 deletion lldb/examples/python/bsd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import cmd
import optparse
Expand Down
2 changes: 1 addition & 1 deletion lldb/examples/python/cmdtemplate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# ---------------------------------------------------------------------
# Be sure to add the python path that points to the LLDB shared library.
Expand Down
2 changes: 1 addition & 1 deletion lldb/examples/python/delta.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# ----------------------------------------------------------------------
# This module will enable GDB remote packet logging when the
Expand Down
2 changes: 1 addition & 1 deletion lldb/examples/python/disasm-stress-test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import argparse
import datetime
Expand Down
2 changes: 1 addition & 1 deletion lldb/examples/python/disasm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# ----------------------------------------------------------------------
# Be sure to add the python path that points to the LLDB shared library.
Expand Down
2 changes: 1 addition & 1 deletion lldb/examples/python/file_extract.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import string
import struct
Expand Down
2 changes: 1 addition & 1 deletion lldb/examples/python/gdbremote.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# ----------------------------------------------------------------------
# This module will enable GDB remote packet logging when the
Expand Down
Loading
Loading