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

@@ -56,9 +56,7 @@ public:
logger_.withContext = logger;
loggerUsesContext_ = true;
}
void setLogger(std::nullptr_t) {
setLogger(YGLogger{nullptr});
}
void setLogger(std::nullptr_t) { setLogger(YGLogger{nullptr}); }
YGNodeRef cloneNode(
YGNodeRef node,