Lines Matching refs:type
196 foreach my $type (sort keys %types) {
197 my $orig_type = $type;
199 my $level = $types{$type};
201 $type = RED . $type . RESET;
203 $type = YELLOW . $type . RESET;
205 $type = GREEN . $type . RESET;
208 print(++$count . "\t" . $type . "\n");
249 my $type = '';
260 $verbose_messages{$type} = trim($desc);
262 $type = $1;
271 $verbose_messages{$type} = trim($desc);
272 $type = '';
280 $verbose_messages{$type} = trim($desc);
1646 my $type = '';
1678 $type = '#';
1689 push(@stack, [ $type, $level ]);
1691 ($type, $level) = @{$stack[$#stack - 1]};
1693 ($type, $level) = @{pop(@stack)};
1713 if (($type eq '' || $type eq '(') && $c eq '(') {
1715 $type = '(';
1717 if ($type eq '(' && $c eq ')') {
1719 $type = ($level != 0)? '(' : '';
1727 if (($type eq '' || $type eq '{') && $c eq '{') {
1729 $type = '{';
1731 if ($type eq '{' && $c eq '}') {
1733 $type = ($level != 0)? '{' : '';
1743 if ($type eq '#' && $c eq "\n" && $p ne "\\") {
1745 $type = '';
2039 my ($stream, $type) = @_;
2050 "> <$type> <$av_pending>" if ($dbg_values > 1);
2054 $type = pop(@av_paren_type);
2060 push(@av_paren_type, $type);
2061 $type = 'c';
2065 $type = 'T';
2069 $type = 'T';
2074 push(@av_paren_type, $type);
2078 $type = 'E';
2083 push(@av_paren_type, $type);
2089 push(@av_paren_type, $type);
2090 push(@av_paren_type, $type);
2091 $type = 'E';
2099 $type = 'E';
2109 push(@av_paren_type, $type);
2110 $type = 'E';
2117 $av_pending = $type;
2118 $type = 'N';
2125 $type = 'N';
2130 $type = 'N';
2135 $type = 'N';
2139 $type = 'N';
2145 $type = 'N';
2150 $type = $new_type;
2151 print "PAREN('$1') -> $type\n"
2159 $type = 'V';
2163 if (defined $2 && $type eq 'C' || $type eq 'T') {
2165 } elsif ($type eq 'E') {
2168 print "IDENT_COLON($1,$type>$av_pend_colon)\n" if ($dbg_values > 1);
2169 $type = 'V';
2173 $type = 'V';
2177 $type = 'N';
2181 $type = 'E';
2186 $type = 'C';
2190 $type = 'N';
2197 $type = 'E';
2199 $type = 'N';
2205 $type = 'N';
2211 if ($type eq 'V') {
2218 $type = 'N';
2223 $type = 'N';
2231 $res .= $type x length($1);
2288 my ($type) = @_;
2290 $type =~ tr/[a-z]/[A-Z]/;
2292 return defined $use_type{$type} if (scalar keys %use_type > 0);
2294 return !defined $ignore_type{$type};
2298 my ($level, $type, $msg) = @_;
2300 if (!show_type($type) ||
2317 $output .= "$type:";
2332 if ($verbose && exists($verbose_messages{$type}) &&
2333 !exists($verbose_emitted{$type})) {
2334 $output .= $verbose_messages{$type} . "\n\n";
2335 $verbose_emitted{$type} = 1;
2432 my ($type, $msg) = @_;
2434 if (report("ERROR", $type, $msg)) {
2442 my ($type, $msg) = @_;
2444 if (report("WARNING", $type, $msg)) {
2452 my ($type, $msg) = @_;
2454 if ($check && report("CHECK", $type, $msg)) {
4251 my $type = $1;
4252 $type =~ s/\s+/ /g;
4253 possible($type, "A:" . $s);
4501 my $type = $1;
4504 if ($type =~ /^(?:(?:$Storage|$Inline|$Attribute)\s+)*((?:un)?signed)((?:\s*\*)*)\s*$/) {
4668 my $type = trim($1);
4669 next if ($type !~ /\bint\b/);
4670 next if ($type !~ /\b(?:short|long\s+long|long)\b/);
4671 my $new_type = $type;
4675 $new_type = "unsigned $new_type" if ($type =~ /\bunsigned\b/);
4676 $new_type = "const $new_type" if ($type =~ /^const\b/);
4680 "Prefer '$new_type' over '$type' as the int is unnecessary\n" . $herecurr) &&
4682 $fixed[$fixlinenr] =~ s/\b\Q$type\E\b/$new_type/;
6795 my $type = $1;
6796 if ($type =~ /\b($typeC99Typedefs)\b/) {
6797 $type = $1;
6799 $kernel_type = 's' if ($type =~ /^_*[si]/);
6800 $type =~ /(\d+)/;
6803 "Prefer kernel type '$kernel_type' over '$type'\n" . $herecurr) &&
6805 $fixed[$fixlinenr] =~ s/\b$type\b/$kernel_type/;
7293 my $type = lc($otype);
7294 if ($type =~ /^(?:true|false)$/) {
7295 if (("$test" eq "==" && "$type" eq "true") ||
7296 ("$test" eq "!=" && "$type" eq "false")) {