3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-06-19 23:26:30 +00:00

Introduce (and use) a macro for the "trailing array" idiom, so we can disable warnings for this when they're in force.

This commit is contained in:
David Detlefs 2026-06-08 11:25:43 -07:00
parent 7e3aad4e17
commit fe2b6fac24
29 changed files with 93 additions and 36 deletions

View file

@ -17,6 +17,7 @@ Notes:
--*/
#include "math/polynomial/polynomial.h"
#include "util/trailing_array.h"
#include "util/vector.h"
#include "util/chashtable.h"
#include "util/small_object_allocator.h"
@ -160,7 +161,7 @@ namespace polynomial {
unsigned m_total_degree; //!< total degree of the monomial
unsigned m_size; //!< number of powers
unsigned m_hash;
power m_powers[0];
TRAILING_ARRAY(power, m_powers);
friend class tmp_monomial;
void sort() {