Skip to content

Commit c6d6879

Browse files
author
Daniel Kroening
authored
Merge pull request #3773 from tautschnig/deprecation-more
Mark constructors depending on deprecated parent constructors as deprecated
2 parents c0c1fdc + 8c3a381 commit c6d6879

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

src/util/byte_operators.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ Author: Daniel Kroening, [email protected]
2525
class byte_extract_exprt:public binary_exprt
2626
{
2727
public:
28+
DEPRECATED("use byte_extract_exprt(id, op, offset, type) instead")
2829
explicit byte_extract_exprt(irep_idt _id):binary_exprt(_id)
2930
{
3031
}
3132

33+
DEPRECATED("use byte_extract_exprt(id, op, offset, type) instead")
3234
explicit byte_extract_exprt(irep_idt _id, const typet &_type):
3335
binary_exprt(_id, _type)
3436
{

src/util/std_expr.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,7 @@ class plus_exprt:public multi_ary_exprt
10571057
{
10581058
}
10591059

1060+
DEPRECATED("use plus_exprt(lhs, rhs, type) instead")
10601061
plus_exprt(const typet &type) : multi_ary_exprt(ID_plus, type)
10611062
{
10621063
}
@@ -1754,6 +1755,7 @@ class array_exprt : public multi_ary_exprt
17541755
{
17551756
}
17561757

1758+
DEPRECATED("use array_exprt(operands, type) instead")
17571759
explicit array_exprt(const array_typet &_type)
17581760
: multi_ary_exprt(ID_array, _type)
17591761
{
@@ -1789,6 +1791,7 @@ template<> inline bool can_cast_expr<array_exprt>(const exprt &base)
17891791
class array_list_exprt : public multi_ary_exprt
17901792
{
17911793
public:
1794+
DEPRECATED("use array_list_exprt(operands, type) instead")
17921795
explicit array_list_exprt(const array_typet &_type)
17931796
: multi_ary_exprt(ID_array_list, _type)
17941797
{
@@ -1815,6 +1818,7 @@ class vector_exprt : public multi_ary_exprt
18151818
{
18161819
}
18171820

1821+
DEPRECATED("use vector_exprt(operands, type) instead")
18181822
explicit vector_exprt(const vector_typet &_type)
18191823
: multi_ary_exprt(ID_vector, _type)
18201824
{
@@ -1935,6 +1939,7 @@ class struct_exprt : public multi_ary_exprt
19351939
{
19361940
}
19371941

1942+
DEPRECATED("use struct_exprt(component_name, value, type) instead")
19381943
explicit struct_exprt(const typet &_type) : multi_ary_exprt(ID_struct, _type)
19391944
{
19401945
}
@@ -2419,6 +2424,7 @@ inline void validate_expr(const floatbv_typecast_exprt &value)
24192424
class and_exprt:public multi_ary_exprt
24202425
{
24212426
public:
2427+
DEPRECATED("use and_exprt(op, op) instead")
24222428
and_exprt():multi_ary_exprt(ID_and, bool_typet())
24232429
{
24242430
}
@@ -2541,6 +2547,7 @@ inline void validate_expr(const implies_exprt &value)
25412547
class or_exprt:public multi_ary_exprt
25422548
{
25432549
public:
2550+
DEPRECATED("use or_exprt(op, op) instead")
25442551
or_exprt():multi_ary_exprt(ID_or, bool_typet())
25452552
{
25462553
}
@@ -2617,6 +2624,7 @@ template<> inline bool can_cast_expr<or_exprt>(const exprt &base)
26172624
class xor_exprt:public multi_ary_exprt
26182625
{
26192626
public:
2627+
DEPRECATED("use xor_exprt(op, op) instead")
26202628
xor_exprt():multi_ary_exprt(ID_bitxor, bool_typet())
26212629
{
26222630
}
@@ -3347,6 +3355,7 @@ class not_exprt:public unary_exprt
33473355
PRECONDITION(op.type().id()==ID_bool);
33483356
}
33493357

3358+
DEPRECATED("use not_exprt(op) instead")
33503359
not_exprt():unary_exprt(ID_not, bool_typet())
33513360
{
33523361
}
@@ -4900,6 +4909,7 @@ inline void validate_expr(const popcount_exprt &value)
49004909
class cond_exprt : public multi_ary_exprt
49014910
{
49024911
public:
4912+
DEPRECATED("use cond_exprt(operands, type) instead")
49034913
explicit cond_exprt(const typet &_type) : multi_ary_exprt(ID_cond, _type)
49044914
{
49054915
}

src/util/string_expr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ inline const array_string_exprt &to_array_string_expr(const exprt &expr)
114114
class refined_string_exprt : public struct_exprt
115115
{
116116
public:
117+
DEPRECATED("use refined_string_exprt(length, content, type) instead")
117118
refined_string_exprt() : struct_exprt()
118119
{
119120
}

0 commit comments

Comments
 (0)