We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba997cd commit 108cdb7Copy full SHA for 108cdb7
1 file changed
cpp2rust/converter/converter.cpp
@@ -1623,7 +1623,9 @@ void Converter::EmitArgList(const CallInfo &info) {
1623
using Kind = CallArg::Kind;
1624
PushParen call_args(*this);
1625
1626
- for (const auto &ca : info.args) {
+ for (unsigned i = 0; i < info.args.size(); i++) {
1627
+ const auto &ca = info.args[i];
1628
+
1629
if (ca.has_default) {
1630
StrCat("Some");
1631
}
@@ -1639,6 +1641,9 @@ void Converter::EmitArgList(const CallInfo &info) {
1639
1641
break;
1640
1642
case Kind::Inline:
1643
ConvertParamTy(ca.param_type, ca.expr);
1644
+ if (info.is_libc_passthrough) {
1645
+ StrCat(std::format("as {}", Mapper::GetParamType(callee, i)));
1646
+ }
1647
1648
1649
0 commit comments