Skip to content

Fix declval issues in constructor member initializer list - #1807

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_966766855
Open

Fix declval issues in constructor member initializer list#1807
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_966766855

Conversation

@copybara-service

Copy link
Copy Markdown

Fix declval issues in constructor member initializer list

This changes BodyVisitor to skip trying to evaluate expressions in contexts where the expression should never be evaluated, which lead to very strange indirect error messages as justifications for why Crubit couldn't bind to some things like constructors.

You can see in the golden diff that the Clone impl correctly generates now.

@google-cla

google-cla Bot commented Aug 18, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

This changes `BodyVisitor` to skip trying to evaluate expressions in contexts where the expression should never be evaluated, which lead to very strange indirect error messages as justifications for why Crubit couldn't bind to some things like constructors.

You can see in the golden diff that the `Clone` impl correctly generates now.

PiperOrigin-RevId: 966766855
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.

0 participants