| 918 | } |
| 919 | |
| 920 | bool Function::isGeneric() const { |
| 921 | for ( const auto & ann : annotations ) { |
| 922 | if (ann->annotation) { |
| 923 | auto fna = static_cast<FunctionAnnotation*>(ann->annotation); |
| 924 | if (fna->isGeneric()) { |
| 925 | return true; |
| 926 | } |
| 927 | } |
| 928 | } |
| 929 | for ( auto & arg : arguments ) { |
| 930 | if ( arg->type->isAuto() && !arg->init ) { |
| 931 | return true; |
| 932 | } |
| 933 | } |
| 934 | return false; |
| 935 | } |
| 936 | |
| 937 | string Function::getAotArgumentPrefix(ExprCallFunc * call, int argIndex) const { |
| 938 | for ( auto & ann : annotations ) { |
no test coverage detected