Lines Matching refs:isOneOf
82 return Tok.isOneOf(tok::kw_if, tok::kw_for, tok::kw_while, tok::kw_switch, in isKeywordWithCondition()
210 (!Next || !Next->isOneOf(tok::l_paren, tok::l_brace))) { in parseAngle()
225 BeforeLess->isOneOf(TT_SelectorName, TT_DictLiteral))) { in parseAngle()
241 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace)) in parseAngle()
256 if (Prev.isOneOf(tok::question, tok::colon) && !Style.isProto()) in parseAngle()
262 (CurrentToken->isOneOf(tok::l_brace, tok::less) && in parseAngle()
269 if (CurrentToken->isOneOf(tok::comma, tok::equal)) { in parseAngle()
350 Prev->Previous && Prev->Previous->isOneOf(tok::period, tok::arrow); in parseParens()
363 (OpeningParen.Previous->isOneOf( in parseParens()
402 OpeningParen.Previous->MatchingParen->isOneOf( in parseParens()
408 OpeningParen.Previous->isOneOf(tok::kw_for, tok::kw_catch); in parseParens()
439 } else if (PrevNonComment->isOneOf(TT_TypenameMacro, tok::kw_decltype, in parseParens()
446 if (PrevNonComment->isOneOf(tok::kw_decltype, tok::kw_typeof)) in parseParens()
492 CurrentToken->Previous->Previous->isOneOf(tok::l_paren, in parseParens()
560 if (CurrentToken->isOneOf(tok::r_square, tok::r_brace)) in parseParens()
572 CurrentToken->Next->isOneOf(tok::star, tok::amp, tok::caret)); in parseParens()
573 if ((CurrentToken->Previous->isOneOf(tok::kw_const, tok::kw_auto) || in parseParens()
579 if (CurrentToken->isOneOf(tok::semi, tok::colon)) { in parseParens()
658 AttrTok->isOneOf(tok::comment, tok::kw_class, tok::kw_static, in isCSharpAttributeSpecifier()
707 !CurrentToken->isOneOf(tok::l_brace, tok::r_square) && in parseSquare()
709 Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare()
713 Parent->isOneOf(TT_ObjCForIn, TT_CastRParen) || in parseSquare()
732 Parent->isOneOf(tok::l_brace, tok::comma)) { in parseSquare()
735 Parent && Parent->isOneOf(tok::l_brace, tok::comma)) { in parseSquare()
779 Parent->isOneOf(TT_BinaryOperator, TT_TemplateCloser, tok::at, in parseSquare()
868 if (CurrentToken->isOneOf(tok::r_paren, tok::r_brace)) in parseSquare()
878 Left->isOneOf(TT_ArraySubscriptLSquare, in parseSquare()
896 if (CurrentToken->isOneOf(tok::comma, tok::minus, tok::ellipsis)) { in parseSquare()
938 CurrentToken->Next->isOneOf(tok::colon, tok::semi, tok::l_brace)) { in parseTableGenValue()
956 if (CurrentToken->isOneOf(tok::l_brace, tok::l_square, tok::period)) { in parseTableGenValue()
1013 Tok.isOneOf(TT_TableGenBangOperator, TT_TableGenCondOperator)) { in isTableGenDAGArgBreakingOperator()
1037 if (FirstTok->isOneOf(TT_TableGenBangOperator, in parseTableGenDAGArgAndList()
1082 if (Tok->isOneOf(tok::numeric_constant, tok::string_literal, in parseTableGenSimpleValue()
1212 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square)) in parseBrace()
1215 if (CurrentToken->isOneOf(tok::colon, tok::l_brace, tok::less)) { in parseBrace()
1298 CurrentToken->isOneOf(tok::kw_if, tok::kw_switch, tok::kw_case, in consumeToken()
1330 !Line.First->isOneOf(tok::kw_enum, tok::kw_case)) || in consumeToken()
1370 if (Line.First->isOneOf(Keywords.kw_module, Keywords.kw_import) || in consumeToken()
1418 !Line.First->isOneOf(tok::kw_enum, tok::kw_case, in consumeToken()
1423 if (Prev->isOneOf(tok::r_paren, tok::kw_noexcept) || in consumeToken()
1431 if (PrevPrev && PrevPrev->isOneOf(tok::r_paren, tok::kw_noexcept)) in consumeToken()
1439 (Tok->Next->isOneOf(tok::r_paren, tok::comma) || in consumeToken()
1464 CurrentToken->isOneOf(tok::kw_constexpr, tok::identifier)) { in consumeToken()
1559 !Tok->isOneOf(TT_TypeDeclarationParen, TT_RequiresExpressionLParen)) { in consumeToken()
1563 !Previous->isOneOf(TT_RequiresClause, TT_LeadingJavaAnnotation))) { in consumeToken()
1595 Tok->Previous->isOneOf(TT_SelectorName, TT_DictLiteral))) { in consumeToken()
1631 !CurrentToken->isOneOf(tok::l_paren, tok::semi, tok::r_paren)) { in consumeToken()
1632 if (CurrentToken->isOneOf(tok::star, tok::amp)) in consumeToken()
1647 if (Previous->isOneOf(TT_BinaryOperator, TT_UnaryOperator, tok::comma, in consumeToken()
1652 if (CurrentToken->isOneOf(tok::less, tok::greater)) in consumeToken()
1663 Tok->Next->isOneOf(tok::semi, tok::comma, tok::colon, tok::r_paren, in consumeToken()
1706 !Tok->Next->isOneOf(tok::identifier, tok::string_literal) || in consumeToken()
1708 !Tok->Next->Next->isOneOf(tok::colon, tok::question))) { in consumeToken()
1751 if (Tok->isOneOf(Keywords.kw___has_include, in consumeToken()
1766 } else if (Tok->isOneOf(Keywords.kw_def, Keywords.kw_defm) && in consumeToken()
1768 !Tok->Next->isOneOf(tok::colon, tok::l_brace))) { in consumeToken()
1850 CurrentToken->isOneOf(Keywords.kw_mark, Keywords.kw_option, in parsePragma()
1853 CurrentToken->isOneOf(Keywords.kw_mark, Keywords.kw_region); in parsePragma()
1934 } else if (Tok->isOneOf(Keywords.kw___has_include, in parsePreprocessorDirective()
1964 CurrentToken->Next->isOneOf(tok::string_literal, tok::identifier, in parseLine()
1981 CurrentToken->isOneOf(Keywords.kw_option, Keywords.kw_package)) { in parseLine()
2061 !CurrentToken->isOneOf( in resetTokenMetadata()
2174 if (Line.First->isOneOf(tok::kw_using, tok::kw_return)) in modifyContext()
2195 return !Current.Previous->Previous->isOneOf(tok::kw_typename, in modifyContext()
2206 if (Tok->isOneOf(tok::kw_class, tok::kw_enum, tok::kw_struct, in modifyContext()
2231 !Previous->Previous->isOneOf(tok::comma, tok::semi); in modifyContext()
2233 if (Previous->isOneOf(tok::r_square, tok::r_paren, tok::greater)) { in modifyContext()
2240 if (Previous->isOneOf(TT_BinaryOperator, TT_UnaryOperator) && in modifyContext()
2251 } else if (Current.isOneOf(tok::kw_return, tok::kw_throw)) { in modifyContext()
2255 } else if (Current.isOneOf(TT_LambdaArrow, Keywords.kw_assert)) { in modifyContext()
2263 } else if (Current.isOneOf(tok::r_paren, tok::greater, tok::comma)) { in modifyContext()
2265 Previous && Previous->isOneOf(tok::star, tok::amp); in modifyContext()
2355 Current.Previous->isOneOf( in determineTokenType()
2365 Current.Next->isOneOf(TT_BinaryOperator, Keywords.kw_as)) { in determineTokenType()
2386 } else if (Current.isOneOf(tok::kw_auto, tok::kw___auto_type)) { in determineTokenType()
2396 !Current.Previous->isOneOf(tok::kw_operator, tok::identifier)) { in determineTokenType()
2412 } else if (Current.isOneOf(tok::minus, tok::plus, tok::caret) || in determineTokenType()
2417 } else if (Current.isOneOf(tok::minusminus, tok::plusplus)) { in determineTokenType()
2419 } else if (Current.isOneOf(tok::exclaim, tok::tilde)) { in determineTokenType()
2464 Current.getPreviousNonComment()->isOneOf(tok::comma, tok::l_brace) && in determineTokenType()
2466 Current.getNextNonComment()->isOneOf(tok::comma, tok::r_brace)) { in determineTokenType()
2477 !Current.Next->isOneOf( in determineTokenType()
2513 PreviousNoComment->isOneOf(tok::comma, tok::l_brace)) { in determineTokenType()
2516 Current.Previous->isOneOf(TT_JavaAnnotation, in determineTokenType()
2532 } else if (Current.isOneOf(tok::identifier, tok::kw_const, tok::kw_noexcept, in determineTokenType()
2535 !Current.Previous->isOneOf(tok::equal, tok::at, in determineTokenType()
2554 Current.Previous->isOneOf(TT_JavaAnnotation, in determineTokenType()
2583 if (Tok.Previous->isOneOf(TT_LeadingJavaAnnotation, Keywords.kw_instanceof, in isStartOfName()
2635 if (PreviousNotConst->isOneOf(tok::identifier, tok::kw_auto) && in isStartOfName()
2669 Prev->isOneOf(tok::kw_const_cast, tok::kw_dynamic_cast, in lParenStartsCppCast()
2744 !LeftOfParens->isOneOf(Keywords.kw_in, tok::kw_return, tok::kw_case, in rParenEndsCast()
2751 if (LeftOfParens->isOneOf(tok::at, tok::r_square, TT_OverloadedOperator, in rParenEndsCast()
2768 if (AfterRParen->isOneOf(tok::kw_noexcept, tok::kw_volatile, tok::kw_const, in rParenEndsCast()
2781 if (AfterRParen->isOneOf(tok::kw_sizeof, tok::kw_alignof) || in rParenEndsCast()
2821 BeforeRParen->isOneOf(TT_TemplateCloser, TT_TypeDeclarationParen) || in rParenEndsCast()
2825 AfterRParen->isOneOf(tok::equal, tok::semi, tok::l_brace, tok::greater); in rParenEndsCast()
2843 if (AfterRParen->isOneOf(tok::identifier, tok::kw_this)) in rParenEndsCast()
2865 const bool NextIsAmpOrStar = AfterRParen->isOneOf(tok::amp, tok::star); in rParenEndsCast()
2868 !AfterRParen->Next->isOneOf(tok::identifier, tok::numeric_constant)) { in rParenEndsCast()
2892 if (!Prev->isOneOf(tok::kw_const, tok::identifier, tok::coloncolon)) in rParenEndsCast()
2911 if (PrevToken->isOneOf( in determineUnaryOperatorByUsage()
2926 if (PrevToken->isOneOf(TT_CastRParen, TT_UnaryOperator)) in determineUnaryOperatorByUsage()
2962 if (PrevToken->isOneOf(tok::kw_new, tok::kw_delete) && Tok.is(tok::ampamp)) in determineStarAmpUsage()
2971 NextToken->isOneOf(tok::arrow, tok::equal, tok::comma, tok::r_paren, in determineStarAmpUsage()
2992 if (NextToken->isOneOf(tok::comma, tok::semi)) in determineStarAmpUsage()
3014 PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::kw_true, in determineStarAmpUsage()
3023 NextNonParen->isOneOf(tok::kw_true, tok::kw_false) || in determineStarAmpUsage()
3037 NextToken->isOneOf(tok::l_paren, tok::star, tok::amp)) { in determineStarAmpUsage()
3060 return !token || token->isOneOf(tok::amp, tok::period, tok::arrow, in determineStarAmpUsage()
3099 if (PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::identifier)) in determineIncrementUsage()
3143 Current->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral)))) { in parse()
3221 Current->isOneOf(TT_RequiresClause, in parse()
3253 Start->Previous->isOneOf(TT_RequiresClause, in parse()
3281 (NextNonComment->isOneOf(TT_DictLiteral, TT_JsTypeColon) || in getCurrentPrecedence()
3291 if (Current->isOneOf(tok::semi, TT_InlineASMColon, TT_SelectorName) || in getCurrentPrecedence()
3303 Current->isOneOf(Keywords.kw_in, Keywords.kw_as)) { in getCurrentPrecedence()
3308 if (Current->isOneOf(tok::period, tok::arrow) && in getCurrentPrecedence()
3313 Current->isOneOf(Keywords.kw_extends, Keywords.kw_implements, in getCurrentPrecedence()
3435 while (Tok && Tok->isOneOf(tok::period, tok::coloncolon) && in verilogGroupDecl()
3446 if (Next->isOneOf( in verilogGroupDecl()
3594 if (Tok->isOneOf(tok::kw_friend, tok::kw_inline, tok::kw_virtual, in getFunctionName()
3717 if (Next->isOneOf(tok::kw_new, tok::kw_delete)) { in isFunctionDeclarationName()
3752 !Previous.isOneOf(tok::kw_return, tok::kw_co_return)) { in isFunctionDeclarationName()
3825 if (Tok->isOneOf(tok::l_paren, TT_TemplateOpener) && Tok->MatchingParen) { in isFunctionDeclarationName()
3830 Tok->isOneOf(TT_PointerOrReference, TT_StartOfName, tok::ellipsis)) { in isFunctionDeclarationName()
3833 if (Tok->isOneOf(tok::l_brace, TT_ObjCMethodExpr) || Tok->Tok.isLiteral()) in isFunctionDeclarationName()
3997 if (Parameter->isOneOf(tok::comment, tok::r_brace)) in calculateFormattingInformation()
4092 Current->isOneOf(tok::comment, tok::string_literal)) { in calculateUnbreakableTailLengths()
4129 if (Depth == 2 && CurrentToken->isOneOf(tok::l_brace, tok::comma)) { in calculateInitializerColumnList()
4152 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_throws)) in splitPenalty()
4185 if (!Right.isOneOf(TT_ObjCMethodExpr, TT_LambdaLSquare, in splitPenalty()
4194 if (Right.isOneOf(TT_StartOfName, TT_FunctionDeclarationName) || in splitPenalty()
4212 if (Left.isOneOf(tok::kw_class, tok::kw_struct, tok::kw_union)) in splitPenalty()
4217 if (Left.isOneOf(TT_RangeBasedForLoopColon, TT_InheritanceColon, in splitPenalty()
4277 Left.Previous->isOneOf(tok::identifier, tok::greater)) { in splitPenalty()
4288 (Left.Previous->isOneOf(tok::kw_for, tok::kw__Generic) || in splitPenalty()
4316 if (Left.isOneOf(tok::plus, tok::comma) && Left.Previous && in splitPenalty()
4374 !Right.isOneOf(tok::semi, tok::r_paren, tok::hashhash)) { in spaceRequiredBetween()
4389 if (Left.isOneOf(tok::hashhash, tok::hash)) in spaceRequiredBetween()
4424 if (Left.is(tok::kw_auto) && Right.isOneOf(TT_LambdaLBrace, TT_FunctionLBrace, in spaceRequiredBetween()
4431 if (Left.is(tok::kw_auto) && Right.isOneOf(tok::l_paren, tok::l_brace)) in spaceRequiredBetween()
4442 if (Left.isOneOf(tok::kw_co_await, tok::kw_co_yield, tok::kw_co_return) && in spaceRequiredBetween()
4443 !Right.isOneOf(tok::semi, tok::r_paren)) { in spaceRequiredBetween()
4453 if (Right.isOneOf(tok::semi, tok::comma)) in spaceRequiredBetween()
4463 if (Left.isOneOf(tok::exclaim, tok::tilde)) in spaceRequiredBetween()
4466 Right.isOneOf(tok::identifier, tok::string_literal, tok::char_constant, in spaceRequiredBetween()
4475 if (Left.is(tok::less) || Right.isOneOf(tok::greater, tok::less)) { in spaceRequiredBetween()
4520 return !Left.isOneOf(TT_PointerOrReference, tok::l_paren) && in spaceRequiredBetween()
4549 if (Right.isOneOf(Keywords.kw_override, Keywords.kw_final, tok::kw_noexcept, in spaceRequiredBetween()
4563 if (Right.isOneOf(TT_PointerOrReference, TT_ArraySubscriptLSquare, in spaceRequiredBetween()
4593 return !BeforeLeft->isOneOf(tok::l_paren, tok::l_square); in spaceRequiredBetween()
4657 (Left.isOneOf(TT_ArraySubscriptLSquare, TT_StructuredBindingLSquare, in spaceRequiredBetween()
4667 Right.MatchingParen->isOneOf(TT_ArraySubscriptLSquare, in spaceRequiredBetween()
4672 !Right.isOneOf(TT_ObjCMethodExpr, TT_LambdaLSquare, in spaceRequiredBetween()
4675 !Left.isOneOf(tok::numeric_constant, TT_DictLiteral) && in spaceRequiredBetween()
4700 if (Left.isOneOf(TT_RequiresClause, in spaceRequiredBetween()
4722 Left.isOneOf(tok::kw_new, tok::kw_delete) && in spaceRequiredBetween()
4731 if (Left.isOneOf(tok::pp_elif, tok::kw_for, tok::kw_while, tok::kw_switch, in spaceRequiredBetween()
4758 if (!BeforeLeft || !BeforeLeft->isOneOf(tok::period, tok::arrow)) { in spaceRequiredBetween()
4759 if (Left.isOneOf(tok::kw_try, Keywords.kw___except, tok::kw_catch)) { in spaceRequiredBetween()
4763 if (Left.isOneOf(tok::kw_new, tok::kw_delete)) { in spaceRequiredBetween()
4786 return !Left.isOneOf(tok::l_paren, tok::l_square, tok::at) && in spaceRequiredBetween()
4794 (Left.isOneOf(tok::identifier, tok::greater, tok::r_square, in spaceRequiredBetween()
4832 if (Right.is(TT_TrailingAnnotation) && Right.isOneOf(tok::amp, tok::ampamp) && in spaceRequiredBetween()
4833 Left.isOneOf(tok::kw_const, tok::kw_volatile) && in spaceRequiredBetween()
4869 Right.isOneOf(TT_TemplateOpener, TT_TemplateCloser)) { in spaceRequiredBefore()
4877 if (Left.is(Keywords.kw_import) && Right.isOneOf(tok::less, tok::ellipsis)) in spaceRequiredBefore()
4880 if (Left.isOneOf(Keywords.kw_module, Keywords.kw_import) && in spaceRequiredBefore()
4889 Right.isOneOf(tok::identifier, tok::kw_private)) { in spaceRequiredBefore()
4897 if (Left.isOneOf(TT_AttributeRParen, TT_AttributeMacro) && in spaceRequiredBefore()
4920 Left.isOneOf(Keywords.kw_optional, Keywords.kw_required, in spaceRequiredBefore()
4925 Left.isOneOf(Keywords.kw_returns, Keywords.kw_option)) { in spaceRequiredBefore()
4928 if (Right.isOneOf(tok::l_brace, tok::less) && Left.is(TT_SelectorName)) in spaceRequiredBefore()
4935 Right.isOneOf(tok::l_brace, tok::less)) { in spaceRequiredBefore()
5006 if (Left.isOneOf(tok::kw_using, Keywords.kw_async, Keywords.kw_when, in spaceRequiredBefore()
5016 Left.isOneOf(tok::kw_virtual, tok::kw_extern, tok::kw_static, in spaceRequiredBefore()
5051 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield)) { in spaceRequiredBefore()
5054 if (Right.isOneOf(tok::l_brace, tok::l_square) && in spaceRequiredBefore()
5055 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield, in spaceRequiredBefore()
5070 if (Left.isOneOf(tok::kw_throw, Keywords.kw_await, Keywords.kw_typeof, in spaceRequiredBefore()
5078 if ((Left.isOneOf(Keywords.kw_let, Keywords.kw_var, Keywords.kw_in, in spaceRequiredBefore()
5085 Left.Previous->isOneOf(tok::r_square, tok::r_brace)))) && in spaceRequiredBefore()
5089 if (Left.isOneOf(tok::kw_for, Keywords.kw_as) && Left.Previous && in spaceRequiredBefore()
5094 Right.isOneOf(tok::l_square, tok::l_brace, tok::l_paren)) { in spaceRequiredBefore()
5103 if (Right.isOneOf(TT_JsTypeColon, TT_JsTypeOptionalQuestion)) in spaceRequiredBefore()
5108 Line.First->isOneOf(Keywords.kw_import, tok::kw_export)) { in spaceRequiredBefore()
5114 !Right.isOneOf(tok::equal, tok::l_brace, tok::comma, tok::l_square, in spaceRequiredBefore()
5124 Right.isOneOf(Keywords.kw_as, Keywords.kw_in)) { in spaceRequiredBefore()
5141 Left.isOneOf(tok::kw_static, Keywords.kw_final, Keywords.kw_abstract, in spaceRequiredBefore()
5153 !Right.isOneOf(tok::r_paren, tok::semi)) || in spaceRequiredBefore()
5160 Left.isOneOf(Keywords.kw_verilogHash, Keywords.kw_verilogHashHash)) { in spaceRequiredBefore()
5184 if (Left.is(tok::at) && Right.isOneOf(tok::l_paren, tok::star, tok::at)) in spaceRequiredBefore()
5188 Left.isOneOf(TT_VerilogDimensionedTypeName, Keywords.kw_function)) { in spaceRequiredBefore()
5192 if (Right.isOneOf(tok::period, Keywords.kw_apostrophe) && in spaceRequiredBefore()
5202 !(Left.isOneOf(Keywords.kw_assign, Keywords.kw_unique) || in spaceRequiredBefore()
5204 (Left.isOneOf(tok::r_square, tok::r_paren, tok::r_brace, in spaceRequiredBefore()
5222 Right.isOneOf(tok::lessless, tok::greatergreater)) || in spaceRequiredBefore()
5234 if (Right.isOneOf(TT_TableGenDAGArgListColon, in spaceRequiredBefore()
5236 Left.isOneOf(TT_TableGenDAGArgListColon, in spaceRequiredBefore()
5242 if (Left.isOneOf(TT_TableGenDAGArgOperatorID, in spaceRequiredBefore()
5248 if (Right.isOneOf(tok::l_paren, tok::less) && in spaceRequiredBefore()
5249 Left.isOneOf(TT_TableGenBangOperator, TT_TableGenCondOperator)) { in spaceRequiredBefore()
5255 Right.isOneOf(tok::l_brace, tok::colon)) { in spaceRequiredBefore()
5284 if (Right.isOneOf(TT_TrailingReturnArrow, TT_LambdaArrow) || in spaceRequiredBefore()
5285 Left.isOneOf(TT_TrailingReturnArrow, TT_LambdaArrow)) { in spaceRequiredBefore()
5339 if ((Left.isOneOf(tok::minus, tok::minusminus) && in spaceRequiredBefore()
5340 Right.isOneOf(tok::minus, tok::minusminus)) || in spaceRequiredBefore()
5341 (Left.isOneOf(tok::plus, tok::plusplus) && in spaceRequiredBefore()
5342 Right.isOneOf(tok::plus, tok::plusplus))) { in spaceRequiredBefore()
5357 Right.isOneOf(TT_BinaryOperator, TT_SelectorName); in spaceRequiredBefore()
5377 if (Right.isOneOf(tok::arrow, tok::arrowstar, tok::periodstar) || in spaceRequiredBefore()
5378 Left.isOneOf(tok::arrow, tok::period, tok::arrowstar, tok::periodstar) || in spaceRequiredBefore()
5397 !Left.isOneOf(tok::l_brace, tok::comment, tok::l_paren)) { in spaceRequiredBefore()
5402 !(Left.isOneOf(tok::l_paren, tok::r_paren, tok::l_square, in spaceRequiredBefore()
5411 return !Left.isOneOf(tok::amp, tok::ampamp) || in spaceRequiredBefore()
5416 Right.isOneOf(tok::amp, tok::ampamp)) { in spaceRequiredBefore()
5420 (Left.isOneOf(TT_BinaryOperator, TT_ConditionalExpr) && in spaceRequiredBefore()
5443 !Tok.isOneOf(TT_ObjCBlockLBrace, TT_LambdaLBrace, TT_DictLiteral); in isAllmanBrace()
5449 Tok.MatchingParen->Next->isOneOf(tok::comma, tok::r_paren); in IsFunctionArgument()
5460 !Tok.isOneOf(TT_ObjCBlockLBrace, TT_DictLiteral); in isAllmanLambdaBrace()
5514 Line.First->isOneOf(tok::identifier, Keywords.kw_import, tok::kw_export, in mustBreakBefore()
5518 !Line.First->isOneOf(Keywords.kw_var, Keywords.kw_let)) { in mustBreakBefore()
5608 if (Tok->isOneOf(tok::l_brace, tok::l_square)) in mustBreakBefore()
5610 if (Tok->isOneOf(tok::r_brace, tok::r_square)) in mustBreakBefore()
5646 if ((Left.isOneOf(tok::l_brace, TT_ArrayInitializerLSquare) || in mustBreakBefore()
5651 (Right.MatchingParen->isOneOf(tok::l_brace, in mustBreakBefore()
5716 Left.isOneOf(TT_CtorInitializerColon, TT_CtorInitializerComma)) { in mustBreakBefore()
5722 Right.isOneOf(TT_CtorInitializerComma, TT_CtorInitializerColon)) { in mustBreakBefore()
5803 if (Left.isOneOf(TT_AttributeRParen, TT_AttributeMacro) && in mustBreakBefore()
5918 if (Left.isOneOf(tok::r_brace, tok::greater, tok::r_square)) in mustBreakBefore()
5930 if (Left.isOneOf(TT_CSharpNamedArgumentColon, TT_AttributeColon) || in canBreakBefore()
5931 Right.isOneOf(TT_CSharpNamedArgumentColon, TT_AttributeColon)) { in canBreakBefore()
5941 if (Left.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
5945 if (Right.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
5953 NonComment->isOneOf( in canBreakBefore()
5963 Left.isOneOf(tok::r_square, tok::r_paren)) && in canBreakBefore()
5964 Right.isOneOf(tok::l_square, tok::l_paren)) { in canBreakBefore()
5999 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_infer)) { in canBreakBefore()
6010 Right.isOneOf(Keywords.kw_module, tok::kw_namespace, in canBreakBefore()
6018 if (Left.isOneOf(Keywords.kw_module, tok::kw_namespace) && in canBreakBefore()
6019 Right.isOneOf(tok::identifier, tok::string_literal)) { in canBreakBefore()
6036 return !Left.isOneOf(TT_TableGenBangOperator, TT_TableGenCondOperator, in canBreakBefore()
6045 if (Left.isOneOf(TT_TableGenBangOperator, TT_TableGenCondOperator)) in canBreakBefore()
6053 if (Left.isOneOf(TT_JavaAnnotation, TT_LeadingJavaAnnotation)) in canBreakBefore()
6061 if (Right.isOneOf(TT_StartOfName, TT_FunctionDeclarationName) || in canBreakBefore()
6093 !Right.isOneOf(TT_CtorInitializerColon, TT_InlineASMColon)) { in canBreakBefore()
6096 if (Left.is(tok::colon) && Left.isOneOf(TT_DictLiteral, TT_ObjCMethodExpr)) { in canBreakBefore()
6154 if (Right.isOneOf(TT_RangeBasedForLoopColon, TT_OverloadedOperatorLParen, in canBreakBefore()
6174 if (Left.isOneOf(TT_TemplateCloser, TT_UnaryOperator) || in canBreakBefore()
6178 if (Left.is(tok::equal) && !Right.isOneOf(tok::kw_default, tok::kw_delete) && in canBreakBefore()
6191 (Left.Previous->isOneOf(TT_BinaryOperator, TT_CastRParen))) { in canBreakBefore()
6229 return !Right.isOneOf(tok::l_brace, tok::semi, tok::equal, tok::l_paren, in canBreakBefore()
6272 !Left.isOneOf(tok::arrowstar, tok::lessless) && in canBreakBefore()
6302 return Left.isOneOf(tok::comma, tok::coloncolon, tok::semi, tok::l_brace, in canBreakBefore()
6305 Right.isOneOf(TT_TrailingReturnArrow, TT_LambdaArrow, tok::lessless, in canBreakBefore()
6308 Right.isOneOf(tok::identifier, tok::kw_const)) || in canBreakBefore()
6341 assert(Reference.isOneOf(tok::amp, tok::ampamp)); in getTokenReferenceAlignment()
6359 if (PointerOrReference.isOneOf(tok::amp, tok::ampamp)) { in getTokenPointerOrReferenceAlignment()