Skip to content

Commit

Permalink
remove extra semis from arfx/atlas/modules and deps (facebook#21)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: facebook/igl#21

Reviewed By: nlutsenko

Differential Revision: D45722118

fbshipit-source-id: 64ffe79c092794f4529f9e4a85fa1055541436c7
  • Loading branch information
Patryk Ozga authored and facebook-github-bot committed May 10, 2023
1 parent 9aa25e6 commit a8aeb53
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/react-native/ReactCommon/yoga/yoga/YGNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ YGNode::YGNode(const YGConfigRef config) : config_{config} {
if (config->useWebDefaults()) {
useWebDefaults();
}
};
}

YGNode::YGNode(YGNode&& node) {
context_ = node.context_;
Expand Down
32 changes: 16 additions & 16 deletions packages/react-native/ReactCommon/yoga/yoga/Yoga.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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) { \
Expand Down Expand Up @@ -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<uint32_t> gCurrentGenerationCount(0);

Expand Down

0 comments on commit a8aeb53

Please sign in to comment.