class AdLint::Cc1::UndeclaredType
Public Class Methods
new(type_tbl)
click to toggle source
Calls superclass method
AdLint::Cc1::Type::new
# File lib/adlint/cc1/type.rb, line 657 def initialize(type_tbl) super(type_tbl, "__adlint__undeclared_type") end
Public Instance Methods
_arithmetic_type_with_array(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1136 def _arithmetic_type_with_array(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! lhs_type # NOTREACHED end
_arithmetic_type_with_bitfield(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1116 def _arithmetic_type_with_bitfield(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with BitfieldType and UndeclaredType # makes integer-promoted type of BitfieldType. lhs_type.integer_promoted_type # NOTREACHED end
_arithmetic_type_with_char(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 918 def _arithmetic_type_with_char(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `char' and UndeclaredType # makes integer-promoted type of `char'. lhs_type.integer_promoted_type # NOTREACHED end
_arithmetic_type_with_double(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1103 def _arithmetic_type_with_double(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `double' and UndeclaredType makes `double'. lhs_type # NOTREACHED end
_arithmetic_type_with_enum(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1123 def _arithmetic_type_with_enum(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with EnumType and UndeclaredType makes EnumType. lhs_type # NOTREACHED end
_arithmetic_type_with_extended_big_int(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1151 def _arithmetic_type_with_extended_big_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with ExtendedBigIntType and UndeclaredType # makes ExtendedBigIntType. lhs_type # NOTREACHED end
_arithmetic_type_with_float(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1097 def _arithmetic_type_with_float(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `float' and UndeclaredType makes `float'. lhs_type # NOTREACHED end
_arithmetic_type_with_function(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 913 def _arithmetic_type_with_function(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! lhs_type # NOTREACHED end
_arithmetic_type_with_int(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 981 def _arithmetic_type_with_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `int' and UndeclaredType makes `int'. lhs_type # NOTREACHED end
_arithmetic_type_with_long(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1014 def _arithmetic_type_with_long(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `long' and UndeclaredType makes `long'. lhs_type # NOTREACHED end
_arithmetic_type_with_long_double(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1109 def _arithmetic_type_with_long_double(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `long double' and UndeclaredType # makes `long double'. lhs_type # NOTREACHED end
_arithmetic_type_with_long_int(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1034 def _arithmetic_type_with_long_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `long int' and UndeclaredType # makes `long int'. lhs_type # NOTREACHED end
_arithmetic_type_with_long_long(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1055 def _arithmetic_type_with_long_long(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `long long' and UndeclaredType # makes `long long'. lhs_type # NOTREACHED end
_arithmetic_type_with_long_long_int(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1076 def _arithmetic_type_with_long_long_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `long long int' and UndeclaredType # makes `long long int'. lhs_type # NOTREACHED end
_arithmetic_type_with_pointer(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1129 def _arithmetic_type_with_pointer(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with PointerType and UndeclaredType # makes PointerType. lhs_type # NOTREACHED end
_arithmetic_type_with_short(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 939 def _arithmetic_type_with_short(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `short' and UndeclaredType # makes integer-promoted type of `short'. lhs_type.integer_promoted_type # NOTREACHED end
_arithmetic_type_with_short_int(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 960 def _arithmetic_type_with_short_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `short int' and UndeclaredType # makes integer-promoted type of `short int'. lhs_type.integer_promoted_type # NOTREACHED end
_arithmetic_type_with_signed(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 987 def _arithmetic_type_with_signed(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `signed' and UndeclaredType makes `signed'. lhs_type # NOTREACHED end
_arithmetic_type_with_signed_char(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 925 def _arithmetic_type_with_signed_char(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `signed char' and UndeclaredType # makes integer-promoted type of `signed char'. lhs_type.integer_promoted_type # NOTREACHED end
_arithmetic_type_with_signed_int(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 993 def _arithmetic_type_with_signed_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `signed int' and UndeclaredType # makes `signed int'. lhs_type # NOTREACHED end
_arithmetic_type_with_signed_long(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1020 def _arithmetic_type_with_signed_long(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `signed long' and UndeclaredType # makes `signed long'. lhs_type # NOTREACHED end
_arithmetic_type_with_signed_long_int(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1041 def _arithmetic_type_with_signed_long_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `signed long int' and UndeclaredType # makes `signed long int'. lhs_type # NOTREACHED end
_arithmetic_type_with_signed_long_long(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1062 def _arithmetic_type_with_signed_long_long(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `signed long long' and UndeclaredType # makes `signed long long'. lhs_type # NOTREACHED end
_arithmetic_type_with_signed_long_long_int(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1083 def _arithmetic_type_with_signed_long_long_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `signed long long int' and UndeclaredType # makes `signed long long int'. lhs_type # NOTREACHED end
_arithmetic_type_with_signed_short(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 946 def _arithmetic_type_with_signed_short(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `signed short' and UndeclaredType # makes integer-promoted type of `signed short'. lhs_type.integer_promoted_type # NOTREACHED end
_arithmetic_type_with_signed_short_int(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 967 def _arithmetic_type_with_signed_short_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `signed short int' and UndeclaredType # makes integer-promoted type of `signed short int'. lhs_type.integer_promoted_type # NOTREACHED end
_arithmetic_type_with_struct(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1141 def _arithmetic_type_with_struct(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! lhs_type # NOTREACHED end
_arithmetic_type_with_undeclared(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 898 def _arithmetic_type_with_undeclared(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! lhs_type # NOTREACHED end
_arithmetic_type_with_union(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1146 def _arithmetic_type_with_union(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! lhs_type # NOTREACHED end
_arithmetic_type_with_unresolved(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 903 def _arithmetic_type_with_unresolved(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! lhs_type # NOTREACHED end
_arithmetic_type_with_unsigned(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1000 def _arithmetic_type_with_unsigned(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `unsigned' and UndeclaredType # makes `unsigned'. lhs_type # NOTREACHED end
_arithmetic_type_with_unsigned_char(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 932 def _arithmetic_type_with_unsigned_char(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `unsigned char' and UndeclaredType # makes integer-promoted type of `unsigned char'. lhs_type.integer_promoted_type # NOTREACHED end
_arithmetic_type_with_unsigned_int(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1007 def _arithmetic_type_with_unsigned_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `unsigned int' and UndeclaredType # makes `unsigned int'. lhs_type # NOTREACHED end
_arithmetic_type_with_unsigned_long(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1027 def _arithmetic_type_with_unsigned_long(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `unsigned long' and UndeclaredType # makes `unsigned long'. lhs_type # NOTREACHED end
_arithmetic_type_with_unsigned_long_int(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1048 def _arithmetic_type_with_unsigned_long_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `unsigned long int' and UndeclaredType # makes `unsigned long int'. lhs_type # NOTREACHED end
_arithmetic_type_with_unsigned_long_long(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1069 def _arithmetic_type_with_unsigned_long_long(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `unsigned long long' and UndeclaredType # makes `unsigned long long'. lhs_type # NOTREACHED end
_arithmetic_type_with_unsigned_long_long_int(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1090 def _arithmetic_type_with_unsigned_long_long_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `unsigned long long int' and UndeclaredType # makes `unsigned long long int'. lhs_type # NOTREACHED end
_arithmetic_type_with_unsigned_short(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 953 def _arithmetic_type_with_unsigned_short(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `unsigned short' and UndeclaredType # makes integer-promoted type of `unsigned short'. lhs_type.integer_promoted_type # NOTREACHED end
_arithmetic_type_with_unsigned_short_int(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 974 def _arithmetic_type_with_unsigned_short_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! # NOTE: Binary operation with `unsigned short int' and UndeclaredType # makes integer-promoted type of `unsigned short int'. lhs_type.integer_promoted_type # NOTREACHED end
_arithmetic_type_with_void(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 908 def _arithmetic_type_with_void(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with UndeclaredType must not be executed! lhs_type # NOTREACHED end
arbitrary_value()
click to toggle source
# File lib/adlint/cc1/type.rb, line 853 def arbitrary_value ScalarValue.of_nil(logical_right_shift?) # NOTREACHED end
argument_promoted_type()
click to toggle source
# File lib/adlint/cc1/type.rb, line 889 def argument_promoted_type self # NOTREACHED end
arithmetic_type_with(type)
click to toggle source
# File lib/adlint/cc1/type.rb, line 893 def arithmetic_type_with(type) # NOTE: An arithmetic operation with UndeclaredType must not be executed! type._arithmetic_type_with_undeclared(self) end
array?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 733 def array? false end
base_type()
click to toggle source
# File lib/adlint/cc1/type.rb, line 693 def base_type self end
bit_alignment()
click to toggle source
# File lib/adlint/cc1/type.rb, line 685 def bit_alignment 0 end
bit_size()
click to toggle source
# File lib/adlint/cc1/type.rb, line 681 def bit_size 0 end
bitfield?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 793 def bitfield? false end
brief_image()
click to toggle source
# File lib/adlint/cc1/type.rb, line 669 def brief_image name end
coerce_array_value(val)
click to toggle source
# File lib/adlint/cc1/type.rb, line 873 def coerce_array_value(val) ScalarValue.of_nil(logical_right_shift?) # NOTREACHED end
coerce_composite_value(val)
click to toggle source
# File lib/adlint/cc1/type.rb, line 877 def coerce_composite_value(val) ScalarValue.of_nil(logical_right_shift?) # NOTREACHED end
coerce_scalar_value(val)
click to toggle source
# File lib/adlint/cc1/type.rb, line 869 def coerce_scalar_value(val) ScalarValue.of_nil(logical_right_shift?) # NOTREACHED end
coercible?(to_type)
click to toggle source
# File lib/adlint/cc1/type.rb, line 709 def coercible?(to_type) false end
compatible?(to_type)
click to toggle source
# File lib/adlint/cc1/type.rb, line 705 def compatible?(to_type) false end
const?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 781 def const? false end
convertible?(to_type)
click to toggle source
# File lib/adlint/cc1/type.rb, line 713 def convertible?(to_type) false end
corresponding_signed_type()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1158 def corresponding_signed_type self # NOTREACHED end
corresponding_unsigned_type()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1162 def corresponding_unsigned_type self # NOTREACHED end
dup()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1166 def dup UndeclaredType.new(type_table) end
enum?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 757 def enum? false end
enumerators()
click to toggle source
# File lib/adlint/cc1/type.rb, line 817 def enumerators [] end
explicitly_signed?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 801 def explicitly_signed? false end
floating?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 729 def floating? false end
function?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 753 def function? false end
have_va_list?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 805 def have_va_list? false end
id()
click to toggle source
# File lib/adlint/cc1/type.rb, line 661 def id @id ||= TypeId.new(name) end
image()
click to toggle source
# File lib/adlint/cc1/type.rb, line 665 def image name end
impl_length()
click to toggle source
# File lib/adlint/cc1/type.rb, line 825 def impl_length 0 end
incomplete?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 701 def incomplete? true end
integer?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 725 def integer? false end
integer_conversion_rank()
click to toggle source
# File lib/adlint/cc1/type.rb, line 881 def integer_conversion_rank 0 # NOTREACHED end
integer_promoted_type()
click to toggle source
# File lib/adlint/cc1/type.rb, line 885 def integer_promoted_type self # NOTREACHED end
length()
click to toggle source
# File lib/adlint/cc1/type.rb, line 821 def length 0 end
location()
click to toggle source
# File lib/adlint/cc1/type.rb, line 673 def location nil end
max()
click to toggle source
# File lib/adlint/cc1/type.rb, line 841 def max 0 end
member_named(name)
click to toggle source
# File lib/adlint/cc1/type.rb, line 833 def member_named(name) nil end
members()
click to toggle source
# File lib/adlint/cc1/type.rb, line 829 def members [] end
min()
click to toggle source
# File lib/adlint/cc1/type.rb, line 837 def min 0 end
named?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 677 def named? false end
nil_value()
click to toggle source
# File lib/adlint/cc1/type.rb, line 845 def nil_value ScalarValue.of_nil(logical_right_shift?) # NOTREACHED end
parameter_types()
click to toggle source
# File lib/adlint/cc1/type.rb, line 813 def parameter_types [] end
parameter_value()
click to toggle source
# File lib/adlint/cc1/type.rb, line 861 def parameter_value ScalarValue.of_nil(logical_right_shift?) # NOTREACHED end
pointer?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 745 def pointer? false end
qualified?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 749 def qualified? false end
real_type()
click to toggle source
# File lib/adlint/cc1/type.rb, line 689 def real_type self end
restrict?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 789 def restrict? false end
return_type()
click to toggle source
# File lib/adlint/cc1/type.rb, line 809 def return_type self end
return_value()
click to toggle source
# File lib/adlint/cc1/type.rb, line 865 def return_value ScalarValue.of_nil(logical_right_shift?) # NOTREACHED end
same_as?(type)
click to toggle source
# File lib/adlint/cc1/type.rb, line 717 def same_as?(type) false end
scalar?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 721 def scalar? false end
signed?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 797 def signed? false end
standard?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 769 def standard? false end
struct?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 737 def struct? false end
undeclared?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 773 def undeclared? true end
undefined_value()
click to toggle source
# File lib/adlint/cc1/type.rb, line 857 def undefined_value ScalarValue.of_nil(logical_right_shift?) # NOTREACHED end
union?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 741 def union? false end
unqualify()
click to toggle source
# File lib/adlint/cc1/type.rb, line 697 def unqualify self end
unresolved?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 777 def unresolved? false end
user?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 761 def user? false end
void?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 765 def void? false end
volatile?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 785 def volatile? false end
zero_value()
click to toggle source
# File lib/adlint/cc1/type.rb, line 849 def zero_value ScalarValue.of_nil(logical_right_shift?) # NOTREACHED end