Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++ style enums 16/N: Dimension #39598

Closed
wants to merge 1 commit into from

Conversation

NickGerleman
Copy link
Contributor

Summary:
Replaces all usages of YGDimension with Dimension.

Adds yoga::to_underlying to act like std::to_underlying, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Differential Revision: D49475409

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Sep 22, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49475409

@analysis-bot
Copy link

analysis-bot commented Sep 22, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 16,902,910 -6
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 20,381,657 +3
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: e21b3c8
Branch: main

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49475409

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 26, 2023
Summary:
Pull Request resolved: facebook#39598

X-link: facebook/yoga#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Reviewed By: rshest

Differential Revision: D49475409

fbshipit-source-id: c0f643b2a590ee09264def51da24af224d1bff17
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Sep 26, 2023
Summary:
X-link: facebook/react-native#39598

Pull Request resolved: facebook#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Reviewed By: rshest

Differential Revision: D49475409

fbshipit-source-id: 56688d703cf1149740e3b689d32c8fd24d2b2413
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Sep 26, 2023
Summary:
X-link: facebook/react-native#39598

Pull Request resolved: facebook#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Reviewed By: rshest

Differential Revision: D49475409

fbshipit-source-id: 6c71d79381c1987c1b504dc1de314116788b1d35
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49475409

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 26, 2023
Summary:
Pull Request resolved: facebook#39598

X-link: facebook/yoga#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Reviewed By: rshest

Differential Revision: D49475409

fbshipit-source-id: f268ce2c3e90986559ef3e49d00a5fb122c2ce18
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Sep 28, 2023
Summary:
X-link: facebook/react-native#39598

Pull Request resolved: facebook#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409

fbshipit-source-id: bc8ba256bfcd1e89b0fa1562e282cbc4dab4a7ee
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49475409

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 28, 2023
Summary:
Pull Request resolved: facebook#39598

X-link: facebook/yoga#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409

fbshipit-source-id: 6545a948a90f0d63a00fac20a515d03df8694a1b
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Sep 28, 2023
Summary:
X-link: facebook/react-native#39598

Pull Request resolved: facebook#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409

fbshipit-source-id: 53c25f2e0f58db633e1a78095dc7b8561e9b7921
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49475409

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 28, 2023
Summary:
Pull Request resolved: facebook#39598

X-link: facebook/yoga#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409

fbshipit-source-id: 6aee39d7c23e2a2a23fdced36d1ec5924576e457
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Sep 28, 2023
Summary:
X-link: facebook/react-native#39598

Pull Request resolved: facebook#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409

fbshipit-source-id: c63c4662e63bd7f81369596215ab7b15a0afd051
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49475409

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 28, 2023
Summary:
Pull Request resolved: facebook#39598

X-link: facebook/yoga#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409

fbshipit-source-id: 505d93803baf7680c9f606cc5f7fcff7f0b2c118
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 29, 2023
Summary:

X-link: facebook/yoga#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49475409

NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Sep 29, 2023
Summary:
X-link: facebook/react-native#39598


Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49475409

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 29, 2023
Summary:

X-link: facebook/yoga#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49475409

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 29, 2023
Summary:

X-link: facebook/yoga#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49475409

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 29, 2023
Summary:

X-link: facebook/yoga#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49475409

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49475409

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 29, 2023
Summary:

X-link: facebook/yoga#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 29, 2023
Summary:

X-link: facebook/yoga#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49475409

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 29, 2023
Summary:

X-link: facebook/yoga#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49475409

Summary:

X-link: facebook/yoga#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49475409

@github-actions
Copy link

Warnings
⚠️ One hour and a half have passed and the E2E jobs haven't finished yet.

Generated by 🚫 dangerJS against bc949b0

facebook-github-bot pushed a commit to facebook/yoga that referenced this pull request Sep 29, 2023
Summary:
X-link: facebook/react-native#39598

Pull Request resolved: #1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409

fbshipit-source-id: 7d4c31e8a84485baea0dab50b5cf16b86769fa07
@github-actions
Copy link

This pull request was successfully merged by @NickGerleman in 5be6f49.

When will my fix make it into a release? | Upcoming Releases

@github-actions github-actions bot added the Merged This PR has been merged. label Sep 29, 2023
facebook-github-bot pushed a commit to facebook/litho that referenced this pull request Sep 29, 2023
Summary:
X-link: facebook/react-native#39598

X-link: facebook/yoga#1403

Replaces all usages of YGDimension with Dimension.

Adds `yoga::to_underlying` to act like `std::to_underlying`, added in C++ 23.

This enum is oddly only used internally, and is never an input to the public API, but it handled as any other public generated enum. Potentially some more cleanup to do there.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D49475409

fbshipit-source-id: 7d4c31e8a84485baea0dab50b5cf16b86769fa07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants