Lines Matching refs:Format
1 //===--- FormatToken.cpp - Format C++ code --------------------------------===//
97 const ColumnFormat *Format = getColumnFormat(RemainingCodePoints);
102 if (!Format)
105 // Format the entire list.
116 ExtraSpaces += Format->ColumnSizes[Column] - ItemLengths[Item];
122 if (Column == Format->Columns || State.NextToken->MustBreakBefore) {
241 ColumnFormat Format;
242 Format.Columns = Columns;
243 Format.ColumnSizes.resize(Columns);
245 Format.LineCount = 1;
251 ++Format.LineCount;
258 Format.ColumnSizes[Column] = std::max(Format.ColumnSizes[Column], Length);
266 Format.TotalWidth = Columns - 1; // Width of the N-1 spaces.
269 Format.TotalWidth += Format.ColumnSizes[i];
271 // Don't use this Format, if the difference between the longest and shortest
275 if (Format.ColumnSizes[i] - MinSizeInColumn[i] > 10)
282 if (Format.TotalWidth > Style.ColumnLimit && Columns > 1)
285 Formats.push_back(Format);