clang-format
少于1分钟
Cpp11BracedListStyle
- 取值: bool
- 说明
true: false:
vector<int> x{1, 2, 3, 4}; vs. vector<int> x{ 1, 2, 3, 4 };
vector<T> x{{}, {}, {}, {}}; vector<T> x{ {}, {}, {}, {} };
f(MyMap[{composite, key}]); f(MyMap[{ composite, key }]);
new int[3]{1, 2, 3}; new int[3]{ 1, 2, 3 };
true: false:
struct ::event::Queue::Msg em = { vs. struct ::event::Queue::Msg em = {
.argsize = 4, .argsize = 4,
.arg = .arg = {
{ [0] = msg->sdu[0],
[0] = msg->sdu[0], [1] = msg->sdu[1],
[1] = msg->sdu[1], [2] = msg->sdu[2],
[2] = msg->sdu[2], [3] = msg->sdu[3],
[3] = msg->sdu[3], },
}, };
};