google / google/autocxx

Support functions with default arguments

Open
#563 0 comments 3 reactions 0 assignees View on GitHub
cpp-feature
Dominant language
Rust
Stars
2.6k
Forks
175
PR merge metrics
No merged PRs in 30d

Description

Currently it is not possible to call the following function

```C++
int addOne(int val=0) { return val + 1; }
```
as
```Rust
add_one()
```
in Rust. The reason for this is that autocxx doesn't understand the default argument value.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating how autocxx handles C++ default arguments while generating Rust bindings. Done means the shown C++ function can be called as `add_one()` from Rust, with coverage for that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, rust
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.