| 82 | defaultTempFn ( bool args, bool impl, bool result, bool econst ) |
| 83 | : tempArgs(args), implicitArgs(impl), tempResult(result), explicitConstArgs(econst) {} |
| 84 | ___noinline bool operator () ( Function * fn ) { |
| 85 | if ( tempArgs || implicitArgs ) { |
| 86 | for ( auto & arg : fn->arguments ) { |
| 87 | if ( arg->type->isTempType() ) { |
| 88 | arg->type->temporary = tempArgs; |
| 89 | arg->type->implicit = implicitArgs; |
| 90 | arg->type->explicitConst = explicitConstArgs; |
| 91 | } |
| 92 | } |
| 93 | } |
| 94 | if ( tempResult ) { |
| 95 | if ( fn->result->isTempType() ) { |
| 96 | fn->result->temporary = true; |
| 97 | } |
| 98 | } |
| 99 | return true; |
| 100 | } |
| 101 | bool tempArgs = false; |
| 102 | bool implicitArgs = true; |
| 103 | bool tempResult = false; |
nothing calls this directly
no test coverage detected