We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cc91f7 commit 600cdfeCopy full SHA for 600cdfe
1 file changed
cpp2rust/converter/converter.cpp
@@ -1363,7 +1363,8 @@ std::optional<std::string> Converter::TryPluginConvert(clang::CallExpr *call) {
1363
1364
void Converter::ConvertVAArgCall(clang::CallExpr *expr) {
1365
if (IsBuiltinVaStart(expr)) {
1366
- StrCat(ToString(expr->getArg(0)->IgnoreImpCasts()), "= VaList::new(args)");
+ StrCat(ToString(expr->getArg(0)->IgnoreImpCasts()),
1367
+ "= VaList::new(__args)");
1368
return;
1369
}
1370
if (IsBuiltinVaEnd(expr)) {
@@ -3295,7 +3296,7 @@ void Converter::ConvertFunctionParameters(clang::FunctionDecl *decl) {
3295
3296
StrCat(token::kComma);
3297
3298
if (decl->isVariadic()) {
- StrCat("args: &[VaArg]", token::kComma);
3299
+ StrCat("__args: &[VaArg]", token::kComma);
3300
3301
in_function_formals_ = false;
3302
0 commit comments