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:
parent
7e3aad4e17
commit
fe2b6fac24
29 changed files with 93 additions and 36 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue