Home | History | Annotate | Download | only in Format

Lines Matching refs:Limit

180     unsigned Limit =
182 // If we already exceed the column limit, we set 'Limit' to 0. The different
184 Limit = TheLine->Last->TotalLength > Limit
186 : Limit - TheLine->Last->TotalLength;
199 return MergeShortFunctions ? tryMergeSimpleBlock(I, E, Limit) : 0;
203 ? tryMergeSimpleBlock(I, E, Limit)
211 // Check for Limit <= 2 to account for the " {".
212 if (Limit <= 2 || (Style.ColumnLimit == 0 && containsMustBreak(TheLine)))
214 Limit -= 2;
218 MergedLines = tryMergeSimpleBlock(I + 1, E, Limit);
228 ? tryMergeSimpleControlStatement(I, E, Limit)
233 ? tryMergeSimpleControlStatement(I, E, Limit)
238 ? tryMergeShortCaseLabels(I, E, Limit)
243 return tryMergeSimplePPDirective(I, E, Limit);
251 unsigned Limit) {
252 if (Limit == 0)
256 if (1 + I[1]->Last->TotalLength > Limit)
263 SmallVectorImpl<AnnotatedLine *>::const_iterator E, unsigned Limit) {
264 if (Limit == 0)
272 Limit = limitConsideringMacros(I + 1, E, Limit);
276 if (1 + I[1]->Last->TotalLength > Limit)
291 unsigned Limit) {
292 if (Limit == 0 || I + 1 == E ||
312 if (NumStmts == 0 || NumStmts == 3 || Length > Limit)
320 unsigned Limit) {
360 // We merge empty blocks even if the line exceeds the column limit.
364 } else if (Limit != 0 && !Line.startsWith(tok::kw_namespace) &&
371 // Check that we still have three lines and they fit into the limit.
374 Limit = limitConsideringMacros(I + 2, E, Limit);
376 if (!nextTwoLinesFitInto(I, Limit))
403 /// Returns the modified column limit for \p I if it is inside a macro and
408 unsigned Limit) {
411 return Limit < 2 ? 0 : Limit - 2;
413 return Limit;
417 unsigned Limit) {
420 return 1 + I[1]->Last->TotalLength + 1 + I[2]->Last->TotalLength <= Limit;
544 // If the child line exceeds the column limit, we wouldn't want to merge it.
630 /// below the column limit.