Lines Matching refs:isOneOf
71 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace, in parseAngle()
80 if (CurrentToken->Previous->isOneOf(tok::pipepipe, tok::ampamp) && in parseAngle()
115 (Left->Previous->isOneOf(tok::kw_static_assert, tok::kw_if, in parseParens()
122 !Left->Previous->isOneOf(tok::identifier, in parseParens()
165 Prev->isOneOf(tok::star, tok::amp, tok::ampamp) && in parseParens()
174 CurrentToken->Previous->Previous->isOneOf(tok::l_paren, in parseParens()
213 if (CurrentToken->isOneOf(tok::r_square, tok::r_brace)) in parseParens()
222 if (CurrentToken->isOneOf(tok::kw_const, tok::kw_auto) || in parseParens()
225 if (CurrentToken->isOneOf(tok::semi, tok::colon)) in parseParens()
253 Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare()
256 Parent->isOneOf(TT_ObjCForIn, TT_CastRParen) || in parseSquare()
299 if (CurrentToken->isOneOf(tok::r_paren, tok::r_brace)) in parseSquare()
344 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square)) in parseBrace()
347 if (CurrentToken->isOneOf(tok::colon, tok::l_brace)) { in parseBrace()
423 !Line.First->isOneOf(tok::kw_enum, tok::kw_case)) || in consumeToken()
447 !Line.First->isOneOf(tok::kw_enum, tok::kw_case)) { in consumeToken()
453 Tok->Next->isOneOf(tok::r_paren, tok::comma)) { in consumeToken()
481 !Tok->Previous->isOneOf(tok::kw_decltype, TT_LeadingJavaAnnotation))) in consumeToken()
517 !CurrentToken->isOneOf(tok::l_paren, tok::semi, tok::r_paren)) { in consumeToken()
518 if (CurrentToken->isOneOf(tok::star, tok::amp)) in consumeToken()
532 Tok->Next->isOneOf(tok::colon, tok::semi, tok::r_paren, in consumeToken()
649 CurrentToken->Next->isOneOf(tok::string_literal, tok::identifier, in parseLine()
706 if (!CurrentToken->isOneOf(TT_LambdaLSquare, TT_FunctionLBrace, in resetTokenMetadata()
770 !Line.First->isOneOf(tok::kw_template, tok::kw_using) && in modifyContext()
775 Previous && !Previous->isOneOf(tok::comma, tok::semi); in modifyContext()
777 if (Previous->isOneOf(tok::r_square, tok::r_paren)) { in modifyContext()
784 if (Previous->isOneOf(TT_BinaryOperator, TT_UnaryOperator) && in modifyContext()
785 Previous->isOneOf(tok::star, tok::amp, tok::ampamp) && in modifyContext()
790 } else if (Current.isOneOf(tok::kw_return, tok::kw_throw)) { in modifyContext()
803 Current.Previous->isOneOf(tok::kw_for, tok::kw_catch); in modifyContext()
805 } else if (Current.isOneOf(tok::r_paren, tok::greater, tok::comma)) { in modifyContext()
807 Previous && Previous->isOneOf(tok::star, tok::amp); in modifyContext()
846 } else if (Current.isOneOf(tok::star, tok::amp, tok::ampamp)) { in determineTokenType()
851 } else if (Current.isOneOf(tok::minus, tok::plus, tok::caret)) { in determineTokenType()
855 } else if (Current.isOneOf(tok::minusminus, tok::plusplus)) { in determineTokenType()
857 } else if (Current.isOneOf(tok::exclaim, tok::tilde)) { in determineTokenType()
886 PreviousNoComment->isOneOf(tok::comma, tok::l_brace)) in determineTokenType()
889 Current.Previous->isOneOf(TT_JavaAnnotation, in determineTokenType()
893 } else if (Current.isOneOf(tok::identifier, tok::kw_const) && in determineTokenType()
895 !Current.Previous->isOneOf(tok::equal, tok::at) && in determineTokenType()
912 Current.Previous->isOneOf(TT_JavaAnnotation, in determineTokenType()
984 Tok.Previous->isOneOf(TT_PointerOrReference, TT_TemplateCloser) || in rParenEndsCast()
987 Tok.Next && Tok.Next->isOneOf(tok::equal, tok::semi, tok::l_brace); in rParenEndsCast()
989 LeftOfParens && LeftOfParens->isOneOf(tok::kw_sizeof, tok::kw_alignof); in rParenEndsCast()
995 Tok.Next->isOneOf(tok::kw_sizeof, tok::kw_alignof))) in rParenEndsCast()
1002 !LeftOfParens->isOneOf(TT_OverloadedOperator, tok::at, in rParenEndsCast()
1004 if (Tok.Next->isOneOf(tok::identifier, tok::numeric_constant)) { in rParenEndsCast()
1009 if (Prev && Prev->isOneOf(tok::amp, tok::star)) in rParenEndsCast()
1014 Tok.Next->isOneOf(tok::amp, tok::star); in rParenEndsCast()
1017 Tok.Next->Next->isOneOf(tok::identifier, tok::numeric_constant); in rParenEndsCast()
1021 if (!Prev || !Prev->isOneOf(tok::kw_const, tok::identifier)) { in rParenEndsCast()
1049 if (PrevToken->isOneOf(tok::l_paren, tok::l_square, tok::l_brace, in determineStarAmpUsage()
1052 PrevToken->isOneOf(TT_BinaryOperator, TT_ConditionalExpr, in determineStarAmpUsage()
1058 if (NextToken->isOneOf(tok::kw_operator, tok::comma, tok::semi)) in determineStarAmpUsage()
1063 PrevToken->MatchingParen->Previous->isOneOf(tok::kw_typeof, in determineStarAmpUsage()
1068 PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::kw_true, in determineStarAmpUsage()
1071 NextToken->isOneOf(tok::kw_true, tok::kw_false) || in determineStarAmpUsage()
1103 if (PrevToken->isOneOf(tok::equal, tok::l_paren, tok::comma, tok::l_square, in determinePlusMinusCaretUsage()
1121 if (PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::identifier)) in determineIncrementUsage()
1153 Current->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral)))) in parse()
1240 else if (Current->isOneOf(tok::semi, TT_InlineASMColon, in getCurrentPrecedence()
1249 else if (Current->isOneOf(tok::period, tok::arrow)) in getCurrentPrecedence()
1252 Current->isOneOf(Keywords.kw_extends, Keywords.kw_implements, in getCurrentPrecedence()
1390 Tok->isOneOf(TT_PointerOrReference, TT_StartOfName)) in isFunctionDeclarationName()
1392 if (Tok->isOneOf(tok::l_brace, tok::string_literal) || Tok->Tok.isLiteral()) in isFunctionDeclarationName()
1431 if (Parameter->isOneOf(tok::comment, tok::r_brace)) in calculateFormattingInformation()
1451 !Line.Last->isOneOf(tok::semi, tok::comment)) // Only for definitions. in calculateFormattingInformation()
1501 Current->isOneOf(tok::comment, tok::string_literal)) { in calculateUnbreakableTailLengths()
1521 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_throws)) in splitPenalty()
1538 if (!Right.isOneOf(TT_ObjCMethodExpr, TT_LambdaLSquare)) in splitPenalty()
1542 if (Right.isOneOf(TT_StartOfName, TT_FunctionDeclarationName) || in splitPenalty()
1563 if (Left.isOneOf(tok::kw_class, tok::kw_struct)) in splitPenalty()
1566 if (Left.isOneOf(TT_RangeBasedForLoopColon, TT_InheritanceColon)) in splitPenalty()
1655 if (Left.isOneOf(tok::hashhash, tok::hash)) in spaceRequiredBetween()
1664 if (Right.isOneOf(tok::semi, tok::comma)) in spaceRequiredBetween()
1670 if (Left.isOneOf(tok::exclaim, tok::tilde)) in spaceRequiredBetween()
1673 Right.isOneOf(tok::identifier, tok::string_literal, tok::char_constant, in spaceRequiredBetween()
1679 if (Left.is(tok::less) || Right.isOneOf(tok::greater, tok::less)) in spaceRequiredBetween()
1692 (!Left.isOneOf(TT_PointerOrReference, tok::l_paren) && in spaceRequiredBetween()
1702 (!Right.isOneOf(TT_PointerOrReference, tok::l_paren) && in spaceRequiredBetween()
1706 !Left.Previous->isOneOf(tok::l_paren, tok::coloncolon)); in spaceRequiredBetween()
1721 !Right.isOneOf(TT_ObjCMethodExpr, TT_LambdaLSquare) && in spaceRequiredBetween()
1722 !Left.isOneOf(tok::numeric_constant, TT_DictLiteral)) in spaceRequiredBetween()
1739 (Left.isOneOf(tok::kw_if, tok::kw_for, tok::kw_while, in spaceRequiredBetween()
1741 (Left.isOneOf(tok::kw_try, Keywords.kw___except, tok::kw_catch, in spaceRequiredBetween()
1752 return !Left.isOneOf(tok::l_paren, tok::l_square, tok::at) && in spaceRequiredBetween()
1754 if ((Left.isOneOf(tok::identifier, tok::greater, tok::r_square, in spaceRequiredBetween()
1779 Left.isOneOf(Keywords.kw_optional, Keywords.kw_required, in spaceRequiredBefore()
1783 Left.isOneOf(Keywords.kw_returns, Keywords.kw_option)) in spaceRequiredBefore()
1788 if (Right.isOneOf(TT_JsTypeColon, TT_JsTypeOptionalQuestion)) in spaceRequiredBefore()
1791 Line.First->isOneOf(Keywords.kw_import, tok::kw_export)) in spaceRequiredBefore()
1794 !Right.isOneOf(tok::l_brace, tok::comma, tok::l_square, in spaceRequiredBefore()
1807 if ((Left.isOneOf(tok::kw_static, tok::kw_public, tok::kw_private, in spaceRequiredBefore()
1809 Left.isOneOf(Keywords.kw_final, Keywords.kw_abstract, in spaceRequiredBefore()
1835 if (Right.isOneOf(TT_CtorInitializerColon, TT_ObjCBlockLParen)) in spaceRequiredBefore()
1842 return !Line.First->isOneOf(tok::kw_case, tok::kw_default) && in spaceRequiredBefore()
1855 if (Right.isOneOf(tok::arrow, tok::period, tok::arrowstar, tok::periodstar) || in spaceRequiredBefore()
1856 Left.isOneOf(tok::arrow, tok::period, tok::arrowstar, tok::periodstar)) in spaceRequiredBefore()
1864 !(Left.isOneOf(tok::identifier, tok::l_paren, tok::r_paren) || in spaceRequiredBefore()
1865 Left.isOneOf(TT_TemplateCloser, TT_TemplateOpener)); in spaceRequiredBefore()
1869 Left.isOneOf(TT_BinaryOperator, TT_ConditionalExpr)) in spaceRequiredBefore()
1890 !Tok.isOneOf(TT_ObjCBlockLBrace, TT_DictLiteral); in isAllmanBrace()
1903 if (Left.isOneOf(tok::l_brace, TT_ArrayInitializerLSquare) && in mustBreakBefore()
1907 Right.MatchingParen->isOneOf(tok::l_brace, in mustBreakBefore()
1932 if ((Right.isOneOf(TT_CtorInitializerComma, TT_CtorInitializerColon)) && in mustBreakBefore()
1975 Line.First->isOneOf(tok::identifier, Keywords.kw_import, in mustBreakBefore()
1995 if (Left.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
1998 if (Right.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
2007 if (Left.isOneOf(TT_JavaAnnotation, TT_LeadingJavaAnnotation)) in canBreakBefore()
2013 if (Right.isOneOf(TT_StartOfName, TT_FunctionDeclarationName) || in canBreakBefore()
2034 !Right.isOneOf(TT_CtorInitializerColon, TT_InlineASMColon)) in canBreakBefore()
2036 if (Left.is(tok::colon) && (Left.isOneOf(TT_DictLiteral, TT_ObjCMethodExpr))) in canBreakBefore()
2044 if (Right.isOneOf(TT_RangeBasedForLoopColon, TT_OverloadedOperatorLParen, in canBreakBefore()
2051 if (Left.isOneOf(TT_TemplateCloser, TT_UnaryOperator) || in canBreakBefore()
2059 (Left.Previous->isOneOf(TT_BinaryOperator, TT_CastRParen))) in canBreakBefore()
2075 return !Right.isOneOf(tok::l_brace, tok::semi, tok::equal, tok::l_paren, in canBreakBefore()
2105 if (Left.isBinaryOperator() && !Left.isOneOf(tok::arrowstar, tok::lessless) && in canBreakBefore()
2110 return Left.isOneOf(tok::comma, tok::coloncolon, tok::semi, tok::l_brace, in canBreakBefore()
2113 Right.isOneOf(TT_TrailingReturnArrow, TT_LambdaArrow, tok::lessless, in canBreakBefore()
2116 Right.isOneOf(tok::identifier, tok::kw_const)) || in canBreakBefore()