3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-02 21:36:09 +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

@ -19,13 +19,14 @@ Revision History:
#pragma once
#include "ast/rewriter/var_subst.h"
#include "util/trailing_array.h"
#include "util/map.h"
class cached_var_subst {
struct key {
quantifier * m_qa;
unsigned m_num_bindings;
expr * m_bindings[0];
TRAILING_ARRAY(expr *, m_bindings);
};
struct key_hash_proc {
unsigned operator()(key * k) const {