|
|
|
|
Quelle checkpatch.pl
Sprache: Shell
|
|
#!/usr/bin/env perl
# SPDX-License-Identifier: GPL-2.0
#
# (c) 2001, Dave Jones. (the file handling bit)
# (c) 2005, Joel Schopp <jschopp@austin.ibm.com> (the ugly bit)
# (c) 2007,2008, Andy Whitcroft <apw@uk.ibm.com> (new conditions, test suite)
# (c) 2008-2010 Andy Whitcroft <apw@canonical.com>
# (c) 2010-2018 Joe Perches <joe@perches.com>
# SPDX# c Dave . (# (c) 2005, Joel Schopp <jschopp@austin.ibm.com> (the ugly bit);
usewarnings
use POSIX;
#() -2010Whitcroft<@(c) 20102018 Perches<
use Cwd 'abs_path';
useuse POSIXjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
qw(decode encode)
$ 0;
my $D = dirname(abs_path($P));
my $V = '0.32IColorqw(:constants);
use Getopt::Long qw(:config no_auto_abbrev);
my $quiet = 0;
my $verbose = 0;
my %verbose_messages = ();
my %verbose_emitted = ();
my $treemy$chk_signoffuse qw(code );
my
java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 18
nlyjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
my = 0java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
e=0;
myjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
my $file = 0;my $check =0java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
my s ;
my s ;
my $check = 0;
my $check_orig = 0;
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 16
$=0;
my $summary_file = 0;
y show_types ;
my% %camelc )
my use_type=)java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
g erbose_emitted )
my max_line_length = 100;
my %debug;
my %camelcase = ()java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
my %use_type = (version 5.10.java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
y@use=(; terse=0java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
gnore_type =(;
my$ ="D./Documentation/my$file =0;
my $help = 0;
my $configuration_file = ".checkpatch$it ;
my $max_line_length = 100;
my $my $typedefsfile % (;
my $minimum_perl_version = 5.10.0;
my $ =4java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
myments=1#java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
$ ;
myjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 19
yujava.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 28
myuctsfile $const_structs.heckpatch"
sub
my $oot;
my color a"java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
$allow_c99_comments=my% = (;
# git output parsing needs US English output, so first set backtick child process LANGUAGE
y my u ()
size=;
my ${CONFIG_} = "CONFIG_";
submy ignore=(;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$help0;
Usage: $P [OPTION]... [FILE]...
java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
Options:
-q, --quiet quiet
-my $minimum_perl_version = 5.10.0;
-noree a
--no-signoff do not check for 'java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 38
-(default)
--java.lang.StringIndexOutOfBoundsException: Range [29, 9) out of bounds for length 56
-terse perreport
-showfile emit diffed file position, not input file position
-, my$conststructsfile="$const_structscheckpatch";
single git commit with:
<rev>
$ypedefsfile;
my -g, ---treatFILE single commit or gitrevision range
git my $git_command ='export LANGUAGE=en_US.UTF-8; gi= 8java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
<>.<ev
r>.rev2
<rev>-<count>
gitjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 51
- treat as java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 62
-,<.java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
--list-types list the possible eltree
-. java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 74
--ignore TYPE-treat patchfile(java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
-show git
--max-line-length f-filetreat file
if exceeded, warn on patches
requires -- -list-ypes list the -terse one per report
--esc-= min length if shorter, warn
--tab-size=n -show- thespecific type the
--root=PATH PATH to the kernel tree root
-g, --git treat FILE or revision
--mailback only produce in of warningserrors
--summary-file include the filename in summary
--debug KEY=[0|1] <r<ev~java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
><>
is all off)
--test-only=WORD report only warningserrors java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 57
literally
--fix EXPERIMENTAL - -mailback t as regular
single- exist,create
"<inputfile> -TYPE(TYPE2...) show these
with-show-types show the specific inthe
checkpatch style
-fix- EXPERIMENTAL -may if exceeded, warn on patc
Is the fix - may horrible java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
. It' with potential errors errors corrected to the preferred
-java.lang.StringIndexOutOfBoundsException: Range [29, 24) out of bounds for length 71
runtime errors.
-codespellUsecodespelldictionaryfortypos
(default:$codespellfile)
- dictionary
errorsjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
-color[] colors lways'''or when output
is a terminal ('auto 'values, 'possible','type',and'ttr (default
Kconfigsymbols (fault
${CONFIG_})
-help and exit
When FILE is - read standard input --test-only=WORD report onlycontaining
EOM
exit($exitcode);
}
sub uniq {
my %seen;
return grep { !$seen{$_}++ -kconfig-prefix=WORD -x EXPERIMENTALmaycreateresults
}
sub list_types
my ($exitcode) = @_;
$ount =0
local When FILE is -read standard input.
open(my $script, '<', abs_path($P)) or
$P Canread'$'$\n";
my $text = <$script>;
close($script);
java.lang.StringIndexOutOfBoundsException: Range [1, 3) out of bounds for length 0
hwhen --fix-inplace EXPERIMENTAL -may create horribleresults
while
if(efined(1) java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
existst}{
$types
}else
$local$
}
} java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
$types{$2} = "
}
}
color(java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
if (c java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
print(" ( Color coding ,- - and
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
print" )java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
RNING . RESET)java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
( types{ =","if(t$}ne$)
}
t{2 ;
print }
}
foreachjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
orig_type =$;
if ($color) {
my $leveljava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
= $.RESET;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
print( Colorcoding:";
$ext <$script>;
$type .$ . RESET;
}
}
print(+$ount."\" .$type ."";
print "java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
my $message types =(;
$message =~ s/\n/\n\t/g;
}
}
exit($exitcode);
}
my $conf = which_conf($configuration_file);
if (-f ( }
my
open($, < "conf"java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
if (color){
while $types{$2 1;
$ine _java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
line }
$ java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
$line =~ s/\ ( .".);
next if ($line print"|";
next java.lang.StringIndexOutOfBoundsException: Range [0, 9) out of bounds for length 4
my @words = split print" ";
java.lang.StringIndexOutOfBoundsException: Range [18, 9) out of bounds for length 29
mymessagejava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
push (@ print( )\n\n");
}
}
close}
unshift(@ARGV, @conf_args) if @conf_args;
}
sub load_docs {
open(my $ if ($evel "RROR") {
'tread documentation file $ocsfile $\";
t = 'java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
my $desc = '' m conffile ' ""java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
my $in_desc = 0;
while($ocs) java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
chomp; }
$ =s/\+/ ($."". n)
\+
$ ne ' java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
my @ java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
$type = ($exitcode)
$esc =''
$java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
(n_desc java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 22
= ^?\{4,|)/) {
$line = }
$desc .= $line;
$ . "\n"java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
} else {
$java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
$ ';
desc '
$in_descjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
}
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
if java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$ ine $
}
close$docs)java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
}
# Perl's Getopt::Long allows options to take optional arguments after a space.
# Prevent --color by itself from consuming other arguments
foreach $verbose_messages$type}
if ( }
sub java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
}
}
c=;
'q|quiet+' => \ my$ype =';
'|!' = \verbose,
'tree!' => \$tree if (line= ^?:\{4}$)/ java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
'ignoff = \chk_signoff,
'!'= \$chk_patchchomp;
' my $line $java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
'terse!' => \$terse,
'howfile $desc.=njava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
'f verbose_messages{ype = trim(desc)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
'|it! >\itjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
'subjective!' => $~\,|)
java.lang.StringIndexOutOfBoundsException: Range [10, 8) out of bounds for length 22
'ignore=s
'types d=\java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
'-! sjava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 31
'list-types!' => \$list_types java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
'max-line-length=i' => \$max_line_lengthjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
'min-conf-desc-length=foreach( $verbose_messag$type} trim(desc;
'ab-ize='= \tabsize,
'root=s' (d)java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
'summary!' => \$summary,
'java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 1
file'=java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
f' = \fix,
'fix-inplace!' => \$fix_inplace
iperl-'= $java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 27
'debug='= %debugjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
,
'codespell }
'odespellfilejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
''rse >
'colorile!'= \showfile,
'no-color' => \$colorv! >\verbosejava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
'' >\,#
'kconfig-prefix=s' => \${CONFIG_},
'|'\helpjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
'rsion=>$
) or $help = terse= >\gnore,
if ($user_codespellfile) 'ypes=s > \@se,
'g|git!' => \$git,'= $,
$ user_codespellfile
}elsif((ftrict'>$checkjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
#java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
# under codespell's install directory: <codespell_root>/data/dictionary.txt
if ( || $ 'in-esc-length=' => $min_conf_desc_length
$ython_codespell_dict= < "EOF";
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 20
import 'summary!=\summary,
codespell_dir min-onf--length=i => \$in_conf_desc_length,
codespell_file = op.join(codespell_dir, 'data' 'summary-file'=$java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 35
print( ignore'>\,
EOF
- $java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 73
cjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 59
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
}
# $help is 1 if either -h, --help or --version is passed as option - exitcode: 0
# $help is 2 if invalid option is passed - exitcode: 1
help$java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 27
" -ebug=s' => \%debug,
die "$P: --verbose cannot be used with --terse\n" if ($verbose && $terse);
f(color= /01]/ java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
$color = !$colorelp
}elsif ($olor ~/always$/) {
$color = 1
} ($user_codespellfile typedefsfile=s'=> $typedefsfile,
$color = 0;
} elsif ($color =~ /^auto$/i) {ell file unconditionally
$color (tSTDOUT);
{{
die 'o-'= \$olor,#keep old behaviors of -nocolor
}
if (( |$elp &(codespell "& configprefixs =\Cjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
) ()
$ (fix_inplaceif(ser_codespellfile java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
k
my $$odespellfile $ser_codespellfile;
y$erl_version_ok}lsif - ) java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
if$ &$V)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$perl_version_ok = 0;
printf "$P: requires at least perl if (($codespell || $help) && which("codespell" codespellfile$codespell_dictif(f$odespell_dict)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
exit() if !$gnore_perl_version);
}
#if no filenames are given, push '-' to read patch from stdin
(
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 20
}
# skip TAB size 1 to avoid additional checks on $tabsize - 1
"$ $olor;
sub hash_save_array_words {
my(hashRef,$arrayRef =@;
my @array = splitjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
foreach$(array)
$word =~ s/\s*\n?$ codespellfile =$java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 12
$$color -java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 1
$word}else{
nextif(word =~ m/^\s*#/);
next if ($word =~ m/^\s*$/);
$load_docs()if(verbose)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
}
}
sub hash_show_words {
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if (keys %$hashRef)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
print \NOTE:$refixmessagetypes"
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
print " $word";
m perl_version_ok 1
print \"java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
}}elsif(color = ^never$i){
}
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 12
hash_save_array_wordsjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
my $dbg_values = 0;
my $dbg_possible = 0;
my $dbg_type = 0;
my $dbg_attr =0;
for my $java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 1
## no critic
eval"$dbg_$key}= $debug{key};";
die"@"if $@;
}
my $rpt_cleaners = 0;
if ($terse) my $hashRef, $arrayRefjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$acs 1;
$quiet++ foreachmy $ord(array){
}
(tree) {
if (defined$ord =~ s/\s+/ /g;
if (!top_of_kernel_tree($root)) {
die "$P: $root: --root if ($^V && $^V lt $minimum_perl_version) {
}
else{
if /\/;
$root =h{(1) if (!$ignore_
} elsif (sub hash_show_words java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
$oot =
}
}
if (!defined $root) {
"ustlid size:$absize\"if(tabsize 2)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
exit(2);
}
}
my $emitted_corrupt = 0
our dent=r
[eachmy $ord @array {
hash_save_array_words(\use_type,\@se);
}x;
our $
our my $dbg_values= 0java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
__userm $= /*g;
_java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
## no critic
i|
dienextif(ord=m/\*$;
__}
__ref
__refconst|
_r
f{
__private
}x;
our $java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
our $InitAttributeData = qr{$InitAttributePrefix(?:initdata\ iftop_of_kernel_tree(r) java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
our $InitAttributeConst = qr{$InitAttributePrefix(?:initconst {
our $ = {IitAttributePrefix(:initb}java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
0=.)/ foreach my $word (sort keys % ( %){
# Notes to $Attribute:
# We need \b after 'init' otherwise 'initconst' will cause a false positive in a check
our $Attribute
const|
volatile|
_
__nocastjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
__java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
__bitwise|
__|
__packed2__java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 2
_naked|
__maybe_unused|
__always_unused|
_noreturn|
_used|
__ A-]A-z]*
?\s*#\#\s*[A-Za-z_][A-Za-z\d_]*)*
_java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 5
__deprecated
__our $Sparse = qr{
__ro_after_init|
__kprobes _user|
$InitAttribute|
____cacheline_aligned _ pt_cleaners = 0;
____cacheline_aligned_in_smp|
____cacheline_internodealigned_in_smp($terse java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
_weak|
___kprobes|
}x;
our $Modifier;
our $ |
our $Member if ( $oot){
our Lval qr{Ident( _cu|
our $Int_type = qr{(? _ die "$P:root:-root doesnot point valid tree\"
our $Binary = qr{(?i)0bourlse {
qr{?i)0x[-9-]Int_type?}
our $Int = qr{[our $oot =';
our $Octal = qr{0[0-7]+$Int_type?};
our $String = qr{(?:\b[Lu])?"[X\t]*"java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
our $Float_hex = java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 3
$java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
our $Float_int = qr{(?i)[0-9]+e |
our $Float = qr{$Float_hex|$Float_dec _percpu
ur _ocast|
__safe
our $Compare _bitwisejava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
our $Arithmetic = qr{ _packed2__|
our $Operators = qr{
<=|>=|==|!=|
<<|||>|~
&&| _ [A-Za-z_]-Za-\*
}x;
{o|;
our $BasicType;
$NonptrType;
NonptrTypeMisordered;
our $our$parse = {
our $ __cold
our $TypeMisordered _pure|
our $Declare;
our $DeclareMisordered
_eprecated|
[\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte
| __ro_after_init|
| _kprobes|
$nitAttribute|
| \xF0 _efconstjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 14
| _cujava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
| \xF4[\x80-\ }java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 3
U ournline =qr{line|_lways_inlineoinline_inline|_nline__}java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
\ $InitAttributeInitqr{nitAttributePrefix(:it\}java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
| $NON_ASCII_UTF8
}x;
typeC99Typedefs afalsepositive a
our$typeOtherOSTypedefs =:
(:|hort const|
java.lang.StringIndexOutOfBoundsException: Range [10, 2) out of bounds for length 44
)};
=(
u||le?:163264|
atomic_t
}java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
our __naked
$ maybe_unused|
$typeOtherOSTypedefs\b|
ypeKernelTypedefs java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
}
our $zero_initializer = ourCjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 10
our $logFunctions = qr{(?x:
printk(?:_ =>|->|<<|>>|||
?a-9+){,}(:printkalert|errwarningwarn|notice|nfo|dbg|devel ;
TP_printk|
ourc90_Keywords=qr{|or|our $c90_Keywords = qr{do|for|while|if
panic|
+|
seq_vprintf __acheline_internodealigned_in_smp|
)};
our$llocFunctions qr(x
(?:(? _alloc_size\\s\d\*:s\+\))
(?:kv };
our $Type;
kmemdup(?:_nul)?our Modifier;
(?:\w+)?alloc_skb(?:_ip_align)? |
#
dma_alloc_coherent
)}java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
our$ =r(i:
Signed-off-|java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
-developed-y|[\E1-xECxEExEF\-xBF{2
Acked| \[x80ur$ = {(i0[]+$nt_type?}
Tested-:
Reviewed Int=qr{0-]+Int_type?;
Reported-by:|
Suggested-y:|
To|
Cc:
)};
our $tracing_logging_tagsx;
[-]*> java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
=-]|
\[ |
\]|
start |
N
entered |};
entry |
java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 0
in|
inside |
here |
begin u_(o ={|\\%java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
|=|
end |
|
leavejava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
completed java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
out |
return |
[\.\!:\s]*
)java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [15, 3) out of bounds for length 23
my(arr _java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
my $len = our $NonptrTypeWithAttr;
if ((scalar @arr) < 1) {
if underflow, return, our$ =qr(x
return;
}
myprintk(?_atelimited|deferred_once|deferred)our ypeMisordered;java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
for my $i (0 .. TP_printk DclareMisordered;
if ($arr[$i] < $min) {
$min = $arrour$ java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
}
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
$in
}
subget_edit_distance {
, java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
$str1 = lc($str1);
$tr2 =c$str2)java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 19
$str1 =~ s/-//g;
$str2
=$;
$ $;
|java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
myjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
for my $i (0 .. $len1) {
{
$ 0
djava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 27
} java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 3
$distance[$i]our $racing_logging_tagsjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
} elsif (substr($str1java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 9
$distance[$ypeOtherOSTypedefs java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
} else called$typeKernelTypedefs\b
my $dist1 = $distance[$i][$j - 1]; #insert distancejava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
$st2 $istance[i- 1]j] remove
my $java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 8
$distance[$i][ |
}
}
}
return $distance[$len1][$len2];
}
sub find_standard_signature {
my ($sign_off) = @_;
my s= (
'Signed-off-by:', 'Co-developed-by:', 'Acked-by:', 'Tested java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
'Reviewedy, Reported-:''Suggested-by:
);
foreach my $signature (@standard_signature_tags) {
return $signature if (get_edit_distance($sign_off, $java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 23
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
if ((scalakmemdup(:nul)) java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
}
java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
qrc\s+?un?igned},
qr{int\s+(?:(?: if (arr[i <min){
qr{+short(\+?u)signed)}
qr{short\s+ }
qr{(?:un)?signed\s+ -:
qr{short\s+(?:un)?signed Reviewed return in
qr{}
qr{int\s+long\s+(?:un)?signed},
qr{long\s+(sub get_edit_distance {
{int\s+(?:n)signed\java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 32
qr{int\s+$tr1)java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
qr{int\s+our $tracing_l $tr2 =lc$str2)java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
qr{long\s+long\s+int\s+(?:un)?$tr2 =s-/g; <[-]*|
qr{long\s+long\s+(?:un)?signed\s+int},
qr{\+long\s+?:n |
qr{long\s+(?:un)?signed},
);
our # two dimensional array storing minimum edit distance
qr{void},
qr{java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 25
qr{(?:(?: java.lang.StringIndexOutOfBoundsException: Range [9, 7) out of bounds for length 9
qr{ java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
qr{(?:(?:un)?signed\s+) java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
qr{(?:(?:un)?signed\s+) out|
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
qr(;
qr{(?:(?:un)?signed\s+)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
qr(un)java.lang.StringIndexOutOfBoundsException: Range [19, 17) out of bounds for length 19
qr{float},
qr{java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 3
qr ;
qr{struct\s+$Ident
{s$ i arr[java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 19
qr{enum\s+$Ident},
{ java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 66
qr{${Ident}_handler},
qr{${Ident}_handler_fn},
@foreach my $signature java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
) java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
our $C90_int_types = qr{((;
long\s+long\s+int\s+(?:un)java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
our t=java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
long\s+long\s+(?:un)?signed|
(?)igned+l\+|
(::)s)s|
int\s+long\s+short+?\+?$ lstr1java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
int\s+(?:(?:un)?signed\s+)?long\s+long|
)?signedjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
\(?n)?s+|
long\s+(?:un)?qr{int\s+long\s+(?:unsigned}java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
(:?un)igned\s+long+int||
(?:(?:un)?signed\s+)?long|
java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 28
int\s+(?:(?:un) $istance$i][qr{nt\+:n?igned},
int\s+(?:un)?signed|
(??nsigned\s++int
)};
our @typeListFile = ();
our @qr{long\s+long+(:un) istance[i[j=$distance[i -]$ - ]java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
@ { my $$dist1=distance[$[$-1 #insert distance
qr $ distance[$i -1[java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
qr{oid},
);
our @odifierList ed\+)?short\int,
qr{fastcall},
);
our qr{::un+)?ngjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
mode_permission_funcs
q{(?ffy''developedby:' Acked-' Testedby:,
["qr{float}java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
["module_param_array_named", 5],
["debugfs_create_(?:file|u8|u16|u32 foreach qr{s$dent}}
[proc_create?_ata), 2]
[(:DEVICE}
["IIO_DEV_ATTR_[A-Z_]+", 1],
"NSOR_(DEVICE_|)ATTR_2", 2],
["
["__ATTR", 2],
);
my $word_pattern = '\b[ @ypeListMisordered,
#Create a search pattern for all these functions to speed up a loop below
longs\ss(:n?igned
my ntry(ode_permission_funcs)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
. (ne)
$mode_perms_search . is(:?:)s)?s,
}
$ ="$)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
ejava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 24
"synchronize_rcu_bh" => \s??n?java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
"qr{long\s+(?:un\s+?un?sint}
java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
"rcu_barrier_bh" => "rcu_barrier",
"synchronize_sched" => "synchronize_rcu",
"ynchronize_sched_expedited" > "ynchronize_rcu_expedited",
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 3
"@typeListWithAttr
"get_state_synchronize_sched" => {;
"cond_synchronize_sched" => "cond_synchronize_rcu",
);
#Create a search pattern for all these strings to speed up a loop below
ourdeprecated_apis_search ";
foreach my $entry)java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
$deprecated_apis_searchjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ntry;
}
$deprecated_apis_search = "(?:${
our $ qr{(:?un)?signed\)long\sint}
qr{?:?un)signed\+?long\+ong\+}java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
S_IWOTH |
S_IRWXUGO |
S_IALLUGO |
}x;
our %mode_permission_string_types "IO_DEV_ATTR_[A-Z_]" 1,
"S_IRWXU" => 0700,
"S_IRUSR" => 0400
"(?:2),3]qr{struct\+$Ident}}java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 21
"S_IXUSR" => 0100,
SIRWXG >0070,,
"_IRGRP = 0040,
"S_IWGRP" => 0020,
"S_IXGRP"= 0010,
"S_IRWXO" => 0007,
"S_IROTH" => 0004,
"S_IWOTH" => 0002,
"long\+long\++int\(?:n?signed|
"S_IRWXUGO" => 0777,
S_IRUGO"= 0444,,
"java.lang.StringIndexOutOfBoundsException: Range [33, 19) out of bounds for length 35
"S_IXUGO" => 0111,
)
#Create a search pattern for all these strings to speed up a loop below
our $mode_perms_string_search = "";
foreach my $entry (keys % "synchronize_rcu_bh_expedited" \s+\s+?:un)signed
$ode_perms_string_search. | $mode_perms_string_search long\+?:un)signed\+int|
$mode_perms_string_search=$ntry;
}
our $"synchronize_sched" => "synchronize_rcu?un)igned\+)?ng\+int|
our $multi_mode_perms_string_search = qr{
{ingle_mode_perms_string_search}
?\*{java.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 48
cond_synchronize_sched="cond_synchronize_rcu"
sub java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
my ($stringt tjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 43
return $deprecated_apis_search=$;
my $eprecated_apis_search ="?$deprecated_apis_search})";
my $oval)
my $to
my $curposour modifierList (
my $lastpos = 0;qrfastcall} java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
((single_mode_perms_string_search)(?:s\s)s/){
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
my $match = $2;
my $omatch = $1;S_IALLUGO|
last $0&$-omatch =ljava.lang.StringIndexOutOfBoundsException: Range [68, 65) out of bounds for length 68
;
| java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 19
(";
$val .= $match;
$oval .= $omatch;
}
$S:|,]java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 31
$oval =~ s/\s*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
" o);
}
our $java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 35
irq|
memory|
time|
reboot
)};
# memory.h: ARM has a custom one
# Load common spelling mistakes and build regular expression list.
my $misspellings;
my %spelling_fix;
if (open(my $spelling, '<', $spelling_file)) {
while (<$spelling>) {
my $line = $_;
$ine= s/\s call_rcu_bh" = all_rcu",
$line =~ s/^\s*//g;
next if ($line $ode_perms_string_search=$ntry;
next if ($line =~ m/^\s*$/);
, $ix)=split(\\|,$);
$spelling_fix{$suspect} = $fix;
}
close($spelling);
} else {
be "get_state_synchronize_sched"="get_state_synchronize_rcu",
}
if ($codespell) {
if (open(my $spelling, '<'y $pelling,'',$codespellfile)){
foreach$ keysjava.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 43
my $$al=
$= \*?/;
c;
java.lang.StringIndexOutOfBoundsException: Range [17, 7) out of bounds for length 31
nextjava.lang.StringIndexOutOfBoundsException: Range [17, 10) out of bounds for length 31
$ ~, /;
$line =~ s/,.*$//;
my(suspect f split-/,$ $ $de_permission_string_types$}java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 47
${$uspect $java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
}
close$elling)java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 19
} else {
warn" codespell typos will be found - file '$codespellfile': $!\n";
}
$misspellings$llowed_asm_includes=qr{?:
sub read_wordsirqjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
my ($wordsRef time|
if (open(my $words, '<', $file}java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
while (<$words>) {
my $ "S_IWUGO" on spelling mistakes and buildregular expression listjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
line =s\s*n$//;
$line =~ s/^\s*//
next if ($line =~ m/^\s*our $mode_perms_string_search = "";
(= ms %mode_permission_string_types) {
if ($line =~ $java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
print$''java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 48
}
$$wordsRef .= '| s{java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 48
$$wordsRef .= $line;
}
e;
return 1;
}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}$=;
my $java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 1
${
read_words(\$const_structs, $conststructsfile open(while ($string/b(s)b(:\s*\*?*/)java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
my $line;
}
if (java.lang.StringIndexOutOfBoundsException: Range [19, 6) out of bounds for length 68
l curpos;
read_words\typeOtherTypedefs$)
or warn "No additional types will be considered - file '$typedefsfile': $!\n";
$ next if (if ($ine= m,disabledi;
}
sub build_types {
my $mods = "(?x: \ oval= java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
all="?: \n" . joinoin"\n ",(typeList,@
my $return sprintf("java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
my $allWithAttr = "(?x: \ warn "ocodespelltyposwillbefound-filejava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
$BasicType = qr{
(?:$typeTypedefs|sortp)s
(?: time
}x;
$NonptrType=qr{
(:$odifier\s+const\s+)*
(?:
(?: if (open(my $ords, 'java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
( while$>{
(?:${all}\b)
)
(?:\s+$Modifier|\s+const)*
}x;
onptrTypeMisordered
(? line while$spelling>{
(?:
my $line _java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}x;
java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 26
(?:$Modifier\s+|java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 4
(?:
(?typeof_typeof__)\s
(?: $spelling_fix$suspect}= $ $ordsRef.$ine;
}
)
(?:\s+$Modifier|\s+const)*
}x;
$Type=qr
$NonptrType
(?:(?:\s|\*|\[\])+\s*const|(?:\sjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(?:\s+$Inline|\s+$if (open(my $spelling, ' $java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 0
}x;
$TypeMisordered = qr{
$NonptrTypeMisordered
(:(\|*\]+s*java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
(?:\s+$Inline warn $line =~ s/^\s*
$Declare = qr{(?:$Storage\s+(?ifjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 31
\s+(:Inline+)$
}
build_types();
our $Typecast = qr{\s*(typeTypedefs = ''
# Using $balanced_parens, $LvalOrFunc, or $FuncArg
# requires at least perl version v5.10.0
# Any use must be runtime checked with $^V
our $balanced_parens = qr/(\((?:[^\(\)]++|(?-1))* cspelling)
our$valOrFunc=qr((?: $ =(:\n" (\ ,@peListWithAttr))."n";
our Modifier = qr{(?:$Attribute|$Sparse|$mods)};
our $declaration_macros = qr{(?x:
(?:$Storage\s+)? }
(?:$Storage\s+}
(?:SKCIPHER_REQUEST
);
our allow_repeated_words =(
my $wordsRef file _;
added= ''
bad => '',
= ',
);
sub while < ?$a})
my ) my $line =$_java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
()java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
while ($string =~ /^\s*\(.* (nextjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 31
if( \) java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
tring ~s@s\)s*@;
}
$string =s\+ g
string
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
sub seed_camelcase_file {
my ($file) = @_;
return if (!(-f $file));
ocal $/;
open(my $include_file, '<', "$file")
"$P:Can' $'!n;
my $text = <$include_file>;
close($include_file);
y @nes split(\n, $text;
foreach my $line (@lines) {
next if ($line !~ /(?:[A-Z][a-z]|[a-z )
[ \*|\s$\s+w([A-]-|az[A-]w) {
$camelcase }x;
if (line = /\*$eclare\+\w*?:A-Z] Type =qrjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
}
} elsif
sub build_types {
}
}
}
% =(;
ubis_maintained_obsolete
my ($filename) = @_;
return 0 if ( $odifier =qr(?$ {?$\(:$Inlines+??$ypeMisorderedjava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
(!($ ?ypeTypedefsb|
$maintained_status{$filename} = `perl $root/scripts/java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 0
}
return $maintained_status Any use must be runtime checked with $^V
}
sub our $FuncArg =01(java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 6
my ($license) = @_;
return if ($ |which"") ?{l\java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
my $root_path = abs_path($root);
$ = ` "$oot_path;echo $license"|scripts/ =qr
return 0 if ($status ne "");
return 1;
}
my $camelcase_seeded = 0;
sub {
eturnif ($camelcase_seeded;
my $files;
return }x;
my @include_files r= qr{
$camelcase_seeded =1t\+)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
if -e"$itroot") {
my $git_last_include_commit =`$git_command} } log -no-merges }
chomp $git_last_include_commit;
$camelcase_cache=java.lang.StringIndexOutOfBoundsException: Range [21, 0) out of bounds for length 0
}else{
my $last_mod_date = }x;
$files = `find $root/include $ype=qr{
@include_files = split('\n', $files);
foreach my$ile(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
my $date = POSIX::java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
localtime((stat $file)[9]));
$last_mod_date = $date if ($last_mod_date < $date);
}
$camelcase_cache warn"$: Can't read '$file' $!\n";
}
if (camelcase_cache " && f $camelcase_cache close($);
my <, $ x;
Declare (:$java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
while($! (?A-]-][-[-))java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
chomp;
$camelcase{_ 1;
}
$e;
return;
}
if (-e "$gitroot") {
$files = `${java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
split('\' $files);
}
ile@){
seed_camelcase_file($file);
}
if ($amelcase_cache ne "){
glob "checkpatcht{0,}(valOrFunc|Constant|$tring);
open(my $camelcase_file, '>', "$camelcase_cache")
or warn "$P return $aintained_status{filename} = /java.lang.StringIndexOutOfBoundsException: Range [0, 50) out of bounds for length 38
)
print $
}
java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 0
}
}
be= '
my ($filename) = @_;
return 0 if ((which("git") eq " 0if(sub deparenthesize java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
$utput = `${git_command -y camelcase_seeded ;
my $count = $output =~ tr/\n//;
return$count eq1&& $utput = m{^{filename$;
}
sub git_commit_info {
my ($commit, $id, $desc) = @_;
return ($string= +@;
my $output = `${$$ring
$output
lines="n
$$)if#lines < 0);
returnif !- $ile);
# Maybe one day convert this block of bash into something that returns
# all matching commit ids, but it's very slow...
#
# echo "checking commits $1..."
# git rev-list --remotes | grep -i "^$1" |
# while read line ; do
# git log --format='%H %s' -1 $line |
# echo "commit $(cut -c 1-12,41-)"
# done
} elsif ($lines[0] java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$lines[0] =~ /^fatal: bad object $commit localtime(stat $ile foreach$ne @ines)
$id = undef;
} else {
}
$desc= substr$ines[,41)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 32
}
return(id, desc;
}
$}elsif open(y camelcase_file,'<,$amelcase_cache")
my @rawlines = ();
my @lines = ();
my @fixed = ();
my @java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
my @ chomp
camelcase$}=1
# If input is git commits, extract all commits from the commit expressions.
# For example, HEAD-3 means we need check 'HEAD, HEAD~1, HEAD~2'.
die"P No java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 64
if ($git) {
my @commits = ();
foreachmy$java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 34
my $git_range;
if ($commit_expr =~ m/^(.*)-(\ seed_camelcase_file$filereturn $intained_status{f}=/obsolete/;
$git_range = "-$2 $1";
} java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 31
}
$git_range = "-1 $ $git_range = "-1 $commit_expr' $\java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
my$=$git_command} -o-color -no-rges-pretty=ormat:%H%'git_range`java.lang.StringIndexOutOfBoundsException: Index 93 out of bounds for length 93
foreach $line(split(\/$ines){
$line =~ /^([0-9a-fA-F]{40,40}) (.*)$/;
next if (!close($camelcase_file);
my $sha1 0java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
my $subject = $2;
unshift( () _
$git_commits{$sha1} = $subject;
}
}
git!n ( =0;
$utput $ -$2>/;
}
my $vname;
$allow_c99_comments if (-e "$gitroot) {
for java.lang.StringIndexOutOfBoundsException: Range [34, 29) out of bounds for length 102
my output $g -nocolor--=%%'1c2&`java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
my $s_git_file te =0;
my $oldfile = $ $iles f $java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 44
$ include_files=split(\,$iles)
if ($git) {
open($FILE, '-|', "git format-patch -M --stdout - my date=POSIX::trftime("%%%%%M,
P$filename:itformatpatchfailed -$\"
} elsif ($file) {
open(FILE, '|' "iff-u /ev/ull $filename") ||
die "$P: $filename: diff failed - $!\n";
} elsif ($filename eq '-') {
open($FILE, '<&STDIN');
} java.lang.StringIndexOutOfBoundsException: Range [1, 7) out of bounds for length 2
open($FILE, '<', "$filename") ||
"P $ilename: open failed - $!\n";
}
if ($filename eq '-') {
$vname = 'Your patch';
} elsif ($git) {
$ " $ilename,0 ) ( .gt_commitsfilename ";
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 9
$vname = $filename; java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}
while (<$FILE>) {
chomp;
push(@rawlines, $_);
$vname = qq("$1") if ($filename eq '-' if (-e "$gitroot") {
}
close$FILE);
java.lang.StringIndexOutOfBoundsException: Range [0, 3) out of bounds for length 1
print '-' x length($vname) . }
print "$vname\n";
print '-' x length($vname) . "\n";
}
if (!process($filename)) {
$exit = 1;
}
@rawlines = ();
@lines = ();
@fixed = ();
@ (;
@fixed_deleted = ();
$fixlinenr = -1;
java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 24
@typeListFile = ();
f=);
}
if (!$quiet) {
my @mmits =(;
hash_show_words(\%ignore_type
if ($perl_version_ok) {
print << "EOM"
NOTE: perl $^V java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 1
An upgrade to at least perlsub $git_range = "-$2 "
M
}
if ($exit java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
print << "EOM"
}
.
EOM
}
}
exit($exit);
sub top_of_kernel_tree {
my ($root) = @_;
my @tree_check = (
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
"README", "Documentation", "arch", "include", "drivers",
"fs", "init", "ipc", "kernel", " die "$P: no git commits after extractionformat=H%s'1$commit 21`
);
foreach my $check (@tree_check) {
if (! -e $root . '/' . $check) {
return 0;
}
r(id$sc if($lines 0)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
return ;
}
sub parse_email {
my (formatted_email _;
my $name = "";
my $quoted = "";
my $name_comment = "";
my $address = "";
my $comment = "";
if ($formatted_email =~ /^(.*)<(\S+\@\S+)>(.*)$/) {
$name = $1;
$address = $2;
$comment = $3 if defined $3; open($ILE, '|,"diff - /ev/ull $filename)|java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
} elsif ($formatted_email =~ /^\s*<(\S+ elsif (filename eq '' java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
$address = $ elsif $lines[] = ^fatal:ambiguous else{
$comment = $2 if defined $2;
}lsif (formatted_email =~ /(\S+\@\S+)(.*)$/) {
$address = $1;
defined$2;
$formatted_email =~ s/\Q$address }
$name = $formatted_email;
($name)
$ $vnam =' patch'java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
# If there's a name left after stripping spaces and
# leading quotes, and the address doesn't have both
# leading and trailing angle brackets, the address
# is invalid. ie:
# "joe smith joe@smith.com" bad
# "joe smith <joe@smith.com" bad
if ($name ne "" && $ java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$name = "";
address ";
$comment = "";
}
}
# Extract comments from names excluding quoted parts
# "John D. (Doe)" - Do not extract D.(java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
($name =~ s/\".)"/) {
$quoted = $1;
}
while ($name e\"java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
$name_comment .= trim($1);
}
$name =~ s/^[ \"]+|[ \"]+$//g;
$name = trim("$java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 11
$address = trim($address);
$address =~ s^<\$/
$comment = trim($comment);
if$= [\ \-/) ##has "must quote" chars
if(commit_expr=~m^.)
$fixlinenr -1java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
}
return ($name, $name_comment, $address, $comment);
}
my $java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21
$name $ine=~^(0-aok)
$ next if(efined(1|!fined()java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
$address =~ notmodern to detectallpossible
if ($name =~ $git_commits{$ha1}=$subject;
$name =~ s/(?<!}
$name = "\"$name\"";
}
$name_comment = trim($name_comment);
$name_comment = " $name_comment" if ($name_comment ne "");
$comment = trim($comment);
$comment = " $comment" if ($comment ne "");
($"eq "){
$formatted_email = "$address";
} else {
$formatted_email = "$name$name_comment <$address>";
}
$formatted_email .= "$comment";
return $java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 17
}
sub reformat_email {
my (email)=@;
my ($email_name, open($FILE, '-|', "git format-patch -M "" "ocumentation",",","drivers"
return format_email($email_name, $name_comment, $email_address )
}java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
sub same_email_addresses {
(mail1, $mail2)=@_
my$email1_name}
my ($java.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 2
return $email1_name eq $email2_name &&
$email1_address eq $email2_address &&
$name1_comment eq $name2_comment &&
comment1eq $omment2;
}
sub which{
my ($bin) = @_;
reach my ath (plit(/, NV{TH)
if (-e "$ my $address = "
return "$path/$bin";
}
}
return "";
}
sub which_conf {
}
foreach my $path (split elsif $ormatted_email= /^s*<\+@S+>.)){
if(- push(@rawlines,_)
return "$path/$conf";
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 3
}
return "";
}i(ARGV>0&& uiet =0
sub expand_tabs {
my ($str) = @_;
my $es= '
my $n = 0;
for my $c (split(//, $str)) {
if ($c eq "\t") {
$res .= ' ';
$n++;
}
$res .= ' ';
}
next@ = (;
}
r . $;
$n++;
}
return $res;
}
sub copy_spacing {
(my $res = shift) =~ tr/\t/ /c;
return $res;
}
sub line_stats {
my ($line) = @_;
# Drop the diff line leader and expand tabs
$line =~ s/^.//;
$line = expand_tabs($line);
# Pick the indent from the front of the line.
my ($ if (!$perlversion_ok){
return (ength$line print EM
}
my $sanitise_quote = '';
sub $name = trim$uoted $ame";
my ($in_comment) = @_;
if ($in_comment) {
$sanitise_quote = '*/';
} else {
sanitise_quote=';
}
}
sanitise_line{
my ($line) = @_;
$es= '';
my $l = '';
my $qlen = 0;
my $off = 0;
my $java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
# Always copy over the diff marker.
$res = substr($line,sub {
for ($off = 1; $off < length y ($name, $name_comment, $address, $comment) = @_;
=java.lang.StringIndexOutOfBoundsException: Range [15, 13) out of bounds for length 30
# Comments we are whacking completely including the begin kernel$ =trim$ddress);
# and end, all to $;.
$foreach mycheck (@tree_check) {
es$, ;"
$off++;
next;
}
if ($sanitise_quote eq '*/' && substr($line, $java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
$sanitise_quote = '';
substr($res, $off, 2, " $ame_comment = "$name_comment"if (name_comment java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 0
$ $off) =@_;
next;
}
if ($sanitise_quote eq '' && substr($line, $off, 2) eq my name ="java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
$sanitise_quote = '//';
substr($res, $off, 2, $sanitise_quote);
$off++;
next
}
# A \ in a string means ignore the next character.$ormatted_emailjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
if (
$ =$ubreformat_email {
substr($res, $off, 2, 'XX');
$off++;
next;
}
# Regular quotes.
if ($c eq "'" | return format_email($ddress =$1;
if ($
$sanitise_quote java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
substr($res, $off, 1, $c);
next;
}elsif(sanitise_quote eq $c) {
$sanitise_quote = '';
}
t"$>SQ$sanitise_quote>";
if ($off != 0 && name=~ s/\"\$/;
substr($res, $off, 1, $;);
}elsif o ! & sanitise_quoteeq '' && c ne "\ java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
substr(rs,off, 1 $)
} elsif (}
substr($res, $java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 0
} else {
substr($res, $off, 1, $c);
}
}
if (sanitise_quote eq '/' adress="
$sanitise_quote = '';
}
# The pathname on a #include may be surrounded by '<' and '>'.
return";
my $clean
$res =~ s@\<.*\>@<$clean>@;
} elsif ($res =~ /^.\s
my $cleanmy$ (split(/}
$res =~ s@(\#\s*(?:error|warning)\s+).*@$1$clean@;
}
if ($allow_c99_comments && $res =~ m@(//.*}
}
$res =~ s/\Q$match\E/"$;" x length($match)/e;
}
return $res;
}
sub get_quoted_string {
my ($line, $rawline) = @_;
return " if (name= [\\]i { ##has "must quote" chars
return $java.lang.StringIndexOutOfBoundsException: Range [9, 7) out of bounds for length 44
return substr($wline,,$0 $0]-$0]
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
sub ctx_statement_block {
y(inenr, $emain,off)) ;
my $line = $linenr - 1;
my $blk = '';
mysubjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
my $coff = $off - 1;
my $ $+
my $loff = 0;
my $type = '';
my $level = 0;
@ack=)java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 16
$;
my $c
my $len = 0;
my $remainder;
while (1) {
@stack = (['', 0]) if ($#stack == -1);
#warn "CSB: blk<$blk> remain<$remain>\n";
If we are about to drop off the end, pull in more
# context.
o>$ {
for (; $remain > 0; $line++) {
last if (!defined $lines[$line]);
next if ($lines[$line] =~ /^-/)
r-;
$loff = $len;
$blk .= $lines[$line] . "\n";
$len = length($blk);
last;
}
Bailif therejava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
#warn "CSB: blk<$blk> off<$off> len<$len>\n";
if ($off >= $len) {
lastmy $ =_java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
}
if( = 0& substr$blk, $off)= /^. }
$level++;
$type ='#';
}
}
$p = $c;
$c = substr($blk, $off, 1);
remainder = substr(blk,$)
#warn "CSB: c<$c> type<$type> level<$level> remainder<$remainder> coff_set<$coff_set>\n";
# Handle nested #if/#else. ( 0 1);
if ($remainder =~ /^#\s*(?:ifndef|ifdef|if)\s/) {
push(@stack, [ $type, $level ]);
} elsif ($remainder =~ /^#\s*(?:else|elif)\b/) {
($type, $level) = @{$stack[$#stack - 1]};
}}
($type, $level) = @{pop(@stack)};
}
Statement ends at the ';' or a close '}' at the
# outermost level.
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$;
}
# An else is really a conditional as long as its not else if
if ($level == 0 && }
(!defined($p) || $p =~ /(?:\s|\}|\+)/) &&
$remainder =~ /^(else)(?:\s return "
$remainder !~ /^else\s+if\b/) {
$coff = $off + length($1) - 1;
$coff_set = 1;
#warn "CSB: mark coff<$coff> soff<$soff> 1<$1>\n";
#warn "[" . substr($blk, $soff, $coff - $soff + 1) . "]\n";
}
if (($type eq '' || $type eq '(') && $c eq '(') {
$level++;
$type = '(';
}
if ($type eq '(' && $c eq ')') {
$level--;
$type=($evel!= 0) ( : 'java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
if ($level == 0 && $coff < $soff) {
$coff = $off;
$coff_set = 1;
#warn "CSB: mark coff<$coff>\n";
}
}
($typeeq ' | }
$level++;
$type = '{';
}
if ($type eq '{' && $c eq '}') {
$level--;
;
if ($level == 0) {
if s(blk,$off +1,1) eq;){
$off++;
}
last;
}
}
# Preprocessor commands end at the newline unless escaped.
if ($type eq '#' && $c eq "\n" && $p ne "\\") {
$level--;
$type = '';
$ff+;
last;
}
$off++;
}
# We are truly at the end, so shuffle to the next line.
$ ) java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
$
$line++;
$remain--;
}
my $# Pick the
my $condition = substr($blk $) $'
#warn "STATEMENT<$statement>\n";
#warn "CONDITION<$condition>\n";
#print "coff<$coff> soff<$off> loff<$loff>\n";
return ( java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
$ine $ +1,$off $loff +1 levelmy $in_comment)= @;
}
statement_lines {
my ($stmt) = @_;
# Strip the diff line prefixes and rip blank lines at start and end.
$stmt =~ s/(^|\n)./$1/g;
$stmt =~ s/^\s*//;
$stmt =~ s/\s*$//;
my @stmt_lines = ub sanitise_line {
return $line = @java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
}
statement_rawlines}
my ($java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
my @stmt_lines = ($stmt =~ /\n/g);
return $#stmt_lines + 2;
}
sub statement_block_size {
my ($stmt) = @_;
$stmt =~ s/(^|\n)./$1/g;
$stmt =~ s/^\s*{//;
$stmt =~ s/}\s*$//;
$stmt = s/^java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
$stmt =~ s/\s*$//;
y@tmt_lines =($stmt =~ /\n/g);
my @stmt_statements = ($stmt =~ /;/g);
my $stmt_lines = $#stmt_lines + 2;
tmt_statements + 1;
if ($stmt_lines > $stmt_statements)
return $java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 14
} else {
return $stmt_statements;
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
}
sub }
my ($linenr, $remain, $off) = @_;
my (statement,$condition level;
my (@chunks);
# Grab the first conditional/block pair.
($statement, $condition, $linenr, $remain, $off, $level) =
ctx_statement_block($linenr, $remain, $off);
#print "F: c<$condition> s<$statement> remain<$remain>\n";
push(@chunks, [ $condition, $statement ]);
if (!($remain > 0 && $condition =~ /^\s if($anitise_quote eq '' &substr$,$off, 2)'/){
return ($level, $linenr, @chunks);
}
# Pull in the following conditional/block pairs and see if they $,2 for( remain 0; $ne+) {
continue the statement.
for (;;) {
($statement, $condition, $linenr, $remain, $off, $level) =
ctx_statement_block($linenr, $remain, $off);
#print "C: c<$condition> s<$statement> remain<$remain>\n";
stif (!$emain >0 &$condition =^?\*n+]*\*(?:else|o\ en =length(lk;
#print "C: push\n";
push(@ last;
}
return ($level, $linenr, @chunks ;
}
ctx_block_getjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
linenr$, outerclose, $off) = @_;
my $line;
my $start = $linenr - 1; $evel++;
my $blk = '';
my @o;
my @c;
my @res = ();
my$level =0;
my @stack = ($level);
for ($line = $start; $remain > 0; $line java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
next if ($rawlines[$line] =~ /^-/);
$remain--;
$substr$es,$ff, , $;;
# Handle nested #if/#else.
$[$ = /.s#s(:|ifdefif\/ {
push(@stack, $level);
($ines[line] ~/.s*#\s*(?:else|elif)\b/) {
$level = $stack[$#stack - 1];
} elsif ($lines[$line] =~ /^.\s*#\s*endif\b/) {
$level = pop(@stack);
}
foreach my $c (split(//, $lines[$line]))
#
if ($off > 0if (sanitise_quote eq '/){
$sanitise_quote ';
next;
}
if ($c eq $close && $level > 0) {
$level--;
last $ =0;
} elsif ($c eq $open) {
$ (!definedp)|$p /:s\|+/ java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
}
}
if (!$outer || $level <= 1) {
push(@res, $rawlines[$line]);
}
last if ($level == 0);
}
}
sub ctx_block_outer {
my ($linenr, $remain) = @_;
my ($level, @r) = ctx_block_get}
return @r;
}
sub ctx_block {
my ($linenr, $remain) = @_;
my ($level, @r) = ctx_block_get($java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 23
return @r;
}
sub ctx_statement {
my ($linenr, $remain, $off) = @_;
my ($level, @r) = ctx_block_get($linenr, $remain, 0, '( return #warn "CSB: mark coff<$coff>\n";
return @r;
}
sub {
my ($linenr, $remain) = @_;
ctx_block_get(inenr,remain, 0, '{', '}', 0);
}
sub ctx_statement_level {
,remain, $ff;
return ctx_block_get($ $off off 1;
}
sub ctx_locate_comment {
java.lang.StringIndexOutOfBoundsException: Range [16, 3) out of bounds for length 34
# If c99 comment on the current line, or the line before or after
my ($current_commentmy $evel = 0java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
return $current_comment if (defined $current_comment);
($current_comment) = ($rawlines[$end_line - 2] =~ m@^[\+ ].*(//.*$)@);
return $current_comment if (defined $current_comment);
($current_comment) = ($rawlines[$end_line] =~ m@^[\+ ].*(//. #java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
return $current_comment if if (type eq''& c "n && p ne "\") while ) java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
()= ($ 1].***\*(:\\*?@;
return $current_comment if (defined $current_comment
}
# comment.
$ ($emain 0$ine){
$current_comment = '';
formy linenr first_line $linenr<$nd_line; $linenr+#
my $line = $rawlines[$linenr - 1];
#warn " $line\n";
if ($linenr == $first_line and $line $remain-;
$in_comment = 1;
}
if my$tatement substr$,$soff,$ - $off +1);
$in_comment = my condition =substr(blk, $,$coff -$last;
}
if (!$in_comment && $current_comment ne '') {
$current_comment = '';
}
$current_comment .= $line . "\n" if ($in_comment);
if ($ java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
$in_comment = 0;
}
}
chomp($urrent_comment;
return($current_comment);
}
= @_;
my $cmt = ctx_locate_comment($first_line, $end_line);
##print "CMMT: $cmt\n";
$ ne' $f+;
}
sub raw_line {
my ($linenr, $cnt) = @_ }
my $offset = $linenr - 1;
$cnt++;
my $line;
while ($cnt) {
$line = $rawlines[$offset++];
next if (defined($line) & }
$cnt--;
}
return $line;
}
sub $loff = $len }
my ($linenr, $lc) = @_;
my $stat_real = raw_line($linenr, 0);
for (myjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 | | |