reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/unittests/Format/FormatTest.cpp
 8186   ExtraSpaces.Cpp11BracedListStyle = false;
 8187   ExtraSpaces.ColumnLimit = 75;
 8188   verifyFormat("vector<int> x{ 1, 2, 3, 4 };", ExtraSpaces);
 8189   verifyFormat("vector<T> x{ {}, {}, {}, {} };", ExtraSpaces);
 8190   verifyFormat("f({ 1, 2 });", ExtraSpaces);
 8191   verifyFormat("auto v = Foo{ 1 };", ExtraSpaces);
 8192   verifyFormat("f({ 1, 2 }, { { 2, 3 }, { 4, 5 } }, c, { d });", ExtraSpaces);
 8193   verifyFormat("Class::Class : member{ 1, 2, 3 } {}", ExtraSpaces);
 8194   verifyFormat("new vector<int>{ 1, 2, 3 };", ExtraSpaces);
 8195   verifyFormat("new int[3]{ 1, 2, 3 };", ExtraSpaces);
 8196   verifyFormat("return { arg1, arg2 };", ExtraSpaces);
 8197   verifyFormat("return { arg1, SomeType{ parameter } };", ExtraSpaces);
 8198   verifyFormat("int count = set<int>{ f(), g(), h() }.size();", ExtraSpaces);
 8199   verifyFormat("new T{ arg1, arg2 };", ExtraSpaces);
 8200   verifyFormat("f(MyMap[{ composite, key }]);", ExtraSpaces);
 8204                ExtraSpaces);
 8210       ExtraSpaces);
 8211   verifyFormat("DoSomethingWithVector({} /* No data */);", ExtraSpaces);
 8213                ExtraSpaces);
 8220       ExtraSpaces);
 8224       ExtraSpaces);
 8238   verifyFormat("vector<int> foo = { ::SomeGlobalFunction() };", ExtraSpaces);
 8239   verifyFormat("const struct A a = { .a = 1, .b = 2 };", ExtraSpaces);
 8240   verifyFormat("const struct A a = { [0] = 1, [1] = 2 };", ExtraSpaces);
 8243   ExtraSpaces.PenaltyBreakBeforeFirstCallParameter = 200;
 8249                ExtraSpaces);
 8255                ExtraSpaces);