Skip to content

Generate correct adapter code for rvalue return types#25

Open
slburson wants to merge 1 commit into
borodust:masterfrom
slburson:rvalue-return-types
Open

Generate correct adapter code for rvalue return types#25
slburson wants to merge 1 commit into
borodust:masterfrom
slburson:rvalue-return-types

Conversation

@slburson

@slburson slburson commented Jun 30, 2026

Copy link
Copy Markdown

The adapter code generated for a function returning an rvalue reference didn't compile. This shows up in even a trivial example, such as:

struct Foo {
    Foo&& mumble();
    Foo& grumble();
};

Foo& foo();

(string= (claw.spec:foreign-entity-name result-type) "void"))
(format stream "~A;" invocation))
(result-type-adapted-from
(let* ((unconsted-result-type-c-name (claw.spec:format-foreign-entity-c-name

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff will be a little more intelligible if you turn on "Hide whitespace".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant