From a8aeb53c4d02af93452f78e14771a8badcabef8a Mon Sep 17 00:00:00 2001 From: Patryk Ozga Date: Wed, 10 May 2023 11:23:43 -0700 Subject: [PATCH] remove extra semis from arfx/atlas/modules and deps (#21) Summary: Pull Request resolved: https://github.com/facebook/igl/pull/21 Reviewed By: nlutsenko Differential Revision: D45722118 fbshipit-source-id: 64ffe79c092794f4529f9e4a85fa1055541436c7 --- .../ReactCommon/yoga/yoga/YGNode.cpp | 2 +- .../ReactCommon/yoga/yoga/Yoga.cpp | 32 +++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/packages/react-native/ReactCommon/yoga/yoga/YGNode.cpp b/packages/react-native/ReactCommon/yoga/yoga/YGNode.cpp index 4c572e8f33ceeb..cd323b54122ee9 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/YGNode.cpp +++ b/packages/react-native/ReactCommon/yoga/yoga/YGNode.cpp @@ -21,7 +21,7 @@ YGNode::YGNode(const YGConfigRef config) : config_{config} { if (config->useWebDefaults()) { useWebDefaults(); } -}; +} YGNode::YGNode(YGNode&& node) { context_ = node.context_; diff --git a/packages/react-native/ReactCommon/yoga/yoga/Yoga.cpp b/packages/react-native/ReactCommon/yoga/yoga/Yoga.cpp index 8e2fdb4de56743..11a98a8b27079c 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/Yoga.cpp +++ b/packages/react-native/ReactCommon/yoga/yoga/Yoga.cpp @@ -841,7 +841,7 @@ YOGA_EXPORT void YGNodeStyleSetMinWidthPercent( } YOGA_EXPORT YGValue YGNodeStyleGetMinWidth(const YGNodeConstRef node) { return node->getStyle().minDimensions()[YGDimensionWidth]; -}; +} YOGA_EXPORT void YGNodeStyleSetMinHeight( const YGNodeRef node, @@ -859,7 +859,7 @@ YOGA_EXPORT void YGNodeStyleSetMinHeightPercent( } YOGA_EXPORT YGValue YGNodeStyleGetMinHeight(const YGNodeConstRef node) { return node->getStyle().minDimensions()[YGDimensionHeight]; -}; +} YOGA_EXPORT void YGNodeStyleSetMaxWidth( const YGNodeRef node, @@ -877,7 +877,7 @@ YOGA_EXPORT void YGNodeStyleSetMaxWidthPercent( } YOGA_EXPORT YGValue YGNodeStyleGetMaxWidth(const YGNodeConstRef node) { return node->getStyle().maxDimensions()[YGDimensionWidth]; -}; +} YOGA_EXPORT void YGNodeStyleSetMaxHeight( const YGNodeRef node, @@ -895,7 +895,7 @@ YOGA_EXPORT void YGNodeStyleSetMaxHeightPercent( } YOGA_EXPORT YGValue YGNodeStyleGetMaxHeight(const YGNodeConstRef node) { return node->getStyle().maxDimensions()[YGDimensionHeight]; -}; +} #define YG_NODE_LAYOUT_PROPERTY_IMPL(type, name, instanceName) \ YOGA_EXPORT type YGNodeLayoutGet##name(const YGNodeRef node) { \ @@ -929,18 +929,18 @@ YOGA_EXPORT YGValue YGNodeStyleGetMaxHeight(const YGNodeConstRef node) { return node->getLayout().instanceName[edge]; \ } -YG_NODE_LAYOUT_PROPERTY_IMPL(float, Left, position[YGEdgeLeft]); -YG_NODE_LAYOUT_PROPERTY_IMPL(float, Top, position[YGEdgeTop]); -YG_NODE_LAYOUT_PROPERTY_IMPL(float, Right, position[YGEdgeRight]); -YG_NODE_LAYOUT_PROPERTY_IMPL(float, Bottom, position[YGEdgeBottom]); -YG_NODE_LAYOUT_PROPERTY_IMPL(float, Width, dimensions[YGDimensionWidth]); -YG_NODE_LAYOUT_PROPERTY_IMPL(float, Height, dimensions[YGDimensionHeight]); -YG_NODE_LAYOUT_PROPERTY_IMPL(YGDirection, Direction, direction()); -YG_NODE_LAYOUT_PROPERTY_IMPL(bool, HadOverflow, hadOverflow()); - -YG_NODE_LAYOUT_RESOLVED_PROPERTY_IMPL(float, Margin, margin); -YG_NODE_LAYOUT_RESOLVED_PROPERTY_IMPL(float, Border, border); -YG_NODE_LAYOUT_RESOLVED_PROPERTY_IMPL(float, Padding, padding); +YG_NODE_LAYOUT_PROPERTY_IMPL(float, Left, position[YGEdgeLeft]) +YG_NODE_LAYOUT_PROPERTY_IMPL(float, Top, position[YGEdgeTop]) +YG_NODE_LAYOUT_PROPERTY_IMPL(float, Right, position[YGEdgeRight]) +YG_NODE_LAYOUT_PROPERTY_IMPL(float, Bottom, position[YGEdgeBottom]) +YG_NODE_LAYOUT_PROPERTY_IMPL(float, Width, dimensions[YGDimensionWidth]) +YG_NODE_LAYOUT_PROPERTY_IMPL(float, Height, dimensions[YGDimensionHeight]) +YG_NODE_LAYOUT_PROPERTY_IMPL(YGDirection, Direction, direction()) +YG_NODE_LAYOUT_PROPERTY_IMPL(bool, HadOverflow, hadOverflow()) + +YG_NODE_LAYOUT_RESOLVED_PROPERTY_IMPL(float, Margin, margin) +YG_NODE_LAYOUT_RESOLVED_PROPERTY_IMPL(float, Border, border) +YG_NODE_LAYOUT_RESOLVED_PROPERTY_IMPL(float, Padding, padding) std::atomic gCurrentGenerationCount(0);