Lines Matching refs:isOneOf
31 return Tok.isOneOf(TT_ClassLBrace, TT_EnumLBrace, TT_RecordLBrace, in isRecordLBrace()
127 if (RootToken.isOneOf(Keywords.kw_signals, Keywords.kw_qsignals) && in getIndentOffset()
132 if (Next && Next->isOneOf(Keywords.kw_slots, Keywords.kw_qslots) && in getIndentOffset()
299 if (Tok && Tok->isOneOf(tok::kw_class, tok::kw_struct, tok::kw_union, in tryFitMultipleLinesInOne()
425 FirstNonComment->isOneOf(tok::kw_if, tok::kw_while, tok::kw_for, in tryFitMultipleLinesInOne()
433 if ((TheLine->First->isOneOf(tok::kw_if, tok::kw_else, tok::kw_while, in tryFitMultipleLinesInOne()
437 TheLine->First->Next->isOneOf(tok::kw_else, tok::kw_catch))) && in tryFitMultipleLinesInOne()
449 if (TheLine->First->isOneOf(tok::kw_if, tok::kw_else, tok::kw_while, in tryFitMultipleLinesInOne()
456 if (TheLine->First->isOneOf(tok::kw_else, tok::kw_catch) && in tryFitMultipleLinesInOne()
509 PreviousPrevious->isOneOf(tok::kw_class, tok::kw_struct)) { in tryFitMultipleLinesInOne()
530 } else if (TheLine->Last->isOneOf(TT_ClassLBrace, TT_StructLBrace)) { in tryFitMultipleLinesInOne()
538 !TheLine->First->isOneOf(tok::kw_class, tok::kw_enum, in tryFitMultipleLinesInOne()
588 if (TheLine->First->isOneOf(tok::kw_for, tok::kw_while, tok::kw_do, in tryFitMultipleLinesInOne()
594 if (TheLine->First->isOneOf(tok::kw_case, tok::kw_default)) { in tryFitMultipleLinesInOne()
646 if (I[1]->First->isOneOf(tok::semi, tok::kw_if, tok::kw_for, tok::kw_while, in tryMergeSimpleControlStatement()
666 I[1]->First->isOneOf(tok::kw_case, tok::kw_default)) { in tryMergeShortCaseLabels()
685 if (Line->First->isOneOf(tok::kw_case, tok::kw_default, tok::r_brace)) in tryMergeShortCaseLabels()
687 if (Line->First->isOneOf(tok::kw_if, tok::kw_for, tok::kw_switch, in tryMergeShortCaseLabels()
700 if (Line->First->isOneOf(tok::kw_case, tok::kw_default, tok::r_brace)) in tryMergeShortCaseLabels()
730 Line.First->isOneOf(tok::at, tok::minus, tok::plus)) { in tryMergeSimpleBlock()
748 return Line.First->isOneOf(tok::kw_if, tok::kw_else, tok::kw_while, in tryMergeSimpleBlock()
758 Line.First->isOneOf(tok::kw_try, tok::kw___try, tok::kw_catch, in tryMergeSimpleBlock()
766 Line.First->isOneOf(tok::kw_if, tok::kw_else) && in tryMergeSimpleBlock()
772 Line.First->isOneOf(tok::kw_if, tok::kw_else) && in tryMergeSimpleBlock()
779 Line.First->isOneOf(tok::kw_while, tok::kw_do, tok::kw_for, in tryMergeSimpleBlock()
786 Line.First->isOneOf(tok::kw_while, tok::kw_do, tok::kw_for, in tryMergeSimpleBlock()
798 if (Line.First->isOneOf(tok::kw_try, tok::kw___try, tok::kw_catch, in tryMergeSimpleBlock()
954 Tok->Next->isOneOf(tok::pp_if, tok::pp_ifdef, tok::pp_ifndef, in markFinalized()
1507 if (PreviousLine->Last->isOneOf(tok::semi, tok::r_brace) && Newlines <= 1) in computeNewlines()