Apply clang-format rules
Summary: @public Formats Yoga's source according to our clang-format configuration Reviewed By: SidharthGuglani Differential Revision: D13596650 fbshipit-source-id: c3722d4eafd63b7596a8b1e85c0197e9d2d6cb7d
This commit is contained in:
committed by
Facebook Github Bot
parent
5ee32fbefc
commit
ab9d06abf5
@@ -63,15 +63,19 @@ static void appendNumberIfNotUndefined(
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
appendNumberIfNotAuto(string& base, const string& key, const YGValue number) {
|
||||
static void appendNumberIfNotAuto(
|
||||
string& base,
|
||||
const string& key,
|
||||
const YGValue number) {
|
||||
if (number.unit != YGUnitAuto) {
|
||||
appendNumberIfNotUndefined(base, key, number);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
appendNumberIfNotZero(string& base, const string& str, const YGValue number) {
|
||||
static void appendNumberIfNotZero(
|
||||
string& base,
|
||||
const string& str,
|
||||
const YGValue number) {
|
||||
if (number.unit == YGUnitAuto) {
|
||||
base.append(str + ": auto; ");
|
||||
} else if (!YGFloatsEqual(number.value, 0)) {
|
||||
|
Reference in New Issue
Block a user