XXX: replace with std::format once it is available in all std-libs
| 3419 | |
| 3420 | // XXX: replace with std::format once it is available in all std-libs |
| 3421 | auto GetSpaces(std::string::size_type offset) |
| 3422 | { |
| 3423 | static const std::string_view spaces{" "sv}; |
| 3424 | |
| 3425 | if(offset >= spaces.size()) { |
| 3426 | return ""sv; |
| 3427 | } else { |
| 3428 | return spaces.substr(0, spaces.size() - offset); |
| 3429 | } |
| 3430 | } |
| 3431 | //----------------------------------------------------------------------------- |
| 3432 | |
| 3433 | void CodeGenerator::InsertArg(const FieldDecl* stmt) |