* check if the indirect depth of type matches qualifier size */
| 568 | * check if the indirect depth of type matches qualifier size |
| 569 | */ |
| 570 | bool |
| 571 | CVQualifiers::sanity_check(const Type* t) const |
| 572 | { |
| 573 | assert(t); |
| 574 | int level = t->get_indirect_level(); |
| 575 | assert(level >= 0); |
| 576 | return wildcard || (is_consts.size() == is_volatiles.size() && (static_cast<size_t>(level)+1) == is_consts.size()); |
| 577 | } |
| 578 | |
| 579 | void |
| 580 | CVQualifiers::output_qualified_type(const Type* t, std::ostream &out) const |
nothing calls this directly
no test coverage detected