Home | History | Annotate | Download | only in Format

Lines Matching defs:ExtraSpaces

5435   FormatStyle ExtraSpaces = getLLVMStyle();
5436 ExtraSpaces.Cpp11BracedListStyle = false;
5437 ExtraSpaces.ColumnLimit = 75;
5438 verifyFormat("vector<int> x{ 1, 2, 3, 4 };", ExtraSpaces);
5439 verifyFormat("vector<T> x{ {}, {}, {}, {} };", ExtraSpaces);
5440 verifyFormat("f({ 1, 2 });", ExtraSpaces);
5441 verifyFormat("auto v = Foo{ 1 };", ExtraSpaces);
5442 ExtraSpaces);
5443 verifyFormat("Class::Class : member{ 1, 2, 3 } {}", ExtraSpaces);
5444 verifyFormat("new vector<int>{ 1, 2, 3 };", ExtraSpaces);
5445 verifyFormat("new int[3]{ 1, 2, 3 };", ExtraSpaces);
5446 verifyFormat("return { arg1, arg2 };", ExtraSpaces);
5447 verifyFormat("return { arg1, SomeType{ parameter } };", ExtraSpaces);
5448 verifyFormat("int count = set<int>{ f(), g(), h() }.size();", ExtraSpaces);
5449 verifyFormat("new T{ arg1, arg2 };", ExtraSpaces);
5450 verifyFormat("f(MyMap[{ composite, key }]);", ExtraSpaces);
5454 ExtraSpaces);
5460 ExtraSpaces);
5461 verifyFormat("DoSomethingWithVector({} /* No data */);", ExtraSpaces);
5466 ExtraSpaces);
5474 ExtraSpaces);
5478 ExtraSpaces);
5487 ExtraSpaces);
5488 verifyFormat("vector<int> foo = { ::SomeGlobalFunction() };", ExtraSpaces);