class AdLint::Cc1::VoidType
Public Class Methods
new(type_tbl)
click to toggle source
Calls superclass method
AdLint::Cc1::Type::new
# File lib/adlint/cc1/type.rb, line 1913 def initialize(type_tbl) super(type_tbl, "void") end
Public Instance Methods
_arithmetic_type_with_array(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 2385 def _arithmetic_type_with_array(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' 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 2366 def _arithmetic_type_with_bitfield(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with BitfieldType and `void' # 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 2172 def _arithmetic_type_with_char(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `char' and `void' # 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 2353 def _arithmetic_type_with_double(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `double' and `void' 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 2373 def _arithmetic_type_with_enum(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with EnumType and `void' 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 2400 def _arithmetic_type_with_extended_big_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with ExtendedBigIntType and `void' # 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 2347 def _arithmetic_type_with_float(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `float' and `void' 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 2167 def _arithmetic_type_with_function(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' 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 2235 def _arithmetic_type_with_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `int' and `void' 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 2266 def _arithmetic_type_with_long(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `long' and `void' 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 2359 def _arithmetic_type_with_long_double(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `long double' and `void' # 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 2286 def _arithmetic_type_with_long_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `long int' and `void' 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 2306 def _arithmetic_type_with_long_long(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `long long' and `void' 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 2326 def _arithmetic_type_with_long_long_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `long long int' and `void' # 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 2379 def _arithmetic_type_with_pointer(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with PointerType and `void' 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 2193 def _arithmetic_type_with_short(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `short' and `void' # 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 2214 def _arithmetic_type_with_short_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `short int' and `void' # 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 2241 def _arithmetic_type_with_signed(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `signed' and `void' 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 2179 def _arithmetic_type_with_signed_char(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `signed char' and `void' # 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 2247 def _arithmetic_type_with_signed_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `signed int' and `void' 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 2272 def _arithmetic_type_with_signed_long(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `signed long' and `void' # 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 2292 def _arithmetic_type_with_signed_long_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `signed long int' and `void' # 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 2312 def _arithmetic_type_with_signed_long_long(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `signed long long' and `void' # 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 2333 def _arithmetic_type_with_signed_long_long_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `signed long long int' and `void' # 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 2200 def _arithmetic_type_with_signed_short(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `signed short' and `void' # 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 2221 def _arithmetic_type_with_signed_short_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `signed short int' and `void' # 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 2390 def _arithmetic_type_with_struct(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' 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 2154 def _arithmetic_type_with_undeclared(lhs_type, rhs_type = self) rhs_type.arithmetic_type_with(lhs_type) end
_arithmetic_type_with_union(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 2395 def _arithmetic_type_with_union(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' 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 2158 def _arithmetic_type_with_unresolved(lhs_type, rhs_type = self) rhs_type.arithmetic_type_with(lhs_type) end
_arithmetic_type_with_unsigned(lhs_type, rhs_type = self)
click to toggle source
# File lib/adlint/cc1/type.rb, line 2253 def _arithmetic_type_with_unsigned(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `unsigned' and `void' 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 2186 def _arithmetic_type_with_unsigned_char(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `unsigned char' and `void' # 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 2259 def _arithmetic_type_with_unsigned_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `unsigned int' and `void' # 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 2279 def _arithmetic_type_with_unsigned_long(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `unsigned long' and `void' # 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 2299 def _arithmetic_type_with_unsigned_long_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `unsigned long int' and `void' # 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 2319 def _arithmetic_type_with_unsigned_long_long(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `unsigned long long' and `void' # 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 2340 def _arithmetic_type_with_unsigned_long_long_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `unsigned long long int' and `void' # 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 2207 def _arithmetic_type_with_unsigned_short(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `unsigned short' and `void' # 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 2228 def _arithmetic_type_with_unsigned_short_int(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! # NOTE: Binary operation with `unsigned short int' and `void' # 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 2162 def _arithmetic_type_with_void(lhs_type, rhs_type = self) # NOTE: An arithmetic operation with `void' must not be executed! lhs_type # NOTREACHED end
arbitrary_value()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2109 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 2145 def argument_promoted_type self # NOTREACHED end
arithmetic_type_with(type)
click to toggle source
# File lib/adlint/cc1/type.rb, line 2149 def arithmetic_type_with(type) # NOTE: An arithmetic operation with `void' must not be executed! type._arithmetic_type_with_void(self) end
array?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1989 def array? false end
base_type()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1949 def base_type nil end
bit_alignment()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1941 def bit_alignment 0 end
bit_size()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1937 def bit_size 0 end
bitfield?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2049 def bitfield? false end
brief_image()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1925 def brief_image name end
coerce_array_value(val)
click to toggle source
# File lib/adlint/cc1/type.rb, line 2129 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 2133 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 2125 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 1965 def coercible?(to_type) false end
compatible?(to_type)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1961 def compatible?(to_type) false end
const?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2037 def const? false end
convertible?(to_type)
click to toggle source
# File lib/adlint/cc1/type.rb, line 1969 def convertible?(to_type) to_type.void? end
corresponding_signed_type()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2407 def corresponding_signed_type self # NOTREACHED end
corresponding_unsigned_type()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2411 def corresponding_unsigned_type self # NOTREACHED end
dup()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2415 def dup VoidType.new(type_table) end
enum?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2013 def enum? false end
enumerators()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2073 def enumerators [] end
explicitly_signed?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2057 def explicitly_signed? false end
floating?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1985 def floating? false end
function?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2009 def function? false end
have_va_list?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2061 def have_va_list? false end
id()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1917 def id @id ||= StandardTypeId.new("void") end
image()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1921 def image name end
impl_length()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2081 def impl_length 0 end
incomplete?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1957 def incomplete? true end
integer?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1981 def integer? false end
integer_conversion_rank()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2137 def integer_conversion_rank 0 # NOTREACHED end
integer_promoted_type()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2141 def integer_promoted_type self # NOTREACHED end
length()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2077 def length 0 end
location()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1929 def location nil end
max()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2097 def max 0 end
member_named(name)
click to toggle source
# File lib/adlint/cc1/type.rb, line 2089 def member_named(name) nil end
members()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2085 def members [] end
min()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2093 def min 0 end
named?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1933 def named? true end
nil_value()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2101 def nil_value ScalarValue.of_nil(logical_right_shift?) # NOTREACHED end
parameter_types()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2069 def parameter_types [] end
parameter_value()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2117 def parameter_value ScalarValue.of_nil(logical_right_shift?) # NOTREACHED end
pointer?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2001 def pointer? false end
qualified?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2005 def qualified? false end
real_type()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1945 def real_type self end
restrict?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2045 def restrict? false end
return_type()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2065 def return_type self end
return_value()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2121 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 1973 def same_as?(type) false end
scalar?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1977 def scalar? false end
signed?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2053 def signed? false end
standard?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2025 def standard? true end
struct?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1993 def struct? false end
undeclared?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2029 def undeclared? false end
undefined_value()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2113 def undefined_value ScalarValue.of_nil(logical_right_shift?) # NOTREACHED end
union?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1997 def union? false end
unqualify()
click to toggle source
# File lib/adlint/cc1/type.rb, line 1953 def unqualify self end
unresolved?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2033 def unresolved? false end
user?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2017 def user? false end
void?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2021 def void? true end
volatile?()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2041 def volatile? false end
zero_value()
click to toggle source
# File lib/adlint/cc1/type.rb, line 2105 def zero_value ScalarValue.of_nil(logical_right_shift?) # NOTREACHED end