Lines Matching refs:linenr
1608 my ($linenr, $remain, $off) = @_;
1609 my $line = $linenr - 1;
1785 my ($linenr, $remain, $off) = @_;
1791 ($statement, $condition, $linenr, $remain, $off, $level) =
1792 ctx_statement_block($linenr, $remain, $off);
1796 return ($level, $linenr, @chunks);
1802 ($statement, $condition, $linenr, $remain, $off, $level) =
1803 ctx_statement_block($linenr, $remain, $off);
1810 return ($level, $linenr, @chunks);
1814 my ($linenr, $remain, $outer, $open, $close, $off) = @_;
1816 my $start = $linenr - 1;
1864 my ($linenr, $remain) = @_;
1866 my ($level, @r) = ctx_block_get($linenr, $remain, 1, '{', '}', 0);
1870 my ($linenr, $remain) = @_;
1872 my ($level, @r) = ctx_block_get($linenr, $remain, 0, '{', '}', 0);
1876 my ($linenr, $remain, $off) = @_;
1878 my ($level, @r) = ctx_block_get($linenr, $remain, 0, '(', ')', $off);
1882 my ($linenr, $remain) = @_;
1884 return ctx_block_get($linenr, $remain, 0, '{', '}', 0);
1887 my ($linenr, $remain, $off) = @_;
1889 return ctx_block_get($linenr, $remain, 0, '(', ')', $off);
1911 for (my $linenr = $first_line; $linenr < $end_line; $linenr++) {
1912 my $line = $rawlines[$linenr - 1];
1914 if ($linenr == $first_line and $line =~ m@^.\s*\*@) {
1943 my ($linenr, $cnt) = @_;
1945 my $offset = $linenr - 1;
1959 my ($linenr, $lc) = @_;
1961 my $stat_real = raw_line($linenr, 0);
1962 for (my $count = $linenr + 1; $count <= $lc; $count++) {
1970 my ($linenr, $cnt, $here) = @_;
1974 $herectx .= raw_line($linenr, $n) . "\n";
2382 my ($linenr, $line) = @_;
2385 LINENR => $linenr,
2392 my ($linenr, $line) = @_;
2395 LINENR => $linenr,
2563 my $linenr=0;
2637 $linenr++;
2664 for (my $ln = $linenr + 1; $cnt > 0; $ln++) {
2684 $rawlines[$linenr] =~ m@^.\s*(?:\*\*+| \*)(?:\s|$)@)
2716 $linenr = 0;
2719 $linenr++;
2724 my $rawline = $rawlines[$linenr - 1];
2740 $first_line = $linenr + 1;
2784 $here = "#$linenr: " if (!$file);
2820 $prefix = "$filename:$linenr: ";
2895 my $curline = $linenr;
3105 if (!defined $lines[$linenr]) {
3108 } elsif ($rawlines[$linenr] !~ /^\s*signed-off-by:\s*(.*)/i) {
3110 "Co-developed-by: must be immediately followed by Signed-off-by:\n" . "$here\n" . $rawline . "\n" .$rawlines[$linenr]);
3113 "Co-developed-by and Signed-off-by: name/email do not match \n" . "$here\n" . $rawline . "\n" .$rawlines[$linenr]);
3190 ($line =~ /\bcommit\s*$/i && defined($rawlines[$linenr]) && $rawlines[$linenr] =~ /^\s*[0-9a-f]{5,}\b/i)) ||
3221 last if ($#lines < $linenr + $n);
3222 $input .= " " . trim($rawlines[$linenr + $n]);
3223 $herectx .= "$rawlines[$linenr + $n]\n";
3244 $last_git_commit_id_linenr != $linenr - 1) {
3249 $last_git_commit_id_linenr = $linenr if ($line =~ /\bcommit\s*$/i);
3460 my $ln = $linenr + 1;
3717 if ($line =~ /^\+/ && defined $lines[$linenr] && $lines[$linenr] =~ /^\\ No newline at end of file/) {
3923 $last_blank_line != ($linenr - 1)) {
3930 $last_blank_line = $linenr;
4020 defined $lines[$linenr] &&
4021 $lines[$linenr] !~ /^[ \+]\t{$tabs,$tabs}return/)) {
4057 if ($linenr > $suppress_statement &&
4060 ctx_statement_block($linenr, $realcnt, 0);
4064 #print "linenr<$linenr> <$stat>\n";
4138 my @ctx = ctx_block_outer($linenr, $realcnt);
4161 my ($level, @ctx) = ctx_statement_level($linenr, $realcnt, 0);
4171 my $ctx_ln = $linenr;
4206 ctx_statement_block($linenr, $realcnt, 0)
4279 my $stat_real = raw_line($linenr, $cond_lines);
4311 print "$linenr > .$outline\n";
4312 print "$linenr > $curr_values\n";
4313 print "$linenr > $curr_vars\n";
4471 if (!defined $suppress_export{$linenr} &&
4474 #print "FOO B <$lines[$linenr - 1]>\n";
4475 $suppress_export{$linenr} = 2;
4477 if (defined $suppress_export{$linenr} &&
4478 $suppress_export{$linenr} == 2) {
5375 my $rl = raw_line($linenr, $n);
5406 my $herectx = get_stat_here($linenr, $cnt, $here);
5433 $linenr >= 3 &&
5434 $lines[$linenr - 3] =~ /^[ +]/ &&
5435 $lines[$linenr - 3] !~ /^[ +]\s*$Ident\s*:/) {
5508 ctx_statement_block($linenr, $realcnt, 0)
5527 if (!defined $suppress_whiletrailers{$linenr} &&
5572 $stat_real = raw_line($linenr, $cond_lines)
5647 my ($s, $c) = ctx_statement_block($linenr, $realcnt, 0);
5741 my $ln = $linenr;
5748 ctx_statement_block($linenr, $realcnt, 0);
5806 my $herectx = get_stat_here($linenr, $stmt_cnt, $here);
5880 my $herectx = get_stat_here($linenr, $cnt, $here);
5904 my $ln = $linenr;
5909 ctx_statement_block($linenr, $realcnt, 0);
5921 my $herectx = get_stat_here($linenr, $cnt, $here);
5935 my $herectx = get_stat_here($linenr, $cnt, $here);
5945 ctx_statement_full($linenr, $realcnt, 1);
5946 #print "chunks<$#chunks> linenr<$linenr> endln<$endln> level<$level>\n";
5953 my $ln = $linenr - 1;
6005 if (!defined $suppress_ifbraces{$linenr - 1} &&
6016 ctx_statement_full($linenr, $realcnt, $-[0]);
6020 #print "CHECKING<$linenr> cond<$cond> block<$block>\n";
6049 my $herectx = get_stat_here($linenr, $cnt, $here);
6096 $last_coalesced_string_linenr != $linenr - 1) {
6114 $last_coalesced_string_linenr = $linenr;
6238 if ($lines[$linenr - 2] =~ /^\+(\t*)if\s*\(\s*$tested\s*\)\s*$/) {
6243 if ($lines[$linenr - 1] =~ /^\+(\t+)$func\s*\(\s*$tested\s*\)\s*;\s*$/) {
6263 $linenr > 3) {
6265 my $testline = $lines[$linenr - 3];
6267 my ($s, $c) = ctx_statement_block($linenr - 3, $realcnt, 0);
6299 $lc = $lc + $linenr;
6300 my $stat_real = get_stat_real($linenr, $lc);
6464 if (!ctx_has_comment($first_line, $linenr)) {
6491 if (!ctx_has_comment($first_line, $linenr)) {
6509 if (!ctx_has_comment($first_line, $linenr)) {
6517 if (!ctx_has_comment($first_line, $linenr)) {
6717 $lc = $lc + $linenr;
6718 for (my $count = $linenr; $count <= $lc; $count++) {
6740 $stat_real = get_stat_real($linenr, $lc);
6747 my $stat_real = get_stat_real($linenr, $lc);
6875 $lc = $lc + $linenr;
6876 my $stat_real = get_stat_real($linenr, $lc);
6886 $lc = $lc + $linenr;
6887 my $stat_real = get_stat_real($linenr, $lc);
6963 my $rl = raw_line($linenr, $n);
7017 my $herectx = get_stat_here($linenr, $cnt, $here);
7106 my $herectx = get_stat_here($linenr, $cnt, $here);
7345 $lc = $lc + $linenr;
7346 my $stat_real = get_stat_real($linenr, $lc);