rust-lang / rust-lang/rust-bindgen
Feature request: flag to check that functions return POD?
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 5.3k
- Forks
- 829
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 15
Description
MSVC C++ uses a different calling convention for functions that return non-POD (e.g. types with a constructor). It might be nice to have a flag for this, which emits tests that functions are returning POD?
https://docs.microsoft.com/en-us/cpp/build/return-values-cpp
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by reading the linked MSVC return-values documentation and locating bindgen's flag handling and generated-test entry points; done should mean a defined POD-return check with coverage for the relevant calling-convention cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100