Lines Matching refs:isOneOf
62 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace, in parseAngle()
71 if (CurrentToken->Previous->isOneOf(tok::pipepipe, tok::ampamp) && in parseAngle()
110 (Left->Previous->isOneOf(tok::kw_static_assert, tok::kw_if, in parseParens()
155 Prev->isOneOf(tok::star, tok::amp, tok::ampamp) && in parseParens()
164 CurrentToken->Previous->Previous->isOneOf(tok::l_paren, in parseParens()
199 if (CurrentToken->isOneOf(tok::r_square, tok::r_brace)) in parseParens()
207 if (CurrentToken->isOneOf(tok::kw_const, tok::kw_auto) || in parseParens()
232 (!Parent || Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare()
278 if (CurrentToken->isOneOf(tok::r_paren, tok::r_brace)) in parseSquare()
315 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square)) in parseBrace()
407 !Line.First->isOneOf(tok::kw_enum, tok::kw_case)) { in consumeToken()
466 !CurrentToken->isOneOf(tok::l_paren, tok::semi, tok::r_paren)) { in consumeToken()
467 if (CurrentToken->isOneOf(tok::star, tok::amp)) in consumeToken()
694 !Line.First->isOneOf(tok::kw_template, tok::kw_using) && in determineTokenType()
698 Previous && !Previous->isOneOf(tok::comma, tok::semi); in determineTokenType()
700 if (Previous->isOneOf(tok::r_square, tok::r_paren)) in determineTokenType()
703 Previous->isOneOf(tok::star, tok::amp)) { in determineTokenType()
707 } else if (Current.isOneOf(tok::kw_return, tok::kw_throw)) { in determineTokenType()
718 Current.Previous->isOneOf(tok::kw_for, tok::kw_catch); in determineTokenType()
720 } else if (Current.isOneOf(tok::r_paren, tok::greater, tok::comma)) { in determineTokenType()
722 Previous && Previous->isOneOf(tok::star, tok::amp); in determineTokenType()
748 } else if (Current.isOneOf(tok::star, tok::amp, tok::ampamp)) { in determineTokenType()
753 } else if (Current.isOneOf(tok::minus, tok::plus, tok::caret)) { in determineTokenType()
757 } else if (Current.isOneOf(tok::minusminus, tok::plusplus)) { in determineTokenType()
791 PreviousNoComment->isOneOf(tok::comma, tok::l_brace)) in determineTokenType()
793 } else if (Current.isOneOf(tok::identifier, tok::kw_const) && in determineTokenType()
851 Tok.Next && Tok.Next->isOneOf(tok::equal, tok::semi, tok::l_brace); in rParenEndsCast()
853 LeftOfParens && LeftOfParens->isOneOf(tok::kw_sizeof, tok::kw_alignof); in rParenEndsCast()
860 Tok.Next->isOneOf(tok::kw_sizeof, tok::kw_alignof))) in rParenEndsCast()
870 if (Tok.Next->isOneOf(tok::identifier, tok::numeric_constant)) { in rParenEndsCast()
875 if (Prev && Prev->isOneOf(tok::amp, tok::star)) in rParenEndsCast()
880 Tok.Next->isOneOf(tok::amp, tok::star); in rParenEndsCast()
881 IsCast = NextIsUnary && Tok.Next->Next->isOneOf( in rParenEndsCast()
886 if (!Prev || !Prev->isOneOf(tok::kw_const, tok::identifier)) { in rParenEndsCast()
911 if (PrevToken->isOneOf(tok::l_paren, tok::l_square, tok::l_brace, in determineStarAmpUsage()
926 PrevToken->MatchingParen->Previous->isOneOf(tok::kw_typeof, in determineStarAmpUsage()
931 PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::kw_true, in determineStarAmpUsage()
934 NextToken->isOneOf(tok::kw_true, tok::kw_false) || in determineStarAmpUsage()
962 if (PrevToken->isOneOf(tok::equal, tok::l_paren, tok::comma, tok::l_square, in determinePlusMinusCaretUsage()
980 if (PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::identifier)) in determineIncrementUsage()
1102 else if (Current->isOneOf(tok::period, tok::arrow)) in getCurrentPrecedence()
1233 if (Tok->isOneOf(tok::l_brace, tok::string_literal) || Tok->Tok.isLiteral()) in isFunctionDeclarationName()
1272 if (Parameter->isOneOf(tok::comment, tok::r_brace)) in calculateFormattingInformation()
1333 Current->isOneOf(tok::comment, tok::string_literal)) { in calculateUnbreakableTailLengths()
1377 if (Left.isOneOf(tok::kw_class, tok::kw_struct)) in splitPenalty()
1467 if (Left.isOneOf(tok::hashhash, tok::hash)) in spaceRequiredBetween()
1479 if (Right.isOneOf(tok::semi, tok::comma)) in spaceRequiredBetween()
1487 if (Left.isOneOf(tok::exclaim, tok::tilde)) in spaceRequiredBetween()
1490 Right.isOneOf(tok::identifier, tok::string_literal, tok::char_constant, in spaceRequiredBetween()
1498 !Left.isOneOf(tok::identifier, tok::greater, tok::l_paren, in spaceRequiredBetween()
1500 if (Left.is(tok::less) || Right.isOneOf(tok::greater, tok::less)) in spaceRequiredBetween()
1518 !Left.Previous->isOneOf(tok::l_paren, tok::coloncolon)); in spaceRequiredBetween()
1539 Left.isOneOf(tok::kw_new, tok::kw_delete, tok::semi) || in spaceRequiredBetween()
1541 (Left.isOneOf(tok::kw_if, tok::kw_for, tok::kw_while, in spaceRequiredBetween()
1545 Left.isOneOf(tok::identifier, tok::kw___attribute) && in spaceRequiredBetween()
1557 return !Left.isOneOf(tok::l_paren, tok::l_square, tok::at) && in spaceRequiredBetween()
1559 if ((Left.isOneOf(tok::identifier, tok::greater, tok::r_square, in spaceRequiredBetween()
1603 return !Line.First->isOneOf(tok::kw_case, tok::kw_default) && in spaceRequiredBefore()
1615 if (Tok.isOneOf(tok::arrowstar, tok::periodstar) || in spaceRequiredBefore()
1616 Tok.Previous->isOneOf(tok::arrowstar, tok::periodstar)) in spaceRequiredBefore()
1695 BeforeClosingBrace->isOneOf(tok::comma, tok::comment)) in mustBreakBefore()
1778 return !Right.isOneOf(tok::l_brace, tok::semi, tok::equal, tok::l_paren, in canBreakBefore()
1805 !Left.isOneOf(tok::arrowstar, tok::lessless) && in canBreakBefore()
1807 Left.isOneOf(tok::comma, tok::coloncolon, tok::semi, tok::l_brace, in canBreakBefore()
1810 Right.isOneOf(tok::lessless, tok::colon, tok::l_square, tok::at) || in canBreakBefore()
1812 Right.isOneOf(tok::identifier, tok::kw_const)) || in canBreakBefore()