Commit 57fa26c8 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Fix weird formatting of break after switch-case-close-brace

Summary: [Folly] Fix weird formatting of `break` after switch-case-close-brace.

Reviewed By: Orvid

Differential Revision: D9796573

fbshipit-source-id: 5f392e9fcf33be24acb9fc7a79bdf9ca846fd33c
parent 3601ea86
...@@ -221,14 +221,14 @@ class FcCustomExample : public FlatCombining< ...@@ -221,14 +221,14 @@ class FcCustomExample : public FlatCombining<
// custom combined op processing - overrides FlatCombining::combinedOp(Req&) // custom combined op processing - overrides FlatCombining::combinedOp(Req&)
void combinedOp(Req& req) { void combinedOp(Req& req) {
switch (req.getType()) { switch (req.getType()) {
case Req::Type::ADD: { case Req::Type::ADD:
data_.add(req.getVal()); data_.add(req.getVal());
} break; return;
case Req::Type::FETCHADD: { case Req::Type::FETCHADD:
req.setRes(data_.fetchAdd(req.getVal())); req.setRes(data_.fetchAdd(req.getVal()));
} break; return;
default: { assert(false); }
} }
assume_unreachable();
} }
private: private:
......
...@@ -299,7 +299,8 @@ static uint64_t test(std::string name, Exp exp, uint64_t base) { ...@@ -299,7 +299,8 @@ static uint64_t test(std::string name, Exp exp, uint64_t base) {
} }
}; };
dur = run_once(pq, fn); dur = run_once(pq, fn);
} break; break;
}
case FCNonBlock: { case FCNonBlock: {
FCPQ pq; FCPQ pq;
auto fn = [&](uint32_t tid) { auto fn = [&](uint32_t tid) {
...@@ -312,7 +313,8 @@ static uint64_t test(std::string name, Exp exp, uint64_t base) { ...@@ -312,7 +313,8 @@ static uint64_t test(std::string name, Exp exp, uint64_t base) {
} }
}; };
dur = run_once(pq, fn); dur = run_once(pq, fn);
} break; break;
}
case FCBlock: { case FCBlock: {
FCPQ pq; FCPQ pq;
auto fn = [&](uint32_t tid) { auto fn = [&](uint32_t tid) {
...@@ -325,7 +327,8 @@ static uint64_t test(std::string name, Exp exp, uint64_t base) { ...@@ -325,7 +327,8 @@ static uint64_t test(std::string name, Exp exp, uint64_t base) {
} }
}; };
dur = run_once(pq, fn); dur = run_once(pq, fn);
} break; break;
}
case FCTimed: { case FCTimed: {
FCPQ pq; FCPQ pq;
auto fn = [&](uint32_t tid) { auto fn = [&](uint32_t tid) {
...@@ -339,7 +342,8 @@ static uint64_t test(std::string name, Exp exp, uint64_t base) { ...@@ -339,7 +342,8 @@ static uint64_t test(std::string name, Exp exp, uint64_t base) {
} }
}; };
dur = run_once(pq, fn); dur = run_once(pq, fn);
} break; break;
}
default: default:
CHECK(false); CHECK(false);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment