Lines Matching refs:isOneOf
62 return Tok.isOneOf(tok::kw_if, tok::kw_for, tok::kw_while, tok::kw_switch, in isKeywordWithCondition()
133 Left->Previous->isOneOf(TT_SelectorName, TT_DictLiteral))) in parseAngle()
145 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace) || in parseAngle()
146 (CurrentToken->isOneOf(tok::colon, tok::question) && InExprContext && in parseAngle()
156 if (CurrentToken->Previous->isOneOf(tok::pipepipe, tok::ampamp) && in parseAngle()
165 (CurrentToken->isOneOf(tok::l_brace, tok::less) && in parseAngle()
234 (Left->Previous->isOneOf(tok::kw_static_assert, tok::kw_while, in parseParens()
268 Left->Previous && Left->Previous->isOneOf(tok::kw_for, tok::kw_catch); in parseParens()
277 } else if (PrevNonComment->isOneOf(TT_TypenameMacro, tok::kw_decltype, in parseParens()
282 if (PrevNonComment->isOneOf(tok::kw_decltype, tok::kw_typeof)) in parseParens()
301 CurrentToken->isOneOf(tok::star, tok::amp, tok::caret); in parseParens()
318 Prev->isOneOf(tok::star, tok::amp, tok::ampamp) && in parseParens()
327 CurrentToken->Previous->Previous->isOneOf(tok::l_paren, in parseParens()
350 Tok->isOneOf(tok::star, tok::amp, tok::ampamp)) in parseParens()
384 if (CurrentToken->isOneOf(tok::r_square, tok::r_brace)) in parseParens()
393 if ((CurrentToken->Previous->isOneOf(tok::kw_const, tok::kw_auto) || in parseParens()
397 if (CurrentToken->isOneOf(tok::semi, tok::colon)) { in parseParens()
460 if (AttrTok->isOneOf(tok::kw_public, tok::kw_private, tok::kw_protected, in isCSharpAttributeSpecifier()
540 !CurrentToken->isOneOf(tok::l_brace, tok::r_square) && in parseSquare()
542 Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare()
546 Parent->isOneOf(TT_ObjCForIn, TT_CastRParen) || in parseSquare()
563 Parent->isOneOf(tok::l_brace, tok::comma)) { in parseSquare()
566 Parent && Parent->isOneOf(tok::l_brace, tok::comma)) { in parseSquare()
611 Parent->isOneOf(TT_BinaryOperator, TT_TemplateCloser, tok::at, in parseSquare()
694 if (CurrentToken->isOneOf(tok::r_paren, tok::r_brace)) in parseSquare()
703 } else if (Left->isOneOf(TT_ArraySubscriptLSquare, in parseSquare()
749 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square)) in parseBrace()
752 if (CurrentToken->isOneOf(tok::colon, tok::l_brace, tok::less)) { in parseBrace()
837 !Line.First->isOneOf(tok::kw_enum, tok::kw_case)) || in consumeToken()
899 !Line.First->isOneOf(tok::kw_enum, tok::kw_case)) { in consumeToken()
901 if (Prev->isOneOf(tok::r_paren, tok::kw_noexcept)) in consumeToken()
906 if (PrevPrev && PrevPrev->isOneOf(tok::r_paren, tok::kw_noexcept)) in consumeToken()
911 (Tok->Next->isOneOf(tok::r_paren, tok::comma) || in consumeToken()
932 CurrentToken->isOneOf(tok::kw_constexpr, tok::identifier)) in consumeToken()
973 (!Tok->Previous || !Tok->Previous->isOneOf(tok::kw___attribute, in consumeToken()
1000 Tok->Previous->isOneOf(TT_SelectorName, TT_DictLiteral))) { in consumeToken()
1032 !CurrentToken->isOneOf(tok::l_paren, tok::semi, tok::r_paren)) { in consumeToken()
1033 if (CurrentToken->isOneOf(tok::star, tok::amp)) in consumeToken()
1039 if (CurrentToken && CurrentToken->Previous->isOneOf( in consumeToken()
1055 if (Tok->isOneOf(TT_CSharpNullConditional, TT_CSharpNullCoalescing)) in consumeToken()
1058 Tok->Next->isOneOf(tok::semi, tok::comma, tok::colon, tok::r_paren, in consumeToken()
1077 (Tok->Next && Tok->Next->isOneOf(tok::r_paren, tok::greater)) || in consumeToken()
1103 if (Tok->isOneOf(Keywords.kw___has_include, in consumeToken()
1176 CurrentToken->isOneOf(Keywords.kw_mark, Keywords.kw_option)) { in parsePragma()
1252 else if (Tok->isOneOf(Keywords.kw___has_include, in parsePreprocessorDirective()
1275 CurrentToken->Next->isOneOf(tok::string_literal, tok::identifier, in parseLine()
1292 CurrentToken->isOneOf(Keywords.kw_option, Keywords.kw_package)) { in parseLine()
1364 if (!CurrentToken->isOneOf( in resetTokenMetadata()
1435 !Line.First->isOneOf(tok::kw_template, tok::kw_using, tok::kw_return) && in modifyContext()
1447 !Previous->Previous->isOneOf(tok::comma, tok::semi); in modifyContext()
1449 if (Previous->isOneOf(tok::r_square, tok::r_paren)) { in modifyContext()
1456 if (Previous->isOneOf(TT_BinaryOperator, TT_UnaryOperator) && in modifyContext()
1457 Previous->isOneOf(tok::star, tok::amp, tok::ampamp) && in modifyContext()
1465 } else if (Current.isOneOf(tok::kw_return, tok::kw_throw)) { in modifyContext()
1477 } else if (Current.isOneOf(tok::r_paren, tok::greater, tok::comma)) { in modifyContext()
1479 Previous && Previous->isOneOf(tok::star, tok::amp); in modifyContext()
1585 Current.Previous->isOneOf( in determineTokenType()
1593 Current.Next->isOneOf(TT_BinaryOperator, Keywords.kw_as)) { in determineTokenType()
1614 } else if (Current.isOneOf(tok::kw_auto, tok::kw___auto_type)) { in determineTokenType()
1632 } else if (Current.isOneOf(tok::star, tok::amp, tok::ampamp)) { in determineTokenType()
1637 } else if (Current.isOneOf(tok::minus, tok::plus, tok::caret)) { in determineTokenType()
1641 } else if (Current.isOneOf(tok::minusminus, tok::plusplus)) { in determineTokenType()
1643 } else if (Current.isOneOf(tok::exclaim, tok::tilde)) { in determineTokenType()
1675 !Current.Next->isOneOf(tok::semi, tok::colon, tok::l_brace, in determineTokenType()
1710 PreviousNoComment->isOneOf(tok::comma, tok::l_brace)) in determineTokenType()
1713 Current.Previous->isOneOf(TT_JavaAnnotation, in determineTokenType()
1729 } else if (Current.isOneOf(tok::identifier, tok::kw_const, tok::kw_noexcept, in determineTokenType()
1732 !Current.Previous->isOneOf(tok::equal, tok::at) && in determineTokenType()
1749 Current.Previous->isOneOf(TT_JavaAnnotation, in determineTokenType()
1765 if (Tok.Previous->isOneOf(TT_LeadingJavaAnnotation, Keywords.kw_instanceof, in isStartOfName()
1795 PreviousNotConst->isOneOf(tok::identifier, tok::kw_auto)) || in isStartOfName()
1825 !LeftOfParens->isOneOf(Keywords.kw_in, tok::kw_return, tok::kw_case, in rParenEndsCast()
1831 if (LeftOfParens->isOneOf(tok::at, tok::r_square, TT_OverloadedOperator, in rParenEndsCast()
1845 if (Tok.Next->isOneOf(tok::kw_noexcept, tok::kw_volatile, tok::kw_const, in rParenEndsCast()
1859 Tok.Next->isOneOf(tok::kw_sizeof, tok::kw_alignof))) in rParenEndsCast()
1892 Tok.Previous->isOneOf(TT_TemplateCloser, TT_TypeDeclarationParen) || in rParenEndsCast()
1896 Tok.Next->isOneOf(tok::equal, tok::semi, tok::l_brace, tok::greater); in rParenEndsCast()
1915 if (Tok.Next->isOneOf(tok::identifier, tok::kw_this)) in rParenEndsCast()
1925 Tok.Next->isUnaryOperator() || Tok.Next->isOneOf(tok::amp, tok::star); in rParenEndsCast()
1927 !Tok.Next->Next->isOneOf(tok::identifier, tok::numeric_constant)) in rParenEndsCast()
1932 if (!Prev->isOneOf(tok::kw_const, tok::identifier, tok::coloncolon)) in rParenEndsCast()
1954 NextToken->isOneOf(tok::arrow, tok::equal, tok::kw_noexcept) || in determineStarAmpUsage()
1965 if (PrevToken->isOneOf(tok::l_paren, tok::l_square, tok::l_brace, in determineStarAmpUsage()
1969 PrevToken->isOneOf(TT_BinaryOperator, TT_ConditionalExpr, in determineStarAmpUsage()
1977 if (NextToken->isOneOf(tok::comma, tok::semi)) in determineStarAmpUsage()
1981 PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::kw_true, in determineStarAmpUsage()
1984 NextToken->isOneOf(tok::kw_true, tok::kw_false) || in determineStarAmpUsage()
2017 if (PrevToken->isOneOf(TT_CastRParen, TT_UnaryOperator)) in determinePlusMinusCaretUsage()
2022 if (PrevToken->isOneOf(tok::equal, tok::l_paren, tok::comma, tok::l_square, in determinePlusMinusCaretUsage()
2041 if (PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::identifier)) in determineIncrementUsage()
2079 Current->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral)))) in parse()
2168 (NextNonComment->isOneOf(TT_DictLiteral, TT_JsTypeColon) || in getCurrentPrecedence()
2179 if (Current->isOneOf(tok::semi, TT_InlineASMColon, TT_SelectorName) || in getCurrentPrecedence()
2190 Current->isOneOf(Keywords.kw_in, Keywords.kw_as)) in getCurrentPrecedence()
2194 if (Current->isOneOf(tok::period, tok::arrow)) in getCurrentPrecedence()
2198 Current->isOneOf(Keywords.kw_extends, Keywords.kw_implements, in getCurrentPrecedence()
2353 if (Next->isOneOf(tok::kw_new, tok::kw_delete)) { in isFunctionDeclarationName()
2366 Next->Next && Next->Next->isOneOf(tok::star, tok::amp, tok::ampamp)) { in isFunctionDeclarationName()
2427 if (Tok->isOneOf(tok::l_paren, TT_TemplateOpener) && Tok->MatchingParen) { in isFunctionDeclarationName()
2432 Tok->isOneOf(TT_PointerOrReference, TT_StartOfName, tok::ellipsis)) in isFunctionDeclarationName()
2434 if (Tok->isOneOf(tok::l_brace, tok::string_literal, TT_ObjCMethodExpr) || in isFunctionDeclarationName()
2497 if (Parameter->isOneOf(tok::comment, tok::r_brace)) in calculateFormattingInformation()
2585 Current->isOneOf(tok::comment, tok::string_literal)) { in calculateUnbreakableTailLengths()
2605 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_throws)) in splitPenalty()
2634 if (!Right.isOneOf(TT_ObjCMethodExpr, TT_LambdaLSquare, in splitPenalty()
2643 if (Right.isOneOf(TT_StartOfName, TT_FunctionDeclarationName) || in splitPenalty()
2661 if (Left.isOneOf(tok::kw_class, tok::kw_struct)) in splitPenalty()
2666 if (Left.isOneOf(TT_RangeBasedForLoopColon, TT_InheritanceColon, in splitPenalty()
2725 Left.Previous->isOneOf(tok::identifier, tok::greater)) in splitPenalty()
2757 if (Left.isOneOf(tok::plus, tok::comma) && Left.Previous && in splitPenalty()
2809 if (Left.isOneOf(tok::hashhash, tok::hash)) in spaceRequiredBetween()
2837 if (Right.isOneOf(tok::semi, tok::comma)) in spaceRequiredBetween()
2847 if (Left.isOneOf(tok::exclaim, tok::tilde)) in spaceRequiredBetween()
2850 Right.isOneOf(tok::identifier, tok::string_literal, tok::char_constant, in spaceRequiredBetween()
2858 if (Left.is(tok::less) || Right.isOneOf(tok::greater, tok::less)) { in spaceRequiredBetween()
2891 (!Left.isOneOf(TT_PointerOrReference, tok::l_paren) && in spaceRequiredBetween()
2910 (Right.isOneOf(Keywords.kw_override, Keywords.kw_final) && in spaceRequiredBetween()
2913 (!Right.isOneOf(TT_PointerOrReference, TT_ArraySubscriptLSquare, in spaceRequiredBetween()
2918 !Left.Previous->isOneOf(tok::l_paren, tok::coloncolon, in spaceRequiredBetween()
2923 Left.Previous->isOneOf(tok::star, tok::amp, tok::ampamp)) in spaceRequiredBetween()
2928 if (Left.is(tok::star) && Right.isOneOf(tok::star, tok::amp, tok::ampamp)) in spaceRequiredBetween()
2930 if (Right.isOneOf(tok::star, tok::amp, tok::ampamp)) { in spaceRequiredBetween()
2975 (Left.isOneOf(TT_ArraySubscriptLSquare, TT_StructuredBindingLSquare, in spaceRequiredBetween()
2984 Right.MatchingParen->isOneOf(TT_ArraySubscriptLSquare, in spaceRequiredBetween()
2989 !Right.isOneOf(TT_ObjCMethodExpr, TT_LambdaLSquare, in spaceRequiredBetween()
2992 !Left.isOneOf(tok::numeric_constant, TT_DictLiteral) && in spaceRequiredBetween()
3021 (Left.isOneOf(tok::pp_elif, tok::kw_for, tok::kw_while, in spaceRequiredBetween()
3025 (Left.isOneOf(tok::kw_try, Keywords.kw___except, tok::kw_catch, in spaceRequiredBetween()
3038 return !Left.isOneOf(tok::l_paren, tok::l_square, tok::at) && in spaceRequiredBetween()
3040 if ((Left.isOneOf(tok::identifier, tok::greater, tok::r_square, in spaceRequiredBetween()
3068 Right.isOneOf(tok::amp, tok::ampamp) && in spaceRequiredBetween()
3069 Left.isOneOf(tok::kw_const, tok::kw_volatile) && in spaceRequiredBetween()
3092 Left.isOneOf(Keywords.kw_optional, Keywords.kw_required, in spaceRequiredBefore()
3096 Left.isOneOf(Keywords.kw_returns, Keywords.kw_option)) in spaceRequiredBefore()
3098 if (Right.isOneOf(tok::l_brace, tok::less) && Left.is(TT_SelectorName)) in spaceRequiredBefore()
3105 Right.isOneOf(tok::l_brace, tok::less)) in spaceRequiredBefore()
3160 return !Right.isOneOf(TT_TemplateCloser, tok::r_paren); in spaceRequiredBefore()
3188 if (Left.isOneOf(tok::kw_using, Keywords.kw_async, Keywords.kw_when, in spaceRequiredBefore()
3195 if (Left.isOneOf(tok::kw_public, tok::kw_private, tok::kw_protected, in spaceRequiredBefore()
3227 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield)) in spaceRequiredBefore()
3229 if (Right.isOneOf(tok::l_brace, tok::l_square) && in spaceRequiredBefore()
3230 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield, in spaceRequiredBefore()
3243 if (Left.isOneOf(tok::kw_throw, Keywords.kw_await, Keywords.kw_typeof, in spaceRequiredBefore()
3251 if ((Left.isOneOf(Keywords.kw_let, Keywords.kw_var, Keywords.kw_in, in spaceRequiredBefore()
3258 Left.Previous->isOneOf(tok::r_square, tok::r_brace)))) && in spaceRequiredBefore()
3261 if (Left.isOneOf(tok::kw_for, Keywords.kw_as) && Left.Previous && in spaceRequiredBefore()
3265 Right.isOneOf(tok::l_square, tok::l_brace, tok::l_paren)) in spaceRequiredBefore()
3272 if (Right.isOneOf(TT_JsTypeColon, TT_JsTypeOptionalQuestion)) in spaceRequiredBefore()
3277 Line.First->isOneOf(Keywords.kw_import, tok::kw_export)) in spaceRequiredBefore()
3282 !Right.isOneOf(tok::equal, tok::l_brace, tok::comma, tok::l_square, in spaceRequiredBefore()
3291 Right.isOneOf(Keywords.kw_as, Keywords.kw_in)) in spaceRequiredBefore()
3298 if ((Left.isOneOf(tok::kw_static, tok::kw_public, tok::kw_private, in spaceRequiredBefore()
3300 Left.isOneOf(Keywords.kw_final, Keywords.kw_abstract, in spaceRequiredBefore()
3320 if (Right.isOneOf(TT_TrailingReturnArrow, TT_LambdaArrow) || in spaceRequiredBefore()
3321 Left.isOneOf(TT_TrailingReturnArrow, TT_LambdaArrow)) in spaceRequiredBefore()
3342 if (Line.First->isOneOf(tok::kw_case, tok::kw_default) || in spaceRequiredBefore()
3384 Right.isOneOf(TT_BinaryOperator, TT_SelectorName); in spaceRequiredBefore()
3393 if (Right.isOneOf(tok::arrow, tok::arrowstar, tok::periodstar) || in spaceRequiredBefore()
3394 Left.isOneOf(tok::arrow, tok::period, tok::arrowstar, tok::periodstar) || in spaceRequiredBefore()
3409 !Left.isOneOf(tok::l_brace, tok::comment, tok::l_paren)) in spaceRequiredBefore()
3413 !(Left.isOneOf(tok::l_paren, tok::r_paren, tok::l_square, in spaceRequiredBefore()
3421 return !Left.isOneOf(tok::amp, tok::ampamp) || in spaceRequiredBefore()
3425 Right.isOneOf(tok::amp, tok::ampamp)) in spaceRequiredBefore()
3428 (Left.isOneOf(TT_BinaryOperator, TT_ConditionalExpr) && in spaceRequiredBefore()
3450 !Tok.isOneOf(TT_ObjCBlockLBrace, TT_LambdaLBrace, TT_DictLiteral); in isAllmanBrace()
3456 Tok.MatchingParen->Next->isOneOf(tok::comma, tok::r_paren); in IsFunctionArgument()
3486 !Tok.isOneOf(TT_ObjCBlockLBrace, TT_DictLiteral)); in isAllmanLambdaBrace()
3520 Line.First->isOneOf(tok::identifier, Keywords.kw_import, tok::kw_export, in mustBreakBefore()
3524 !Line.First->isOneOf(Keywords.kw_var, Keywords.kw_let)) in mustBreakBefore()
3582 if ((Left.isOneOf(tok::l_brace, TT_ArrayInitializerLSquare) || in mustBreakBefore()
3588 (Right.MatchingParen->isOneOf(tok::l_brace, in mustBreakBefore()
3769 if (Left.isOneOf(tok::r_brace, tok::greater, tok::r_square)) in mustBreakBefore()
3779 !Right.isOneOf(tok::l_paren, TT_LambdaLSquare)) { in mustBreakBefore()
3793 if (!Next->isOneOf(TT_LambdaLSquare, tok::l_brace, tok::caret)) in mustBreakBefore()
3805 if (Left.isOneOf(TT_CSharpNamedArgumentColon, TT_AttributeColon) || in canBreakBefore()
3806 Right.isOneOf(TT_CSharpNamedArgumentColon, TT_AttributeColon)) in canBreakBefore()
3812 if (Left.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
3815 if (Right.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
3821 NonComment->isOneOf( in canBreakBefore()
3830 Left.isOneOf(tok::r_square, tok::r_paren)) && in canBreakBefore()
3831 Right.isOneOf(tok::l_square, tok::l_paren)) in canBreakBefore()
3861 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_infer)) { in canBreakBefore()
3872 Right.isOneOf(Keywords.kw_module, tok::kw_namespace, in canBreakBefore()
3879 if (Left.isOneOf(Keywords.kw_module, tok::kw_namespace) && in canBreakBefore()
3880 Right.isOneOf(tok::identifier, tok::string_literal)) in canBreakBefore()
3897 if (Left.isOneOf(TT_JavaAnnotation, TT_LeadingJavaAnnotation)) in canBreakBefore()
3903 if (Right.isOneOf(TT_StartOfName, TT_FunctionDeclarationName) || in canBreakBefore()
3932 !Right.isOneOf(TT_CtorInitializerColon, TT_InlineASMColon)) in canBreakBefore()
3934 if (Left.is(tok::colon) && Left.isOneOf(TT_DictLiteral, TT_ObjCMethodExpr)) { in canBreakBefore()
3980 if (Right.isOneOf(TT_RangeBasedForLoopColon, TT_OverloadedOperatorLParen, in canBreakBefore()
3989 if (Left.isOneOf(TT_TemplateCloser, TT_UnaryOperator) || in canBreakBefore()
3992 if (Left.is(tok::equal) && !Right.isOneOf(tok::kw_default, tok::kw_delete) && in canBreakBefore()
3999 Left.isOneOf(TT_AttributeParen, TT_TypeDeclarationParen)) in canBreakBefore()
4002 (Left.Previous->isOneOf(TT_BinaryOperator, TT_CastRParen))) in canBreakBefore()
4021 return !Right.isOneOf(tok::l_brace, tok::semi, tok::equal, tok::l_paren, in canBreakBefore()
4063 !Left.isOneOf(tok::arrowstar, tok::lessless) && in canBreakBefore()
4080 return Left.isOneOf(tok::comma, tok::coloncolon, tok::semi, tok::l_brace, in canBreakBefore()
4083 Right.isOneOf(TT_TrailingReturnArrow, TT_LambdaArrow, tok::lessless, in canBreakBefore()
4087 Right.isOneOf(tok::identifier, tok::kw_const)) || in canBreakBefore()