/external/clang/lib/Format/ |
D | FormatToken.cpp | 108 unsigned ExtraSpaces = 0; in formatAfterToken() local 113 ExtraSpaces += Format->ColumnSizes[Column] - ItemLengths[Item]; in formatAfterToken() 125 Penalty += Indenter->addTokenToState(State, NewLine, DryRun, ExtraSpaces); in formatAfterToken()
|
D | ContinuationIndenter.h | 68 unsigned ExtraSpaces = 0); 111 unsigned ExtraSpaces);
|
D | ContinuationIndenter.cpp | 279 unsigned ExtraSpaces) { in addTokenToState() argument 307 addTokenOnCurrentLine(State, DryRun, ExtraSpaces); in addTokenToState() 313 unsigned ExtraSpaces) { in addTokenOnCurrentLine() argument 332 unsigned Spaces = Current.SpacesRequiredBefore + ExtraSpaces; in addTokenOnCurrentLine()
|
/external/llvm-project/clang/lib/Format/ |
D | FormatToken.cpp | 113 unsigned ExtraSpaces = 0; in formatAfterToken() local 118 ExtraSpaces += Format->ColumnSizes[Column] - ItemLengths[Item]; in formatAfterToken() 130 Penalty += Indenter->addTokenToState(State, NewLine, DryRun, ExtraSpaces); in formatAfterToken()
|
D | ContinuationIndenter.h | 85 unsigned ExtraSpaces = 0); 163 unsigned ExtraSpaces);
|
D | ContinuationIndenter.cpp | 527 unsigned ExtraSpaces) { in addTokenToState() argument 557 addTokenOnCurrentLine(State, DryRun, ExtraSpaces); in addTokenToState() 563 unsigned ExtraSpaces) { in addTokenOnCurrentLine() argument 582 unsigned Spaces = Current.SpacesRequiredBefore + ExtraSpaces; in addTokenOnCurrentLine()
|
/external/clang/unittests/Format/ |
D | FormatTest.cpp | 6558 FormatStyle ExtraSpaces = getLLVMStyle(); in TEST_F() local 6559 ExtraSpaces.Cpp11BracedListStyle = false; in TEST_F() 6560 ExtraSpaces.ColumnLimit = 75; in TEST_F() 6561 verifyFormat("vector<int> x{ 1, 2, 3, 4 };", ExtraSpaces); in TEST_F() 6562 verifyFormat("vector<T> x{ {}, {}, {}, {} };", ExtraSpaces); in TEST_F() 6563 verifyFormat("f({ 1, 2 });", ExtraSpaces); in TEST_F() 6564 verifyFormat("auto v = Foo{ 1 };", ExtraSpaces); in TEST_F() 6565 verifyFormat("f({ 1, 2 }, { { 2, 3 }, { 4, 5 } }, c, { d });", ExtraSpaces); in TEST_F() 6566 verifyFormat("Class::Class : member{ 1, 2, 3 } {}", ExtraSpaces); in TEST_F() 6567 verifyFormat("new vector<int>{ 1, 2, 3 };", ExtraSpaces); in TEST_F() [all …]
|
/external/llvm-project/clang/unittests/Format/ |
D | FormatTest.cpp | 9279 FormatStyle ExtraSpaces = getLLVMStyle(); in TEST_F() local 9280 ExtraSpaces.Cpp11BracedListStyle = false; in TEST_F() 9281 ExtraSpaces.ColumnLimit = 75; in TEST_F() 9282 verifyFormat("vector<int> x{ 1, 2, 3, 4 };", ExtraSpaces); in TEST_F() 9283 verifyFormat("vector<T> x{ {}, {}, {}, {} };", ExtraSpaces); in TEST_F() 9284 verifyFormat("f({ 1, 2 });", ExtraSpaces); in TEST_F() 9285 verifyFormat("auto v = Foo{ 1 };", ExtraSpaces); in TEST_F() 9286 verifyFormat("f({ 1, 2 }, { { 2, 3 }, { 4, 5 } }, c, { d });", ExtraSpaces); in TEST_F() 9287 verifyFormat("Class::Class : member{ 1, 2, 3 } {}", ExtraSpaces); in TEST_F() 9288 verifyFormat("new vector<int>{ 1, 2, 3 };", ExtraSpaces); in TEST_F() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/unittests/support/ |
D | MarkupTests.cpp | 188 TEST(Paragraph, ExtraSpaces) { in TEST() argument
|