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 6/N: PrintOptions #39449

Closed
wants to merge 6 commits into from

Conversation

NickGerleman
Copy link
Contributor

Summary: This converts usages of YGPrintOptions to PrintOptions

Differential Revision: D49270929

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

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

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

Pull Request resolved: facebook#1385

This converts usages of YGPrintOptions to PrintOptions

Differential Revision: D49270929

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

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

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

X-link: facebook/yoga#1385

This converts usages of YGPrintOptions to PrintOptions

Differential Revision: D49270929

fbshipit-source-id: 9385350dc71cdf4a354b9691897262910e133878
NickGerleman added a commit to NickGerleman/yoga that referenced this pull request Sep 14, 2023
Summary:
X-link: facebook/react-native#39449

Pull Request resolved: facebook#1385

This converts usages of YGPrintOptions to PrintOptions

Differential Revision: D49270929

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

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

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

X-link: facebook/yoga#1385

This converts usages of YGPrintOptions to PrintOptions

Differential Revision: D49270929

fbshipit-source-id: 8b4c55a822bd1e412c7d670da45684eea3afd810
@analysis-bot
Copy link

analysis-bot commented Sep 14, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,329,275 +30
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 9,568,038 +28
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 598b7ed
Branch: main

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

Pull Request resolved: facebook#1385

This converts usages of YGPrintOptions to PrintOptions

Reviewed By: rozele

Differential Revision: D49270929

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

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

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

X-link: facebook/yoga#1385

This converts usages of YGPrintOptions to PrintOptions

Reviewed By: rozele

Differential Revision: D49270929

fbshipit-source-id: ea01bfa3b46b3868ac1c8d74d707f4453ffa420b
NickGerleman and others added 6 commits September 14, 2023 20:50
Summary:
This adds logic to the enum generator to generate C++ style scoped enums.

This gives us a few nicities over C enums, even if both must exist:
1. We can add types and keep unsgined enums directly in bitfields
2. Style/readability
3. Avoiding implicit int conversion

Differential Revision: D49267996

fbshipit-source-id: 12910d52132e59a653e06e7671e509d3d81ca797
Differential Revision: D49269117

fbshipit-source-id: da0f8eb39e4a9cbc85bdfb192c4575dda6a4fab4
Differential Revision: D49269440

fbshipit-source-id: fbfe8292764b659ccec362be0e311fa6db8b8ed2
Summary: This converts usages of YGErrata to Errata

Differential Revision: D49270354

fbshipit-source-id: 3e6fdbd7e571b079a00a22c0c31db2654bbc4cca
Summary: This converts usages of YGLogLevel to LogLevel

Differential Revision: D49270695

fbshipit-source-id: 5295e49dd1495691778e46329139ee8c7f978c0b
Summary:
Pull Request resolved: facebook#39449

X-link: facebook/yoga#1385

This converts usages of YGPrintOptions to PrintOptions

Reviewed By: rozele

Differential Revision: D49270929

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

Pull Request resolved: facebook#1385

This converts usages of YGPrintOptions to PrintOptions

Reviewed By: rozele

Differential Revision: D49270929

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

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

@github-actions
Copy link

Warnings
⚠️

E2E tests for ci/circleci: test_e2e_ios failed with errors. See the logs for details

⚠️

E2E tests for ci/circleci: test_e2e_ios failed with errors. See the logs for details

Generated by 🚫 dangerJS against 8d1e892

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

Pull Request resolved: #1385

This converts usages of YGPrintOptions to PrintOptions

Reviewed By: rozele

Differential Revision: D49270929

fbshipit-source-id: ad98dd25865138808d25b48eff22fbe81ccdd352
facebook-github-bot pushed a commit to facebook/litho that referenced this pull request Sep 15, 2023
Summary:
X-link: facebook/react-native#39449

X-link: facebook/yoga#1385

This converts usages of YGPrintOptions to PrintOptions

Reviewed By: rozele

Differential Revision: D49270929

fbshipit-source-id: ad98dd25865138808d25b48eff22fbe81ccdd352
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Sep 15, 2023
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 094046c.

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