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<
// custom combined op processing - overrides FlatCombining::combinedOp(Req&)
void combinedOp(Req& req) {
switch (req.getType()) {
case Req::Type::ADD: {
case Req::Type::ADD:
data_.add(req.getVal());
} break;
case Req::Type::FETCHADD: {
return;
case Req::Type::FETCHADD:
req.setRes(data_.fetchAdd(req.getVal()));
} break;
default: { assert(false); }
return;
}
assume_unreachable();
}
private:
......
......@@ -299,7 +299,8 @@ static uint64_t test(std::string name, Exp exp, uint64_t base) {
}
};
dur = run_once(pq, fn);
} break;
break;
}
case FCNonBlock: {
FCPQ pq;
auto fn = [&](uint32_t tid) {
......@@ -312,7 +313,8 @@ static uint64_t test(std::string name, Exp exp, uint64_t base) {
}
};
dur = run_once(pq, fn);
} break;
break;
}
case FCBlock: {
FCPQ pq;
auto fn = [&](uint32_t tid) {
......@@ -325,7 +327,8 @@ static uint64_t test(std::string name, Exp exp, uint64_t base) {
}
};
dur = run_once(pq, fn);
} break;
break;
}
case FCTimed: {
FCPQ pq;
auto fn = [&](uint32_t tid) {
......@@ -339,7 +342,8 @@ static uint64_t test(std::string name, Exp exp, uint64_t base) {
}
};
dur = run_once(pq, fn);
} break;
break;
}
default:
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