File tree Expand file tree Collapse file tree 5 files changed +15
-13
lines changed Expand file tree Collapse file tree 5 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -464,8 +464,7 @@ BigInt::BigInt (BigInt const &y)
464
464
memcpy (digit, y.digit , length * sizeof (onedig_t ));
465
465
}
466
466
467
- BigInt::BigInt (BigInt &&y)
468
- : BigInt()
467
+ BigInt::BigInt (BigInt &&y) noexcept : BigInt()
469
468
{
470
469
swap (y);
471
470
}
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ public:
168
168
BigInt (llong_t ) _fast;
169
169
BigInt (ullong_t ) _fast;
170
170
BigInt (BigInt const &) _fast;
171
- BigInt (BigInt &&) _fast;
171
+ BigInt (BigInt &&) noexcept _fast;
172
172
BigInt (char const *, onedig_t = 10 ) _fast;
173
173
174
174
BigInt &operator = (BigInt const &) _fast;
Original file line number Diff line number Diff line change @@ -36,10 +36,11 @@ class dstringt final
36
36
{
37
37
public:
38
38
// this is safe for static objects
39
- #ifdef __GNUC__
39
+ #ifdef __GNUC__
40
40
constexpr
41
- #endif
42
- dstringt ():no(0 )
41
+ #endif
42
+ dstringt () noexcept
43
+ : no(0 )
43
44
{
44
45
}
45
46
Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ class exprt:public irept
57
57
typedef std::vector<exprt> operandst;
58
58
59
59
// constructors
60
- exprt () { }
60
+ exprt () noexcept
61
+ {
62
+ }
61
63
explicit exprt (const irep_idt &_id):irept(_id) { }
62
64
exprt (const irep_idt &_id, const typet &_type):irept(_id)
63
65
{
Original file line number Diff line number Diff line change @@ -172,22 +172,22 @@ class irept
172
172
bool is_nil () const { return id ()==ID_nil; }
173
173
bool is_not_nil () const { return id ()!=ID_nil; }
174
174
175
- explicit irept (const irep_idt &_id)
175
+ explicit irept (const irep_idt &_id) noexcept
176
176
#ifdef SHARING
177
- :data(&empty_d)
177
+ : data(&empty_d)
178
178
#endif
179
179
{
180
180
id (_id);
181
181
}
182
182
183
183
#ifdef SHARING
184
184
// constructor for blank irep
185
- irept (): data(&empty_d)
185
+ irept () noexcept : data(&empty_d)
186
186
{
187
187
}
188
188
189
189
// copy constructor
190
- irept (const irept &irep): data(irep.data)
190
+ irept (const irept &irep) noexcept : data(irep.data)
191
191
{
192
192
if (data!=&empty_d)
193
193
{
@@ -204,7 +204,7 @@ class irept
204
204
// Copy from rvalue reference.
205
205
// Note that this does avoid a branch compared to the
206
206
// standard copy constructor above.
207
- irept (irept &&irep): data(irep.data)
207
+ irept (irept &&irep) noexcept : data(irep.data)
208
208
{
209
209
#ifdef IREP_DEBUG
210
210
std::cout << " COPY MOVE\n " ;
@@ -234,7 +234,7 @@ class irept
234
234
#ifdef USE_MOVE
235
235
// Note that the move assignment operator does avoid
236
236
// three branches compared to standard operator above.
237
- irept &operator =(irept &&irep)
237
+ irept &operator =(irept &&irep) noexcept
238
238
{
239
239
#ifdef IREP_DEBUG
240
240
std::cout << " ASSIGN MOVE\n " ;
You can’t perform that action at this time.
0 commit comments