google / google/autocxx

Methods called `<type name><integer>` will be interpreted as constructors

Open
#995 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
2.6k
Forks
175
PR merge metrics
No merged PRs in 30d

Description

In `fun/mod.rs` we look for an integer suffix to the type name, and if it's there, we assume it's a constructor.

We might need more metadata from `autocxx-bindgen` to do better.

Contributor guide

Open the contributing guide

Research direction

Start in fun/mod.rs, where integer suffixes on type names are used to identify constructors. Then inspect the metadata provided by autocxx-bindgen to determine whether it can distinguish these methods more reliably. Done means methods named with a type name followed by an integer are no longer incorrectly interpreted as constructors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, rust
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.