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);
1679 my $type = '';
1711 $type = '#';
1722 push(@stack, [ $type, $level ]);
1724 ($type, $level) = @{$stack[$#stack - 1]};
1726 ($type, $level) = @{pop(@stack)};
1746 if (($type eq '' || $type eq '(') && $c eq '(') {
1748 $type = '(';
1750 if ($type eq '(' && $c eq ')') {
1752 $type = ($level != 0)? '(' : '';
1760 if (($type eq '' || $type eq '{') && $c eq '{') {
1762 $type = '{';
1764 if ($type eq '{' && $c eq '}') {
1766 $type = ($level != 0)? '{' : '';
1776 if ($type eq '#' && $c eq "\n" && $p ne "\\") {
1778 $type = '';
2072 my ($stream, $type) = @_;
2083 "> <$type> <$av_pending>" if ($dbg_values > 1);
2087 $type = pop(@av_paren_type);
2093 push(@av_paren_type, $type);
2094 $type = 'c';
2098 $type = 'T';
2102 $type = 'T';
2107 push(@av_paren_type, $type);
2111 $type = 'E';
2116 push(@av_paren_type, $type);
2122 push(@av_paren_type, $type);
2123 push(@av_paren_type, $type);
2124 $type = 'E';
2132 $type = 'E';
2142 push(@av_paren_type, $type);
2143 $type = 'E';
2150 $av_pending = $type;
2151 $type = 'N';
2158 $type = 'N';
2163 $type = 'N';
2168 $type = 'N';
2172 $type = 'N';
2178 $type = 'N';
2183 $type = $new_type;
2184 print "PAREN('$1') -> $type\n"
2192 $type = 'V';
2196 if (defined $2 && $type eq 'C' || $type eq 'T') {
2198 } elsif ($type eq 'E') {
2201 print "IDENT_COLON($1,$type>$av_pend_colon)\n" if ($dbg_values > 1);
2202 $type = 'V';
2206 $type = 'V';
2210 $type = 'N';
2214 $type = 'E';
2219 $type = 'C';
2223 $type = 'N';
2230 $type = 'E';
2232 $type = 'N';
2238 $type = 'N';
2244 if ($type eq 'V') {
2251 $type = 'N';
2256 $type = 'N';
2264 $res .= $type x length($1);
2321 my ($type) = @_;
2323 $type =~ tr/[a-z]/[A-Z]/;
2325 return defined $use_type{$type} if (scalar keys %use_type > 0);
2327 return !defined $ignore_type{$type};
2331 my ($level, $type, $msg) = @_;
2333 if (!show_type($type) ||
2350 $output .= "$type:";
2365 if ($verbose && exists($verbose_messages{$type}) &&
2366 !exists($verbose_emitted{$type})) {
2367 $output .= $verbose_messages{$type} . "\n\n";
2368 $verbose_emitted{$type} = 1;
2465 my ($type, $msg) = @_;
2467 if (report("ERROR", $type, $msg)) {
2475 my ($type, $msg) = @_;
2477 if (report("WARNING", $type, $msg)) {
2485 my ($type, $msg) = @_;
2487 if ($check && report("CHECK", $type, $msg)) {
4247 my $type = $1;
4248 $type =~ s/\s+/ /g;
4249 possible($type, "A:" . $s);
4497 my $type = $1;
4500 if ($type =~ /^(?:(?:$Storage|$Inline|$Attribute)\s+)*((?:un)?signed)((?:\s*\*)*)\s*$/) {
4664 my $type = trim($1);
4665 next if ($type !~ /\bint\b/);
4666 next if ($type !~ /\b(?:short|long\s+long|long)\b/);
4667 my $new_type = $type;
4671 $new_type = "unsigned $new_type" if ($type =~ /\bunsigned\b/);
4672 $new_type = "const $new_type" if ($type =~ /^const\b/);
4676 "Prefer '$new_type' over '$type' as the int is unnecessary\n" . $herecurr) &&
4678 $fixed[$fixlinenr] =~ s/\b\Q$type\E\b/$new_type/;
6811 my $type = $1;
6812 if ($type =~ /\b($typeC99Typedefs)\b/) {
6813 $type = $1;
6815 $kernel_type = 's' if ($type =~ /^_*[si]/);
6816 $type =~ /(\d+)/;
6819 "Prefer kernel type '$kernel_type' over '$type'\n" . $herecurr) &&
6821 $fixed[$fixlinenr] =~ s/\b$type\b/$kernel_type/;
7348 my $type = lc($otype);
7349 if ($type =~ /^(?:true|false)$/) {
7350 if (("$test" eq "==" && "$type" eq "true") ||
7351 ("$test" eq "!=" && "$type" eq "false")) {