////////////////////////////////////////////////////////////////////////// check if field variables exists in this struct ************************************************************************/
| 290 | /* check if field variables exists in this struct |
| 291 | ************************************************************************/ |
| 292 | bool Variable::has_field_var(const Variable* v) const |
| 293 | { |
| 294 | if (type->is_aggregate()) { |
| 295 | const Variable* tmp = v; |
| 296 | while (tmp) { |
| 297 | if (tmp == this) { |
| 298 | return true; |
| 299 | } |
| 300 | tmp = tmp->field_var_of; |
| 301 | } |
| 302 | } |
| 303 | return false; |
| 304 | } |
| 305 | |
| 306 | // return true if the var is inside a packed aggregate, |
| 307 | bool |
nothing calls this directly
no test coverage detected