Class: AdLint::Cc1::UndeclaredType

Inherits:
Type
  • Object
show all
Defined in:
lib/adlint/cc1/type.rb

Instance Attribute Summary

Attributes inherited from Type

#declarations, #name, #type_table

Instance Method Summary collapse

Methods inherited from Type

#==, #aligned_bit_size, #aligned_byte_size, #byte_alignment, #byte_size, #composite?, #inspect, #length=, #more_cv_qualified?, #parameter?, #unsigned?

Methods included from StandardTypesAccessor

#char_alignment, #char_as_unsigned_char?, #char_size, #code_ptr_alignment, #code_ptr_size, #data_ptr_alignment, #data_ptr_size, #double_alignment, #double_size, #float_alignment, #float_size, #int_alignment, #int_size, #long_alignment, #long_double_alignment, #long_double_size, #long_long_alignment, #long_long_size, #long_size, #short_alignment, #short_size, #standard_types

Methods included from ArithmeticAccessor

#arithmetic, #logical_right_shift?

Methods included from Visitable

#accept

Constructor Details

#initialize(type_tbl) ⇒ UndeclaredType

Returns a new instance of UndeclaredType.



657
658
659
# File 'lib/adlint/cc1/type.rb', line 657

def initialize(type_tbl)
  super(type_tbl, "__adlint__undeclared_type")
end

Instance Method Details

#_arithmetic_type_with_array(lhs_type, rhs_type = self) ⇒ Object



1136
1137
1138
1139
# 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) ⇒ Object



1116
1117
1118
1119
1120
1121
# 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) ⇒ Object



918
919
920
921
922
923
# 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) ⇒ Object



1103
1104
1105
1106
1107
# 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) ⇒ Object



1123
1124
1125
1126
1127
# 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) ⇒ Object



1151
1152
1153
1154
1155
1156
# 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) ⇒ Object



1097
1098
1099
1100
1101
# 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) ⇒ Object



913
914
915
916
# 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) ⇒ Object



981
982
983
984
985
# 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) ⇒ Object



1014
1015
1016
1017
1018
# 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) ⇒ Object



1109
1110
1111
1112
1113
1114
# 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) ⇒ Object



1034
1035
1036
1037
1038
1039
# 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) ⇒ Object



1055
1056
1057
1058
1059
1060
# 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) ⇒ Object



1076
1077
1078
1079
1080
1081
# 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) ⇒ Object



1129
1130
1131
1132
1133
1134
# 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) ⇒ Object



939
940
941
942
943
944
# 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) ⇒ Object



960
961
962
963
964
965
# 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) ⇒ Object



987
988
989
990
991
# 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) ⇒ Object



925
926
927
928
929
930
# 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) ⇒ Object



993
994
995
996
997
998
# 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) ⇒ Object



1020
1021
1022
1023
1024
1025
# 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) ⇒ Object



1041
1042
1043
1044
1045
1046
# 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) ⇒ Object



1062
1063
1064
1065
1066
1067
# 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) ⇒ Object



1083
1084
1085
1086
1087
1088
# 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) ⇒ Object



946
947
948
949
950
951
# 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) ⇒ Object



967
968
969
970
971
972
# 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) ⇒ Object



1141
1142
1143
1144
# 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) ⇒ Object



898
899
900
901
# 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) ⇒ Object



1146
1147
1148
1149
# 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) ⇒ Object



903
904
905
906
# 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) ⇒ Object



1000
1001
1002
1003
1004
1005
# 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) ⇒ Object



932
933
934
935
936
937
# 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) ⇒ Object



1007
1008
1009
1010
1011
1012
# 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) ⇒ Object



1027
1028
1029
1030
1031
1032
# 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) ⇒ Object



1048
1049
1050
1051
1052
1053
# 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) ⇒ Object



1069
1070
1071
1072
1073
1074
# 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) ⇒ Object



1090
1091
1092
1093
1094
1095
# 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) ⇒ Object



953
954
955
956
957
958
# 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) ⇒ Object



974
975
976
977
978
979
# 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) ⇒ Object



908
909
910
911
# 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_valueObject



853
854
855
# File 'lib/adlint/cc1/type.rb', line 853

def arbitrary_value
  ScalarValue.of_nil(logical_right_shift?) # NOTREACHED
end

#argument_promoted_typeObject



889
890
891
# File 'lib/adlint/cc1/type.rb', line 889

def argument_promoted_type
  self # NOTREACHED
end

#arithmetic_type_with(type) ⇒ Object



893
894
895
896
# 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?Boolean

Returns:

  • (Boolean)


733
734
735
# File 'lib/adlint/cc1/type.rb', line 733

def array?
  false
end

#base_typeObject



693
694
695
# File 'lib/adlint/cc1/type.rb', line 693

def base_type
  self
end

#bit_alignmentObject



685
686
687
# File 'lib/adlint/cc1/type.rb', line 685

def bit_alignment
  0
end

#bit_sizeObject



681
682
683
# File 'lib/adlint/cc1/type.rb', line 681

def bit_size
  0
end

#bitfield?Boolean

Returns:

  • (Boolean)


793
794
795
# File 'lib/adlint/cc1/type.rb', line 793

def bitfield?
  false
end

#brief_imageObject



669
670
671
# File 'lib/adlint/cc1/type.rb', line 669

def brief_image
  name
end

#coerce_array_value(val) ⇒ Object



873
874
875
# 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) ⇒ Object



877
878
879
# 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) ⇒ Object



869
870
871
# File 'lib/adlint/cc1/type.rb', line 869

def coerce_scalar_value(val)
  ScalarValue.of_nil(logical_right_shift?) # NOTREACHED
end

#coercible?(to_type) ⇒ Boolean

Returns:

  • (Boolean)


709
710
711
# File 'lib/adlint/cc1/type.rb', line 709

def coercible?(to_type)
  false
end

#compatible?(to_type) ⇒ Boolean

Returns:

  • (Boolean)


705
706
707
# File 'lib/adlint/cc1/type.rb', line 705

def compatible?(to_type)
  false
end

#const?Boolean

Returns:

  • (Boolean)


781
782
783
# File 'lib/adlint/cc1/type.rb', line 781

def const?
  false
end

#convertible?(to_type) ⇒ Boolean

Returns:

  • (Boolean)


713
714
715
# File 'lib/adlint/cc1/type.rb', line 713

def convertible?(to_type)
  false
end

#corresponding_signed_typeObject



1158
1159
1160
# File 'lib/adlint/cc1/type.rb', line 1158

def corresponding_signed_type
  self # NOTREACHED
end

#corresponding_unsigned_typeObject



1162
1163
1164
# File 'lib/adlint/cc1/type.rb', line 1162

def corresponding_unsigned_type
  self # NOTREACHED
end

#dupObject



1166
1167
1168
# File 'lib/adlint/cc1/type.rb', line 1166

def dup
  UndeclaredType.new(type_table)
end

#enum?Boolean

Returns:

  • (Boolean)


757
758
759
# File 'lib/adlint/cc1/type.rb', line 757

def enum?
  false
end

#enumeratorsObject



817
818
819
# File 'lib/adlint/cc1/type.rb', line 817

def enumerators
  []
end

#explicitly_signed?Boolean

Returns:

  • (Boolean)


801
802
803
# File 'lib/adlint/cc1/type.rb', line 801

def explicitly_signed?
  false
end

#floating?Boolean

Returns:

  • (Boolean)


729
730
731
# File 'lib/adlint/cc1/type.rb', line 729

def floating?
  false
end

#function?Boolean

Returns:

  • (Boolean)


753
754
755
# File 'lib/adlint/cc1/type.rb', line 753

def function?
  false
end

#have_va_list?Boolean

Returns:

  • (Boolean)


805
806
807
# File 'lib/adlint/cc1/type.rb', line 805

def have_va_list?
  false
end

#idObject



661
662
663
# File 'lib/adlint/cc1/type.rb', line 661

def id
  @id ||= TypeId.new(name)
end

#imageObject



665
666
667
# File 'lib/adlint/cc1/type.rb', line 665

def image
  name
end

#impl_lengthObject



825
826
827
# File 'lib/adlint/cc1/type.rb', line 825

def impl_length
  0
end

#incomplete?Boolean

Returns:

  • (Boolean)


701
702
703
# File 'lib/adlint/cc1/type.rb', line 701

def incomplete?
  true
end

#integer?Boolean

Returns:

  • (Boolean)


725
726
727
# File 'lib/adlint/cc1/type.rb', line 725

def integer?
  false
end

#integer_conversion_rankObject



881
882
883
# File 'lib/adlint/cc1/type.rb', line 881

def integer_conversion_rank
  0 # NOTREACHED
end

#integer_promoted_typeObject



885
886
887
# File 'lib/adlint/cc1/type.rb', line 885

def integer_promoted_type
  self # NOTREACHED
end

#lengthObject



821
822
823
# File 'lib/adlint/cc1/type.rb', line 821

def length
  0
end

#locationObject



673
674
675
# File 'lib/adlint/cc1/type.rb', line 673

def location
  nil
end

#maxObject



841
842
843
# File 'lib/adlint/cc1/type.rb', line 841

def max
  0
end

#member_named(name) ⇒ Object



833
834
835
# File 'lib/adlint/cc1/type.rb', line 833

def member_named(name)
  nil
end

#membersObject



829
830
831
# File 'lib/adlint/cc1/type.rb', line 829

def members
  []
end

#minObject



837
838
839
# File 'lib/adlint/cc1/type.rb', line 837

def min
  0
end

#named?Boolean

Returns:

  • (Boolean)


677
678
679
# File 'lib/adlint/cc1/type.rb', line 677

def named?
  false
end

#nil_valueObject



845
846
847
# File 'lib/adlint/cc1/type.rb', line 845

def nil_value
  ScalarValue.of_nil(logical_right_shift?) # NOTREACHED
end

#parameter_typesObject



813
814
815
# File 'lib/adlint/cc1/type.rb', line 813

def parameter_types
  []
end

#parameter_valueObject



861
862
863
# File 'lib/adlint/cc1/type.rb', line 861

def parameter_value
  ScalarValue.of_nil(logical_right_shift?) # NOTREACHED
end

#pointer?Boolean

Returns:

  • (Boolean)


745
746
747
# File 'lib/adlint/cc1/type.rb', line 745

def pointer?
  false
end

#qualified?Boolean

Returns:

  • (Boolean)


749
750
751
# File 'lib/adlint/cc1/type.rb', line 749

def qualified?
  false
end

#real_typeObject



689
690
691
# File 'lib/adlint/cc1/type.rb', line 689

def real_type
  self
end

#restrict?Boolean

Returns:

  • (Boolean)


789
790
791
# File 'lib/adlint/cc1/type.rb', line 789

def restrict?
  false
end

#return_typeObject



809
810
811
# File 'lib/adlint/cc1/type.rb', line 809

def return_type
  self
end

#return_valueObject



865
866
867
# File 'lib/adlint/cc1/type.rb', line 865

def return_value
  ScalarValue.of_nil(logical_right_shift?) # NOTREACHED
end

#same_as?(type) ⇒ Boolean

Returns:

  • (Boolean)


717
718
719
# File 'lib/adlint/cc1/type.rb', line 717

def same_as?(type)
  false
end

#scalar?Boolean

Returns:

  • (Boolean)


721
722
723
# File 'lib/adlint/cc1/type.rb', line 721

def scalar?
  false
end

#signed?Boolean

Returns:

  • (Boolean)


797
798
799
# File 'lib/adlint/cc1/type.rb', line 797

def signed?
  false
end

#standard?Boolean

Returns:

  • (Boolean)


769
770
771
# File 'lib/adlint/cc1/type.rb', line 769

def standard?
  false
end

#struct?Boolean

Returns:

  • (Boolean)


737
738
739
# File 'lib/adlint/cc1/type.rb', line 737

def struct?
  false
end

#undeclared?Boolean

Returns:

  • (Boolean)


773
774
775
# File 'lib/adlint/cc1/type.rb', line 773

def undeclared?
  true
end

#undefined_valueObject



857
858
859
# File 'lib/adlint/cc1/type.rb', line 857

def undefined_value
  ScalarValue.of_nil(logical_right_shift?) # NOTREACHED
end

#union?Boolean

Returns:

  • (Boolean)


741
742
743
# File 'lib/adlint/cc1/type.rb', line 741

def union?
  false
end

#unqualifyObject



697
698
699
# File 'lib/adlint/cc1/type.rb', line 697

def unqualify
  self
end

#unresolved?Boolean

Returns:

  • (Boolean)


777
778
779
# File 'lib/adlint/cc1/type.rb', line 777

def unresolved?
  false
end

#user?Boolean

Returns:

  • (Boolean)


761
762
763
# File 'lib/adlint/cc1/type.rb', line 761

def user?
  false
end

#void?Boolean

Returns:

  • (Boolean)


765
766
767
# File 'lib/adlint/cc1/type.rb', line 765

def void?
  false
end

#volatile?Boolean

Returns:

  • (Boolean)


785
786
787
# File 'lib/adlint/cc1/type.rb', line 785

def volatile?
  false
end

#zero_valueObject



849
850
851
# File 'lib/adlint/cc1/type.rb', line 849

def zero_value
  ScalarValue.of_nil(logical_right_shift?) # NOTREACHED
end