• Home
  • Raw
  • Download

Lines Matching refs:type

159 	foreach my $type (@types) {
160 print(++$count . "\t" . $type . "\n");
1367 my $type = '';
1399 $type = '#';
1410 push(@stack, [ $type, $level ]);
1412 ($type, $level) = @{$stack[$#stack - 1]};
1414 ($type, $level) = @{pop(@stack)};
1434 if (($type eq '' || $type eq '(') && $c eq '(') {
1436 $type = '(';
1438 if ($type eq '(' && $c eq ')') {
1440 $type = ($level != 0)? '(' : '';
1448 if (($type eq '' || $type eq '{') && $c eq '{') {
1450 $type = '{';
1452 if ($type eq '{' && $c eq '}') {
1454 $type = ($level != 0)? '{' : '';
1464 if ($type eq '#' && $c eq "\n" && $p ne "\\") {
1466 $type = '';
1752 my ($stream, $type) = @_;
1763 "> <$type> <$av_pending>" if ($dbg_values > 1);
1767 $type = pop(@av_paren_type);
1773 push(@av_paren_type, $type);
1774 $type = 'c';
1778 $type = 'T';
1782 $type = 'T';
1787 push(@av_paren_type, $type);
1791 $type = 'E';
1796 push(@av_paren_type, $type);
1802 push(@av_paren_type, $type);
1803 push(@av_paren_type, $type);
1804 $type = 'E';
1812 $type = 'E';
1822 push(@av_paren_type, $type);
1823 $type = 'E';
1830 $av_pending = $type;
1831 $type = 'N';
1838 $type = 'N';
1843 $type = 'N';
1848 $type = 'N';
1852 $type = 'N';
1858 $type = 'N';
1863 $type = $new_type;
1864 print "PAREN('$1') -> $type\n"
1872 $type = 'V';
1876 if (defined $2 && $type eq 'C' || $type eq 'T') {
1878 } elsif ($type eq 'E') {
1881 print "IDENT_COLON($1,$type>$av_pend_colon)\n" if ($dbg_values > 1);
1882 $type = 'V';
1886 $type = 'V';
1890 $type = 'N';
1894 $type = 'E';
1899 $type = 'C';
1903 $type = 'N';
1910 $type = 'E';
1912 $type = 'N';
1918 $type = 'N';
1924 if ($type eq 'V') {
1931 $type = 'N';
1936 $type = 'N';
1944 $res .= $type x length($1);
2001 my ($type) = @_;
2003 $type =~ tr/[a-z]/[A-Z]/;
2005 return defined $use_type{$type} if (scalar keys %use_type > 0);
2007 return !defined $ignore_type{$type};
2011 my ($level, $type, $msg) = @_;
2013 if (!show_type($type) ||
2030 $output .= "$type:";
2136 my ($type, $msg) = @_;
2138 if (report("ERROR", $type, $msg)) {
2146 my ($type, $msg) = @_;
2148 if (report("WARNING", $type, $msg)) {
2156 my ($type, $msg) = @_;
2158 if ($check && report("CHECK", $type, $msg)) {
3525 my $type = $1;
3526 $type =~ s/\s+/ /g;
3527 possible($type, "A:" . $s);
3764 my $type = $1;
3767 if ($type =~ /^(?:(?:$Storage|$Inline|$Attribute)\s+)*((?:un)?signed)((?:\s*\*)*)\s*$/) {
3931 my $type = trim($1);
3932 next if ($type !~ /\bint\b/);
3933 next if ($type !~ /\b(?:short|long\s+long|long)\b/);
3934 my $new_type = $type;
3938 $new_type = "unsigned $new_type" if ($type =~ /\bunsigned\b/);
3939 $new_type = "const $new_type" if ($type =~ /^const\b/);
3943 "Prefer '$new_type' over '$type' as the int is unnecessary\n" . $herecurr) &&
3945 $fixed[$fixlinenr] =~ s/\b\Q$type\E\b/$new_type/;
5937 my $type = $1;
5938 if ($type =~ /\b($typeC99Typedefs)\b/) {
5939 $type = $1;
5941 $kernel_type = 's' if ($type =~ /^_*[si]/);
5942 $type =~ /(\d+)/;
5945 "Prefer kernel type '$kernel_type' over '$type'\n" . $herecurr) &&
5947 $fixed[$fixlinenr] =~ s/\b$type\b/$kernel_type/;
6428 my $type = lc($otype);
6429 if ($type =~ /^(?:true|false)$/) {
6430 if (("$test" eq "==" && "$type" eq "true") ||
6431 ("$test" eq "!=" && "$type" eq "false")) {