| 153 | } |
| 154 | |
| 155 | bool |
| 156 | CVQualifiers::match(const CVQualifiers& qfer) const |
| 157 | { |
| 158 | if (wildcard) { |
| 159 | return true; |
| 160 | } |
| 161 | if (CGOptions::match_exact_qualifiers()) { |
| 162 | return is_consts == qfer.get_consts() && is_volatiles == qfer.get_volatiles(); |
| 163 | } |
| 164 | // return true if both variables are non-pointer (has only one level qualifier) |
| 165 | if (is_consts.size() == qfer.get_consts().size() && is_consts.size()==1) { |
| 166 | assert(is_consts.size() == is_volatiles.size()); |
| 167 | return true; |
| 168 | } |
| 169 | return (!accept_stricter && stricter_than(qfer)) || (accept_stricter && qfer.stricter_than(*this)); |
| 170 | } |
| 171 | |
| 172 | bool |
| 173 | CVQualifiers::match_indirect(const CVQualifiers& qfer) const |
nothing calls this directly
no test coverage detected