File tree Expand file tree Collapse file tree 2 files changed +4
-24
lines changed Expand file tree Collapse file tree 2 files changed +4
-24
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,15 @@ inline bool is_c_int_derivate(const typet &type)
49
49
// / of the pointer has been a char type in the c program.
50
50
inline bool is_c_char_pointer (const typet &type)
51
51
{
52
- return is_pointer ( type) && is_c_char (type.subtype ());
52
+ return type. id () == ID_pointer && is_c_char (type.subtype ());
53
53
}
54
54
55
55
// / This function checks, whether type is a pointer and the target type
56
56
// / has been some kind of int type in the c program.
57
57
// / is_c_int_derivate answers is used for checking the int type.
58
58
inline bool is_c_int_derivate_pointer (const typet &type)
59
59
{
60
- return is_pointer ( type) && is_c_int_derivate (type.subtype ());
60
+ return type. id () == ID_pointer && is_c_int_derivate (type.subtype ());
61
61
}
62
62
63
63
// / This function checks, whether the type
@@ -73,7 +73,7 @@ inline bool is_c_enum(const typet &type)
73
73
// / \param c_enum the enum type memeber_name is supposed to be part of.
74
74
// / \return value a constant, that could be assigned as value for an expression
75
75
// / with type c_enum.
76
- constant_exprt convert_memeber_name_to_enum_value (
76
+ constant_exprt convert_member_name_to_enum_value (
77
77
const std::string &member_name,
78
78
const c_enum_typet &c_enum)
79
79
{
Original file line number Diff line number Diff line change @@ -313,13 +313,6 @@ inline bool can_cast_type<struct_typet>(const typet &type)
313
313
return type.id () == ID_struct;
314
314
}
315
315
316
- // / This method tests,
317
- // / if the given typet is a struct
318
- inline bool is_struct (const typet &type)
319
- {
320
- return type.id () == ID_struct;
321
- }
322
-
323
316
// / \brief Cast a typet to a \ref struct_typet
324
317
// /
325
318
// / This is an unchecked conversion. \a type must be known to be \ref
@@ -1015,12 +1008,6 @@ class array_typet:public type_with_subtypet
1015
1008
return size ().is_nil ();
1016
1009
}
1017
1010
};
1018
- // / This method tests,
1019
- // / if the given typet is an array_typet
1020
- inline bool is_array (const typet &type)
1021
- {
1022
- return type.id () == ID_array;
1023
- }
1024
1011
1025
1012
// / Check whether a reference to a typet is a \ref array_typet.
1026
1013
// / \param type: Source type.
@@ -1569,18 +1556,11 @@ inline pointer_typet &to_pointer_type(typet &type)
1569
1556
return static_cast <pointer_typet &>(type);
1570
1557
}
1571
1558
1572
- // / This method tests,
1573
- // / if the given typet is a pointer.
1574
- inline bool is_pointer (const typet &type)
1575
- {
1576
- return type.id () == ID_pointer;
1577
- }
1578
-
1579
1559
// / This method tests,
1580
1560
// / if the given typet is a pointer of type void.
1581
1561
inline bool is_void_pointer (const typet &type)
1582
1562
{
1583
- return is_pointer ( type) && type.subtype ().id () == ID_empty;
1563
+ return type. id () == ID_pointer && type.subtype ().id () == ID_empty;
1584
1564
}
1585
1565
1586
1566
// / The reference type
You can’t perform that action at this time.
0 commit comments