rust-lang / rust-lang/rust-bindgen

Feature request: flag to check that functions return POD?

Open
#1,337 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.