Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
cf96ccd
Refactor ConvertGenericCallExpr
lucic71 May 23, 2026
1c0fb3a
EmitArgBindings -> EmitHoistedArgs
lucic71 May 23, 2026
e98df0c
Drop default initialization fom CallInfo
lucic71 May 24, 2026
01765d8
Add prefix on param_name from construction
lucic71 May 24, 2026
dba4b3b
Pass CallInfo by rvalue reference
lucic71 May 24, 2026
5c1425d
Reorder CallArg fields by size
lucic71 May 24, 2026
06097f8
Reorder initialization
lucic71 May 24, 2026
27fd2af
Reorder CallInfo fields
lucic71 May 27, 2026
768b308
Use template syntax to declare rules for variadic functions
lucic71 May 25, 2026
60fc170
Add src rules for variadic functions
lucic71 May 27, 2026
08d2cc1
Add Rust rule counterpart
lucic71 May 27, 2026
c85429d
Add C rules for builtin mul overflow
lucic71 May 27, 2026
d2ac848
Read the is_variadic attribute on the other side
lucic71 May 27, 2026
8b98f29
Save CallExpr instead of callee in CallInfo
lucic71 May 27, 2026
91b69ea
Set is_libc_passthrough
lucic71 May 27, 2026
ba997cd
Use correct types for arguments
lucic71 May 27, 2026
108cdb7
Use declared type for each argument in passthrough mode
lucic71 May 27, 2026
f000eb5
Fix code
lucic71 May 27, 2026
70f5880
Missing part of c85429df5caa6474c2a9f1f9f2f5afc632e38ef0
lucic71 May 27, 2026
3bc0b4c
Fix is_libc_passthrough condition
lucic71 Jun 2, 2026
b4219d8
Merge branch 'master' into variadic-call
lucic71 Jun 4, 2026
c68dcee
Re-add paren for variadic arg
lucic71 Jun 4, 2026
680424e
Fix merge artifacts
lucic71 Jun 4, 2026
0c3a442
Add Mapper::IsLibcPassthrough
lucic71 Jun 4, 2026
582d5d3
Replace is_variadic with is_extern
lucic71 Jun 4, 2026
eb19e52
Add var args tests
lucic71 Jun 4, 2026
1736ec5
Delete non-portable test code parts
lucic71 Jun 4, 2026
042eac9
Merge branch 'master' into variadic-call
lucic71 Jun 4, 2026
addc4cd
Clang-format
lucic71 Jun 4, 2026
b513e56
Add safe rules for ioctl and fcntl
lucic71 Jun 22, 2026
4d8530c
Update unistd test expectation
lucic71 Jun 22, 2026
b1052cf
Use va instead of args
lucic71 Jun 22, 2026
e85dcbf
Add is_va_arg attribute in IR
lucic71 Jun 22, 2026
14db663
Consume is_va_arg attr from IR
lucic71 Jun 22, 2026
d45e143
Merge branch 'master' into variadic-call
lucic71 Jun 22, 2026
64c0f83
Update test
lucic71 Jun 22, 2026
0c14f66
Use getEmptyPack instead of creating new pack
lucic71 Jun 22, 2026
c4910dd
Add panic implementation for snpritnf
lucic71 Jun 22, 2026
055988a
Merge branch 'master' into variadic-call
lucic71 Jul 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reorder initialization
  • Loading branch information
lucic71 committed May 27, 2026
commit 06097f8aef0db0d3dbe2cf87c1506cd68a939634
4 changes: 2 additions & 2 deletions cpp2rust/converter/converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1551,14 +1551,14 @@ Converter::CallInfo Converter::CollectCallInfo(clang::CallExpr *expr) {
for (unsigned i = 0; i < num_named_params && i < num_args; ++i) {
auto *arg = expr->getArg(i + arg_begin);
CallArg ca{
.expr = arg,
.kind = Kind::Hoisted,
.param_name = function
? ("_" + function->getParamDecl(i)->getNameAsString())
: ("_arg" + std::to_string(i)),
.param_type = function ? function->getParamDecl(i)->getType()
: proto->getParamType(i),
.expr = arg,
.has_default = function && function->getParamDecl(i)->hasDefaultArg(),
.kind = Kind::Hoisted,
};
bool is_materialize = clang::isa<clang::MaterializeTemporaryExpr>(arg);
if (is_materialize && ca.param_type->isLValueReferenceType()) {
Expand Down