Home
last modified time | relevance | path

Searched refs:ExtraSpaces (Results 1 – 4 of 4) sorted by relevance

/external/clang/lib/Format/
DFormatToken.cpp91 unsigned ExtraSpaces = 0; in formatAfterToken() local
96 ExtraSpaces += Format->ColumnSizes[Column] - ItemLengths[Item]; in formatAfterToken()
108 Penalty += Indenter->addTokenToState(State, NewLine, DryRun, ExtraSpaces); in formatAfterToken()
DContinuationIndenter.h65 unsigned ExtraSpaces = 0);
108 unsigned ExtraSpaces);
DContinuationIndenter.cpp230 unsigned ExtraSpaces) { in addTokenToState() argument
252 addTokenOnCurrentLine(State, DryRun, ExtraSpaces); in addTokenToState()
258 unsigned ExtraSpaces) { in addTokenOnCurrentLine() argument
277 unsigned Spaces = Current.SpacesRequiredBefore + ExtraSpaces; in addTokenOnCurrentLine()
/external/clang/unittests/Format/
DFormatTest.cpp5435 FormatStyle ExtraSpaces = getLLVMStyle(); in TEST_F() local
5436 ExtraSpaces.Cpp11BracedListStyle = false; in TEST_F()
5437 ExtraSpaces.ColumnLimit = 75; in TEST_F()
5438 verifyFormat("vector<int> x{ 1, 2, 3, 4 };", ExtraSpaces); in TEST_F()
5439 verifyFormat("vector<T> x{ {}, {}, {}, {} };", ExtraSpaces); in TEST_F()
5440 verifyFormat("f({ 1, 2 });", ExtraSpaces); in TEST_F()
5441 verifyFormat("auto v = Foo{ 1 };", ExtraSpaces); in TEST_F()
5442 verifyFormat("f({ 1, 2 }, { { 2, 3 }, { 4, 5 } }, c, { d });", ExtraSpaces); in TEST_F()
5443 verifyFormat("Class::Class : member{ 1, 2, 3 } {}", ExtraSpaces); in TEST_F()
5444 verifyFormat("new vector<int>{ 1, 2, 3 };", ExtraSpaces); in TEST_F()
[all …]