Skip to content

Commit 8c3a381

Browse files
committed
Mark constructors depending on deprecated parent constructors as deprecated
Removing the deprecated parent constructors would imply compilation failures.
1 parent 49ac569 commit 8c3a381

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
@@ -1046,6 +1046,7 @@ class plus_exprt:public multi_ary_exprt
10461046
{
10471047
}
10481048

1049+
DEPRECATED("use plus_exprt(lhs, rhs, type) instead")
10491050
plus_exprt(const typet &type) : multi_ary_exprt(ID_plus, type)
10501051
{
10511052
}
@@ -1743,6 +1744,7 @@ class array_exprt : public multi_ary_exprt
17431744
{
17441745
}
17451746

1747+
DEPRECATED("use array_exprt(operands, type) instead")
17461748
explicit array_exprt(const array_typet &_type)
17471749
: multi_ary_exprt(ID_array, _type)
17481750
{
@@ -1778,6 +1780,7 @@ template<> inline bool can_cast_expr<array_exprt>(const exprt &base)
17781780
class array_list_exprt : public multi_ary_exprt
17791781
{
17801782
public:
1783+
DEPRECATED("use array_list_exprt(operands, type) instead")
17811784
explicit array_list_exprt(const array_typet &_type)
17821785
: multi_ary_exprt(ID_array_list, _type)
17831786
{
@@ -1804,6 +1807,7 @@ class vector_exprt : public multi_ary_exprt
18041807
{
18051808
}
18061809

1810+
DEPRECATED("use vector_exprt(operands, type) instead")
18071811
explicit vector_exprt(const vector_typet &_type)
18081812
: multi_ary_exprt(ID_vector, _type)
18091813
{
@@ -1924,6 +1928,7 @@ class struct_exprt : public multi_ary_exprt
19241928
{
19251929
}
19261930

1931+
DEPRECATED("use struct_exprt(component_name, value, type) instead")
19271932
explicit struct_exprt(const typet &_type) : multi_ary_exprt(ID_struct, _type)
19281933
{
19291934
}
@@ -2408,6 +2413,7 @@ inline void validate_expr(const floatbv_typecast_exprt &value)
24082413
class and_exprt:public multi_ary_exprt
24092414
{
24102415
public:
2416+
DEPRECATED("use and_exprt(op, op) instead")
24112417
and_exprt():multi_ary_exprt(ID_and, bool_typet())
24122418
{
24132419
}
@@ -2530,6 +2536,7 @@ inline void validate_expr(const implies_exprt &value)
25302536
class or_exprt:public multi_ary_exprt
25312537
{
25322538
public:
2539+
DEPRECATED("use or_exprt(op, op) instead")
25332540
or_exprt():multi_ary_exprt(ID_or, bool_typet())
25342541
{
25352542
}
@@ -2606,6 +2613,7 @@ template<> inline bool can_cast_expr<or_exprt>(const exprt &base)
26062613
class xor_exprt:public multi_ary_exprt
26072614
{
26082615
public:
2616+
DEPRECATED("use xor_exprt(op, op) instead")
26092617
xor_exprt():multi_ary_exprt(ID_bitxor, bool_typet())
26102618
{
26112619
}
@@ -3336,6 +3344,7 @@ class not_exprt:public unary_exprt
33363344
PRECONDITION(op.type().id()==ID_bool);
33373345
}
33383346

3347+
DEPRECATED("use not_exprt(op) instead")
33393348
not_exprt():unary_exprt(ID_not, bool_typet())
33403349
{
33413350
}
@@ -4889,6 +4898,7 @@ inline void validate_expr(const popcount_exprt &value)
48894898
class cond_exprt : public multi_ary_exprt
48904899
{
48914900
public:
4901+
DEPRECATED("use cond_exprt(operands, type) instead")
48924902
explicit cond_exprt(const typet &_type) : multi_ary_exprt(ID_cond, _type)
48934903
{
48944904
}

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)