Home
last modified time | relevance | path

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

/external/clang/lib/Format/
DFormatToken.cpp92 unsigned ExtraSpaces = 0; in formatAfterToken() local
97 ExtraSpaces += Format->ColumnSizes[Column] - ItemLengths[Item]; in formatAfterToken()
109 Penalty += Indenter->addTokenToState(State, NewLine, DryRun, ExtraSpaces); in formatAfterToken()
DContinuationIndenter.h67 unsigned ExtraSpaces = 0);
110 unsigned ExtraSpaces);
DContinuationIndenter.cpp243 unsigned ExtraSpaces) { in addTokenToState() argument
271 addTokenOnCurrentLine(State, DryRun, ExtraSpaces); in addTokenToState()
277 unsigned ExtraSpaces) { in addTokenOnCurrentLine() argument
296 unsigned Spaces = Current.SpacesRequiredBefore + ExtraSpaces; in addTokenOnCurrentLine()
/external/clang/unittests/Format/
DFormatTest.cpp6093 FormatStyle ExtraSpaces = getLLVMStyle(); in TEST_F() local
6094 ExtraSpaces.Cpp11BracedListStyle = false; in TEST_F()
6095 ExtraSpaces.ColumnLimit = 75; in TEST_F()
6096 verifyFormat("vector<int> x{ 1, 2, 3, 4 };", ExtraSpaces); in TEST_F()
6097 verifyFormat("vector<T> x{ {}, {}, {}, {} };", ExtraSpaces); in TEST_F()
6098 verifyFormat("f({ 1, 2 });", ExtraSpaces); in TEST_F()
6099 verifyFormat("auto v = Foo{ 1 };", ExtraSpaces); in TEST_F()
6100 verifyFormat("f({ 1, 2 }, { { 2, 3 }, { 4, 5 } }, c, { d });", ExtraSpaces); in TEST_F()
6101 verifyFormat("Class::Class : member{ 1, 2, 3 } {}", ExtraSpaces); in TEST_F()
6102 verifyFormat("new vector<int>{ 1, 2, 3 };", ExtraSpaces); in TEST_F()
[all …]