Lines Matching refs:isOneOf

30   return Tok.isOneOf(TT_ClassLBrace, TT_EnumLBrace, TT_RecordLBrace,  in isRecordLBrace()
117 else if ((RootToken.isOneOf(Keywords.kw_signals, Keywords.kw_qsignals) && in getIndentOffset()
121 RootToken.Next->isOneOf(Keywords.kw_slots, in getIndentOffset()
286 if (Tok && Tok->isOneOf(tok::kw_class, tok::kw_struct, tok::kw_union, in tryFitMultipleLinesInOne()
401 FirstNonComment->isOneOf(tok::kw_if, tok::kw_while, tok::kw_for, in tryFitMultipleLinesInOne()
409 if ((TheLine->First->isOneOf(tok::kw_if, tok::kw_else, tok::kw_while, in tryFitMultipleLinesInOne()
413 TheLine->First->Next->isOneOf(tok::kw_else, tok::kw_catch))) && in tryFitMultipleLinesInOne()
425 if (TheLine->First->isOneOf(tok::kw_if, tok::kw_else, tok::kw_while, in tryFitMultipleLinesInOne()
432 if (TheLine->First->isOneOf(tok::kw_else, tok::kw_catch) && in tryFitMultipleLinesInOne()
485 PreviousPrevious->isOneOf(tok::kw_class, tok::kw_struct)) { in tryFitMultipleLinesInOne()
498 } else if (TheLine->Last->isOneOf(TT_ClassLBrace, TT_StructLBrace)) { in tryFitMultipleLinesInOne()
509 !TheLine->First->isOneOf(tok::kw_class, tok::kw_enum, in tryFitMultipleLinesInOne()
557 if (TheLine->First->isOneOf(tok::kw_for, tok::kw_while, tok::kw_do, in tryFitMultipleLinesInOne()
563 if (TheLine->First->isOneOf(tok::kw_case, tok::kw_default)) { in tryFitMultipleLinesInOne()
615 if (I[1]->First->isOneOf(tok::semi, tok::kw_if, tok::kw_for, tok::kw_while, in tryMergeSimpleControlStatement()
635 I[1]->First->isOneOf(tok::kw_case, tok::kw_default)) { in tryMergeShortCaseLabels()
651 if (Line->First->isOneOf(tok::kw_case, tok::kw_default, tok::r_brace)) in tryMergeShortCaseLabels()
653 if (Line->First->isOneOf(tok::kw_if, tok::kw_for, tok::kw_switch, in tryMergeShortCaseLabels()
666 if (Line->First->isOneOf(tok::kw_case, tok::kw_default, tok::r_brace)) in tryMergeShortCaseLabels()
696 Line.First->isOneOf(tok::at, tok::minus, tok::plus)) { in tryMergeSimpleBlock()
712 if (Line.First->isOneOf(tok::kw_if, tok::kw_else, tok::kw_while, tok::kw_do, in tryMergeSimpleBlock()
725 Line.First->isOneOf(tok::kw_if, tok::kw_else) && in tryMergeSimpleBlock()
731 Line.First->isOneOf(tok::kw_if, tok::kw_else) && in tryMergeSimpleBlock()
738 Line.First->isOneOf(tok::kw_while, tok::kw_do, tok::kw_for, in tryMergeSimpleBlock()
745 Line.First->isOneOf(tok::kw_while, tok::kw_do, tok::kw_for, in tryMergeSimpleBlock()
757 if (Line.First->isOneOf(tok::kw_try, tok::kw___try, tok::kw_catch, in tryMergeSimpleBlock()
1444 if (PreviousLine->Last->isOneOf(tok::semi, tok::r_brace) && Newlines <= 1) in formatFirstToken()