| 1310 | } |
| 1311 | |
| 1312 | void |
| 1313 | Variable::find_pointer_fields(vector<const Variable*>& ptr_fields) const |
| 1314 | { |
| 1315 | for (size_t i=0; i<field_vars.size(); i++) { |
| 1316 | if (field_vars[i]->is_pointer()) { |
| 1317 | ptr_fields.push_back(field_vars[i]); |
| 1318 | } |
| 1319 | else if (field_vars[i]->is_aggregate()) { |
| 1320 | field_vars[i]->find_pointer_fields(ptr_fields); |
| 1321 | } |
| 1322 | } |
| 1323 | } |
| 1324 | |
| 1325 | /* a struct field packed after a bit-field could has nondeterministic offset due to incompatible packings between compilers */ |
| 1326 | bool |
no test coverage detected