| 735 | } |
| 736 | |
| 737 | bool Variable::isCtorInitialized() const { |
| 738 | if ( !init ) { |
| 739 | return false; |
| 740 | } |
| 741 | if ( !type->hasNonTrivialCtor() ) { |
| 742 | return false; |
| 743 | } |
| 744 | if ( init->rtti_isCallFunc() ) { |
| 745 | auto cfun = static_cast<ExprCallFunc*>(init); |
| 746 | if ( cfun->func && cfun->func->isTypeConstructor ) { |
| 747 | return true; |
| 748 | } |
| 749 | } |
| 750 | return false; |
| 751 | } |
| 752 | |
| 753 | // function |
| 754 |
no test coverage detected