reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
199 if (I + 1 == E) 202 const AnnotatedLine *TheLine = *I; 205 if (I[1]->Type == LT_Invalid || I[1]->First->MustBreakBefore) 205 if (I[1]->Type == LT_Invalid || I[1]->First->MustBreakBefore) 208 (!I[1]->InPPDirective || I[1]->First->HasUnescapedNewline)) 208 (!I[1]->InPPDirective || I[1]->First->HasUnescapedNewline)) 225 I[1]->First->is(tok::r_brace)) 226 return tryMergeSimpleBlock(I, E, Limit); 230 I != AnnotatedLines.begin()) { 231 bool EmptyBlock = I[1]->First->is(tok::r_brace); 233 const FormatToken *Tok = I[-1]->First; 239 ? tryMergeSimpleBlock(I, E, Limit) 247 ? tryMergeSimpleBlock(I, E, Limit) 256 I[1]->First->is(tok::r_brace)) || 264 for (; I + 1 + i != E && 265 nsToken->TokenText == getNamespaceTokenText(I[i + 1]) && 266 closingLine == I[i + 1]->MatchingClosingBlockLineIndex && 267 I[i + 1]->Last->TotalLength < Limit; 270 IndentTracker.skipLine(*I[i + 1]); 272 Limit -= I[i + 1]->Last->TotalLength; 280 for (; I + 1 + i != E && 282 getMatchingNamespaceTokenText(I[i + 1], AnnotatedLines) && 283 openingLine == I[i + 1]->MatchingOpeningBlockLineIndex; 286 I[i + 1]->First->SpacesRequiredBefore = !I[i]->Last->is(tok::r_brace); 286 I[i + 1]->First->SpacesRequiredBefore = !I[i]->Last->is(tok::r_brace); 289 IndentTracker.nextLine(*I[i + 1]); 298 return MergeShortFunctions ? tryMergeSimpleBlock(I, E, Limit) : 0; 304 ? tryMergeSimpleBlock(I, E, Limit) 308 if (I[1]->First->is(tok::l_brace) && 322 } else if (I[1]->First->is(tok::l_brace) && 327 ? tryMergeSimpleBlock(I, E, Limit) 333 I != AnnotatedLines.begin() && 334 I[-1]->First->isOneOf(tok::kw_if, tok::kw_while, tok::kw_for)) { 337 MergedLines = tryMergeSimpleBlock(I - 1, E, Limit); 346 if (TheLine->First->is(tok::l_brace) && I != AnnotatedLines.begin() && 347 I[-1]->First->is(tok::at) && I[-1]->First->Next) { 347 I[-1]->First->is(tok::at) && I[-1]->First->Next) { 348 tok::ObjCKeywordKind kwId = I[-1]->First->Next->Tok.getObjCKeywordID(); 354 if (TheLine->First->is(tok::l_brace) && I != AnnotatedLines.begin() && 355 I[-1]->First->isOneOf(tok::kw_case, tok::kw_default)) 360 (I[1]->First->is(tok::r_brace) && 362 ? tryMergeSimpleBlock(I, E, Limit) 366 if (I[1]->First->is(TT_FunctionLBrace) && 368 if (I[1]->Last->is(TT_LineComment)) 379 I[1]->First == I[1]->Last && I + 2 != E && 379 I[1]->First == I[1]->Last && I + 2 != E && 379 I[1]->First == I[1]->Last && I + 2 != E && 380 I[2]->First->is(tok::r_brace))) { 381 MergedLines = tryMergeSimpleBlock(I + 1, E, Limit); 391 ? tryMergeSimpleControlStatement(I, E, Limit) 396 ? tryMergeSimpleControlStatement(I, E, Limit) 401 ? tryMergeShortCaseLabels(I, E, Limit) 406 return tryMergeSimplePPDirective(I, E, Limit);