mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-15 00:38:52 +00:00
Use the Google Style for clang-format without exceptions (#8706)
This reduces the friction when merging from github and google repos by using the exact same clang style guide. MARKDOWN=true
This commit is contained in:
@@ -28,15 +28,15 @@ void FlexBuffersTest() {
|
||||
slb += "Fred";
|
||||
slb.IndirectFloat(4.0f);
|
||||
auto i_f = slb.LastValue();
|
||||
uint8_t blob[] = { 77 };
|
||||
uint8_t blob[] = {77};
|
||||
slb.Blob(blob, 1);
|
||||
slb += false;
|
||||
slb.ReuseValue(i_f);
|
||||
});
|
||||
int ints[] = { 1, 2, 3 };
|
||||
int ints[] = {1, 2, 3};
|
||||
slb.Vector("bar", ints, 3);
|
||||
slb.FixedTypedVector("bar3", ints, 3);
|
||||
bool bools[] = { true, false, true, false };
|
||||
bool bools[] = {true, false, true, false};
|
||||
slb.Vector("bools", bools, 4);
|
||||
slb.Bool("bool", true);
|
||||
slb.Double("foo", 100);
|
||||
@@ -136,7 +136,8 @@ void FlexBuffersTest() {
|
||||
std::string jsonback_indented;
|
||||
jroot.ToString(true, false, jsonback_indented, true, 0, " ");
|
||||
auto jsontest_indented =
|
||||
"{\n a: [\n 123,\n 456.0\n ],\n b: \"hello\",\n c: true,\n d: false\n}";
|
||||
"{\n a: [\n 123,\n 456.0\n ],\n b: \"hello\",\n c: true,\n d: "
|
||||
"false\n}";
|
||||
TEST_EQ_STR(jsontest_indented, jsonback_indented.c_str());
|
||||
|
||||
slb.Clear();
|
||||
|
||||
Reference in New Issue
Block a user