Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@matanlurey
Copy link
Contributor

Some discussion here: https://discord.com/channels/608014603317936148/1175215129135153202.

In short, *<std::optional> is undefined behavior. After talking to @bdero we are considering that this should never happen.

I thought of a few different approaches here, none of them are great. However given that this class is used quite minimally, this seems to jive with similar patterns we're using in scene/scene_context.


Feel free to push back or suggest alternatives, mostly proposing this to get brain juices flowing.

@matanlurey matanlurey added the test: all See https://github.com/flutter/engine/blob/main/docs/ci/Engine-pre-submits-and-post-submits.md label Nov 18, 2023
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie or stuartmorgan on the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

auto-submit bot pushed a commit that referenced this pull request Nov 18, 2023
I moved [`scene_context.h` to another PR](#48194), and here are the boring remains.
@matanlurey
Copy link
Contributor Author

@bdero @jonahwilliams Friendly ping :)

Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@bdero bdero left a comment

Choose a reason for hiding this comment

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

Also LGTM :) Thanks.

@Hixie
Copy link
Contributor

Hixie commented Nov 21, 2023

test-exempt: fixing a disabled lint so that we can enable it

@matanlurey matanlurey merged commit 3348fb0 into flutter:main Nov 21, 2023
@matanlurey matanlurey deleted the impeller-scene-context-desc-deref branch November 21, 2023 00:43
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

e: impeller test: all See https://github.com/flutter/engine/blob/main/docs/ci/Engine-pre-submits-and-post-submits.md

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants