This revision was automatically updated to reflect the committed changes.
Closed by commit rGa54f160b3a98: Prefer /usr/bin/env xxx over /usr/bin/xxx
where xxx = perl, python, awk (authored by haampie, committed by teemperor).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95119/new/
https://reviews.llvm.org/D95119
Files:
clang/test/make_test_dirs.pl
clang/tools/scan-build/bin/set-xcode-analyzer
clang/utils/TestUtils/pch-test.pl
clang/utils/analyzer/reducer.pl
clang/utils/analyzer/update_plist_test.pl
clang/www/demo/index.cgi
debuginfo-tests/llgdb-tests/test_debuginfo.pl
lldb/docs/use/python-reference.rst
lldb/scripts/disasm-gdb-remote.pl
llvm/utils/GenLibDeps.pl
llvm/utils/codegen-diff
llvm/utils/findsym.pl
llvm/utils/llvm-compilers-check
llvm/utils/llvm-native-gxx
openmp/runtime/tools/check-execstack.pl
openmp/runtime/tools/check-instruction-set.pl
openmp/runtime/tools/message-converter.pl
polly/lib/External/isl/doc/mypod2latex
Index: polly/lib/External/isl/doc/mypod2latex
===================================================================
--- polly/lib/External/isl/doc/mypod2latex
+++ polly/lib/External/isl/doc/mypod2latex
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
use strict;
use Pod::LaTeX;
Index: openmp/runtime/tools/message-converter.pl
===================================================================
--- openmp/runtime/tools/message-converter.pl
+++ openmp/runtime/tools/message-converter.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
#//===----------------------------------------------------------------------===//
Index: openmp/runtime/tools/check-instruction-set.pl
===================================================================
--- openmp/runtime/tools/check-instruction-set.pl
+++ openmp/runtime/tools/check-instruction-set.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
#//===----------------------------------------------------------------------===//
Index: openmp/runtime/tools/check-execstack.pl
===================================================================
--- openmp/runtime/tools/check-execstack.pl
+++ openmp/runtime/tools/check-execstack.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
#//===----------------------------------------------------------------------===//
Index: llvm/utils/llvm-native-gxx
===================================================================
--- llvm/utils/llvm-native-gxx
+++ llvm/utils/llvm-native-gxx
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Wrapper around LLVM tools to generate a native .o from llvm-gxx using an
# LLVM back-end (CBE by default).
Index: llvm/utils/llvm-compilers-check
===================================================================
--- llvm/utils/llvm-compilers-check
+++ llvm/utils/llvm-compilers-check
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
##===- utils/llvmbuild - Build the LLVM project ----------------*-python-*-===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Index: llvm/utils/findsym.pl
===================================================================
--- llvm/utils/findsym.pl
+++ llvm/utils/findsym.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Program: findsym.pl
#
@@ -8,6 +8,8 @@
# Syntax: findsym.pl <directory_with_libraries_in_it> <symbol>
#
+use warnings;
+
# Give first option a name.
my $Directory = $ARGV[0];
my $Symbol = $ARGV[1];
Index: llvm/utils/codegen-diff
===================================================================
--- llvm/utils/codegen-diff
+++ llvm/utils/codegen-diff
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
use Getopt::Std;
$DEBUG = 0;
Index: llvm/utils/GenLibDeps.pl
===================================================================
--- llvm/utils/GenLibDeps.pl
+++ llvm/utils/GenLibDeps.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Program: GenLibDeps.pl
#
Index: lldb/scripts/disasm-gdb-remote.pl
===================================================================
--- lldb/scripts/disasm-gdb-remote.pl
+++ lldb/scripts/disasm-gdb-remote.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
use strict;
Index: lldb/docs/use/python-reference.rst
===================================================================
--- lldb/docs/use/python-reference.rst
+++ lldb/docs/use/python-reference.rst
@@ -607,7 +607,7 @@
::
- #!/usr/bin/python
+ #!/usr/bin/env python
import lldb
import commands
@@ -715,7 +715,7 @@
::
- #!/usr/bin/python
+ #!/usr/bin/env python
import lldb
import os
Index: debuginfo-tests/llgdb-tests/test_debuginfo.pl
===================================================================
--- debuginfo-tests/llgdb-tests/test_debuginfo.pl
+++ debuginfo-tests/llgdb-tests/test_debuginfo.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# This script tests debugging information generated by a compiler.
# Input arguments
Index: clang/www/demo/index.cgi
===================================================================
--- clang/www/demo/index.cgi
+++ clang/www/demo/index.cgi
@@ -1,4 +1,4 @@
-#!/usr/dcs/software/supported/bin/perl -w
+#!/usr/dcs/software/supported/bin/perl
# LLVM Web Demo script
#
@@ -6,6 +6,7 @@
use CGI;
use POSIX;
use Mail::Send;
+use warnings;
$| = 1;
Index: clang/utils/analyzer/update_plist_test.pl
===================================================================
--- clang/utils/analyzer/update_plist_test.pl
+++ clang/utils/analyzer/update_plist_test.pl
@@ -1,5 +1,6 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
use strict;
+use warnings;
require File::Temp;
use File::Temp ();
Index: clang/utils/analyzer/reducer.pl
===================================================================
--- clang/utils/analyzer/reducer.pl
+++ clang/utils/analyzer/reducer.pl
@@ -1,5 +1,6 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
use strict;
+use warnings;
use File::Temp qw/ tempdir /;
my $prog = "reducer";
@@ -31,8 +32,9 @@
my $commandStr = "@$command";
print OUT <<ENDTEXT;
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
use strict;
+use warnings;
my \$BAD = 1;
my \$GOOD = 0;
`rm -f $reduceOut`;
Index: clang/utils/TestUtils/pch-test.pl
===================================================================
--- clang/utils/TestUtils/pch-test.pl
+++ clang/utils/TestUtils/pch-test.pl
@@ -1,10 +1,11 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# This tiny little script, which should be run from the clang
# directory (with clang in your patch), tries to take each
# compilable Clang test and build a PCH file from that test, then read
# and dump the contents of the PCH file just created.
use POSIX;
+use warnings;
$exitcode = 0;
sub testfiles($$) {
Index: clang/tools/scan-build/bin/set-xcode-analyzer
===================================================================
--- clang/tools/scan-build/bin/set-xcode-analyzer
+++ clang/tools/scan-build/bin/set-xcode-analyzer
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# [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.
Index: clang/test/make_test_dirs.pl
===================================================================
--- clang/test/make_test_dirs.pl
+++ clang/test/make_test_dirs.pl
@@ -1,9 +1,10 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
#
# Simple little Perl script that takes the cxx-sections.data file as
# input and generates a directory structure that mimics the standard's
# structure.
use English;
+use warnings;
$current_indent_level = -4;
while ($line = <STDIN>) {
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits