Code formatting: allow short inline methods on one line

Summary:
@public

This allows short methods defined in class declarations to occupy a single line.
The change makes class declarations more readable.

Reviewed By: SidharthGuglani

Differential Revision: D14950012

fbshipit-source-id: 1321949475184181c6cceb86613f730e430763e2
This commit is contained in:
David Aurelio
2019-04-16 07:09:36 -07:00
committed by Facebook Github Bot
parent 3f7d03b443
commit e9bb1efb03
10 changed files with 47 additions and 139 deletions

View File

@@ -20,12 +20,8 @@ struct ConfigCloningTest : public ::testing::Test {
void TearDown() override;
static YGNode clonedNode;
static YGNodeRef cloneNode(YGNodeRef, YGNodeRef, int) {
return &clonedNode;
}
static YGNodeRef doNotClone(YGNodeRef, YGNodeRef, int) {
return nullptr;
}
static YGNodeRef cloneNode(YGNodeRef, YGNodeRef, int) { return &clonedNode; }
static YGNodeRef doNotClone(YGNodeRef, YGNodeRef, int) { return nullptr; }
};
TEST_F(ConfigCloningTest, uses_values_provided_by_cloning_callback) {