| 1425 | } |
| 1426 | |
| 1427 | static void gen_array(AST_Array* arr, const std::string& type, const std::string& elem, const std::string& ind = "") |
| 1428 | { |
| 1429 | std::string array; |
| 1430 | std::ostringstream bounds; |
| 1431 | for (ACE_CDR::ULong dim = arr->n_dims(); dim; --dim) { |
| 1432 | array += "std::array<"; |
| 1433 | bounds << ", " << arr->dims()[dim - 1]->ev()->u.ulval << '>'; |
| 1434 | } |
| 1435 | be_global->add_include("<array>", BE_GlobalData::STREAM_LANG_H); |
| 1436 | be_global->lang_header_ << ind << "using " << type << " = " << array << elem << bounds.str() << ";\n"; |
| 1437 | } |
| 1438 | |
| 1439 | void gen_array(UTL_ScopedName* tdname, AST_Array* arr) |
| 1440 | { |
nothing calls this directly
no test coverage detected