Lint Utils.cpp YGLayout.cpp YGNode.cpp Yoga-internal.h

Summary:
@public

Auto-fixes formatting of YGLayout.cpp YGNode.cpp Yoga-internal.h

Reviewed By: astreet

Differential Revision: D8875514

fbshipit-source-id: 38d709831349c4ad015f20451421aea89fc6f007
This commit is contained in:
David Aurelio
2018-07-18 00:57:52 -07:00
committed by Facebook Github Bot
parent 896cfbdfde
commit 1b32c4f054
4 changed files with 26 additions and 28 deletions

View File

@@ -1,10 +1,10 @@
/** /*
* Copyright (c) 2014-present, Facebook, Inc. * Copyright (c) 2014-present, Facebook, Inc.
* *
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the LICENSE
* LICENSE file in the root directory of this source tree. * file in the root directory of this source tree.
*
*/ */
#include "Utils.h" #include "Utils.h"
YGFlexDirection YGFlexDirectionCross( YGFlexDirection YGFlexDirectionCross(

View File

@@ -1,10 +1,10 @@
/** /*
* Copyright (c) 2014-present, Facebook, Inc. * Copyright (c) 2014-present, Facebook, Inc.
* *
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the LICENSE
* LICENSE file in the root directory of this source tree. * file in the root directory of this source tree.
*
*/ */
#include "YGLayout.h" #include "YGLayout.h"
#include "Utils.h" #include "Utils.h"

View File

@@ -1,10 +1,10 @@
/** /*
* Copyright (c) 2014-present, Facebook, Inc. * Copyright (c) 2014-present, Facebook, Inc.
* *
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the LICENSE
* LICENSE file in the root directory of this source tree. * file in the root directory of this source tree.
*
*/ */
#include "YGNode.h" #include "YGNode.h"
#include <iostream> #include <iostream>
#include "Utils.h" #include "Utils.h"
@@ -97,8 +97,6 @@ YGFloatOptional YGNode::getMarginForAxis(
// Setters // Setters
void YGNode::setMeasureFunc(YGMeasureFunc measureFunc) { void YGNode::setMeasureFunc(YGMeasureFunc measureFunc) {
if (measureFunc == nullptr) { if (measureFunc == nullptr) {
measure_ = nullptr; measure_ = nullptr;

View File

@@ -1,10 +1,10 @@
/** /*
* Copyright (c) 2014-present, Facebook, Inc. * Copyright (c) 2014-present, Facebook, Inc.
* *
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the LICENSE
* LICENSE file in the root directory of this source tree. * file in the root directory of this source tree.
*
*/ */
#pragma once #pragma once
#include <algorithm> #include <algorithm>
#include <array> #include <array>
@@ -16,7 +16,8 @@ using YGVector = std::vector<YGNodeRef>;
YG_EXTERN_C_BEGIN YG_EXTERN_C_BEGIN
WIN_EXPORT float YGRoundValueToPixelGrid(const float value, WIN_EXPORT float YGRoundValueToPixelGrid(
const float value,
const float pointScaleFactor, const float pointScaleFactor,
const bool forceCeil, const bool forceCeil,
const bool forceFloor); const bool forceFloor);
@@ -87,7 +88,6 @@ struct YGCachedMeasurement {
// layouts should not require more than 16 entries to fit within the cache. // layouts should not require more than 16 entries to fit within the cache.
#define YG_MAX_CACHED_RESULT_COUNT 16 #define YG_MAX_CACHED_RESULT_COUNT 16
static const float kDefaultFlexGrow = 0.0f; static const float kDefaultFlexGrow = 0.0f;
static const float kDefaultFlexShrink = 0.0f; static const float kDefaultFlexShrink = 0.0f;
static const float kWebDefaultFlexShrink = 1.0f; static const float kWebDefaultFlexShrink = 1.0f;