| 271 | } |
| 272 | |
| 273 | bool Structure::isCompatibleCast ( const Structure & castS ) const { |
| 274 | if (this == &castS) { |
| 275 | return true; |
| 276 | } |
| 277 | auto *parentS = castS.parent; |
| 278 | while ( parentS ) { |
| 279 | if ( parentS == this ) { |
| 280 | return true; |
| 281 | } |
| 282 | parentS = parentS->parent; |
| 283 | } |
| 284 | return false; |
| 285 | } |
| 286 | |
| 287 | bool Structure::hasAnyInitializers() const { |
| 288 | for ( const auto & fd : fields ) { |
no outgoing calls
no test coverage detected