| 353 | } |
| 354 | |
| 355 | std::string exportedName() const { |
| 356 | |
| 357 | // check for explicit name parameter |
| 358 | if (hasParameter(kExportName)) |
| 359 | { |
| 360 | return paramNamed(kExportName).value(); // #nocov |
| 361 | } |
| 362 | // otherwise un-named parameter in the first slot |
| 363 | else if (!params().empty() && params()[0].value().empty()) |
| 364 | { |
| 365 | return params()[0].name(); // #nocov |
| 366 | } |
| 367 | // otherwise the actual function name |
| 368 | { |
| 369 | return function().name(); |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | std::string exportedCppName() const { // #nocov start |
| 374 | std::string name = exportedName(); |
no test coverage detected