Lines Matching refs:isOneOf
82 return Tok.isOneOf(tok::kw_if, tok::kw_for, tok::kw_while, tok::kw_switch, in isKeywordWithCondition()
216 Left->Previous->isOneOf(TT_SelectorName, TT_DictLiteral))) { in parseAngle()
232 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace) || in parseAngle()
233 (CurrentToken->isOneOf(tok::colon, tok::question) && InExprContext && in parseAngle()
243 if (CurrentToken->Previous->isOneOf(tok::pipepipe, tok::ampamp) && in parseAngle()
253 (CurrentToken->isOneOf(tok::l_brace, tok::less) && in parseAngle()
329 Prev->Previous && Prev->Previous->isOneOf(tok::period, tok::arrow); in parseParens()
342 (OpeningParen.Previous->isOneOf( in parseParens()
381 OpeningParen.Previous->MatchingParen->isOneOf( in parseParens()
387 OpeningParen.Previous->isOneOf(tok::kw_for, tok::kw_catch); in parseParens()
396 } else if (PrevNonComment->isOneOf(TT_TypenameMacro, tok::kw_decltype, in parseParens()
403 if (PrevNonComment->isOneOf(tok::kw_decltype, tok::kw_typeof)) in parseParens()
449 CurrentToken->Previous->Previous->isOneOf(tok::l_paren, in parseParens()
517 if (CurrentToken->isOneOf(tok::r_square, tok::r_brace)) in parseParens()
529 CurrentToken->Next->isOneOf(tok::star, tok::amp, tok::caret)); in parseParens()
530 if ((CurrentToken->Previous->isOneOf(tok::kw_const, tok::kw_auto) || in parseParens()
536 if (CurrentToken->isOneOf(tok::semi, tok::colon)) { in parseParens()
598 if (AttrTok->isOneOf(tok::kw_public, tok::kw_private, tok::kw_protected, in isCSharpAttributeSpecifier()
649 !CurrentToken->isOneOf(tok::l_brace, tok::r_square) && in parseSquare()
651 Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare()
655 Parent->isOneOf(TT_ObjCForIn, TT_CastRParen) || in parseSquare()
674 Parent->isOneOf(tok::l_brace, tok::comma)) { in parseSquare()
677 Parent && Parent->isOneOf(tok::l_brace, tok::comma)) { in parseSquare()
721 Parent->isOneOf(TT_BinaryOperator, TT_TemplateCloser, tok::at, in parseSquare()
809 if (CurrentToken->isOneOf(tok::r_paren, tok::r_brace)) in parseSquare()
819 Left->isOneOf(TT_ArraySubscriptLSquare, in parseSquare()
902 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square)) in parseBrace()
905 if (CurrentToken->isOneOf(tok::colon, tok::l_brace, tok::less)) { in parseBrace()
980 CurrentToken->isOneOf(tok::kw_if, tok::kw_switch, tok::kw_case, in consumeToken()
1009 !Line.First->isOneOf(tok::kw_enum, tok::kw_case)) || in consumeToken()
1049 if (Line.First->isOneOf(Keywords.kw_module, Keywords.kw_import) || in consumeToken()
1095 !Line.First->isOneOf(tok::kw_enum, tok::kw_case, in consumeToken()
1100 if (Prev->isOneOf(tok::r_paren, tok::kw_noexcept) || in consumeToken()
1108 if (PrevPrev && PrevPrev->isOneOf(tok::r_paren, tok::kw_noexcept)) in consumeToken()
1114 (Tok->Next->isOneOf(tok::r_paren, tok::comma) || in consumeToken()
1134 CurrentToken->isOneOf(tok::kw_constexpr, tok::identifier)) { in consumeToken()
1228 !Tok->isOneOf(TT_TypeDeclarationParen, TT_RequiresExpressionLParen)) { in consumeToken()
1232 !Previous->isOneOf(TT_RequiresClause, TT_LeadingJavaAnnotation))) { in consumeToken()
1261 Tok->Previous->isOneOf(TT_SelectorName, TT_DictLiteral))) { in consumeToken()
1295 !CurrentToken->isOneOf(tok::l_paren, tok::semi, tok::r_paren)) { in consumeToken()
1296 if (CurrentToken->isOneOf(tok::star, tok::amp)) in consumeToken()
1311 if (Previous->isOneOf(TT_BinaryOperator, TT_UnaryOperator, tok::comma, in consumeToken()
1316 if (CurrentToken->isOneOf(tok::less, tok::greater)) in consumeToken()
1327 Tok->Next->isOneOf(tok::semi, tok::comma, tok::colon, tok::r_paren, in consumeToken()
1370 !Tok->Next->isOneOf(tok::identifier, tok::string_literal) || in consumeToken()
1372 !Tok->Next->Next->isOneOf(tok::colon, tok::question))) { in consumeToken()
1415 if (Tok->isOneOf(Keywords.kw___has_include, in consumeToken()
1495 CurrentToken->isOneOf(Keywords.kw_mark, Keywords.kw_option, in parsePragma()
1498 CurrentToken->isOneOf(Keywords.kw_mark, Keywords.kw_region); in parsePragma()
1577 } else if (Tok->isOneOf(Keywords.kw___has_include, in parsePreprocessorDirective()
1607 CurrentToken->Next->isOneOf(tok::string_literal, tok::identifier, in parseLine()
1624 CurrentToken->isOneOf(Keywords.kw_option, Keywords.kw_package)) { in parseLine()
1702 !CurrentToken->isOneOf( in resetTokenMetadata()
1812 if (Line.First->isOneOf(tok::kw_using, tok::kw_return)) in modifyContext()
1833 return !Current.Previous->Previous->isOneOf(tok::kw_typename, in modifyContext()
1844 if (Tok->isOneOf(tok::kw_class, tok::kw_enum, tok::kw_struct, in modifyContext()
1869 !Previous->Previous->isOneOf(tok::comma, tok::semi); in modifyContext()
1871 if (Previous->isOneOf(tok::r_square, tok::r_paren, tok::greater)) { in modifyContext()
1878 if (Previous->isOneOf(TT_BinaryOperator, TT_UnaryOperator) && in modifyContext()
1889 } else if (Current.isOneOf(tok::kw_return, tok::kw_throw)) { in modifyContext()
1901 } else if (Current.isOneOf(tok::r_paren, tok::greater, tok::comma)) { in modifyContext()
1903 Previous && Previous->isOneOf(tok::star, tok::amp); in modifyContext()
1993 Current.Previous->isOneOf( in determineTokenType()
2003 Current.Next->isOneOf(TT_BinaryOperator, Keywords.kw_as)) { in determineTokenType()
2023 } else if (Current.isOneOf(tok::kw_auto, tok::kw___auto_type)) { in determineTokenType()
2033 !Current.Previous->isOneOf(tok::kw_operator, tok::identifier)) { in determineTokenType()
2049 } else if (Current.isOneOf(tok::minus, tok::plus, tok::caret) || in determineTokenType()
2054 } else if (Current.isOneOf(tok::minusminus, tok::plusplus)) { in determineTokenType()
2056 } else if (Current.isOneOf(tok::exclaim, tok::tilde)) { in determineTokenType()
2098 Current.getPreviousNonComment()->isOneOf(tok::comma, tok::l_brace) && in determineTokenType()
2100 Current.getNextNonComment()->isOneOf(tok::comma, tok::r_brace)) { in determineTokenType()
2111 !Current.Next->isOneOf(tok::semi, tok::colon, tok::l_brace, in determineTokenType()
2147 PreviousNoComment->isOneOf(tok::comma, tok::l_brace)) { in determineTokenType()
2150 Current.Previous->isOneOf(TT_JavaAnnotation, in determineTokenType()
2166 } else if (Current.isOneOf(tok::identifier, tok::kw_const, tok::kw_noexcept, in determineTokenType()
2169 !Current.Previous->isOneOf(tok::equal, tok::at, in determineTokenType()
2188 Current.Previous->isOneOf(TT_JavaAnnotation, in determineTokenType()
2217 if (Tok.Previous->isOneOf(TT_LeadingJavaAnnotation, Keywords.kw_instanceof, in isStartOfName()
2266 if (PreviousNotConst->isOneOf(tok::identifier, tok::kw_auto)) in isStartOfName()
2298 Prev->isOneOf(tok::kw_const_cast, tok::kw_dynamic_cast, in lParenStartsCppCast()
2366 !LeftOfParens->isOneOf(Keywords.kw_in, tok::kw_return, tok::kw_case, in rParenEndsCast()
2373 if (LeftOfParens->isOneOf(tok::at, tok::r_square, TT_OverloadedOperator, in rParenEndsCast()
2379 if (Tok.Next->isOneOf(tok::question, tok::ampamp)) in rParenEndsCast()
2388 if (Tok.Next->isOneOf(tok::kw_noexcept, tok::kw_volatile, tok::kw_const, in rParenEndsCast()
2401 if (Tok.Next->isOneOf(tok::kw_sizeof, tok::kw_alignof) || in rParenEndsCast()
2440 Tok.Previous->isOneOf(TT_TemplateCloser, TT_TypeDeclarationParen) || in rParenEndsCast()
2444 Tok.Next->isOneOf(tok::equal, tok::semi, tok::l_brace, tok::greater); in rParenEndsCast()
2464 if (Tok.Next->isOneOf(tok::identifier, tok::kw_this)) in rParenEndsCast()
2481 const bool NextIsAmpOrStar = Tok.Next->isOneOf(tok::amp, tok::star); in rParenEndsCast()
2484 !Tok.Next->Next->isOneOf(tok::identifier, tok::numeric_constant)) { in rParenEndsCast()
2496 if (!Prev->isOneOf(tok::kw_const, tok::identifier, tok::coloncolon)) in rParenEndsCast()
2514 if (PrevToken->isOneOf( in determineUnaryOperatorByUsage()
2529 if (PrevToken->isOneOf(TT_CastRParen, TT_UnaryOperator)) in determineUnaryOperatorByUsage()
2572 NextToken->isOneOf(tok::arrow, tok::equal, tok::comma, tok::r_paren, in determineStarAmpUsage()
2593 if (NextToken->isOneOf(tok::comma, tok::semi)) in determineStarAmpUsage()
2615 PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::kw_true, in determineStarAmpUsage()
2624 NextNonParen->isOneOf(tok::kw_true, tok::kw_false) || in determineStarAmpUsage()
2638 NextToken->isOneOf(tok::l_paren, tok::star, tok::amp)) { in determineStarAmpUsage()
2661 return !token || token->isOneOf(tok::amp, tok::period, tok::arrow, in determineStarAmpUsage()
2700 if (PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::identifier)) in determineIncrementUsage()
2740 Current->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral)))) { in parse()
2818 Current->isOneOf(TT_RequiresClause, in parse()
2850 Start->Previous->isOneOf(TT_RequiresClause, in parse()
2878 (NextNonComment->isOneOf(TT_DictLiteral, TT_JsTypeColon) || in getCurrentPrecedence()
2888 if (Current->isOneOf(tok::semi, TT_InlineASMColon, TT_SelectorName) || in getCurrentPrecedence()
2900 Current->isOneOf(Keywords.kw_in, Keywords.kw_as)) { in getCurrentPrecedence()
2905 if (Current->isOneOf(tok::period, tok::arrow) && in getCurrentPrecedence()
2910 Current->isOneOf(Keywords.kw_extends, Keywords.kw_implements, in getCurrentPrecedence()
3032 while (Tok && Tok->isOneOf(tok::period, tok::coloncolon) && in verilogGroupDecl()
3043 if (Next->isOneOf( in verilogGroupDecl()
3187 if (Tok->isOneOf(tok::kw_friend, tok::kw_inline, tok::kw_virtual, in getFunctionName()
3303 if (Next->isOneOf(tok::kw_new, tok::kw_delete)) { in isFunctionDeclarationName()
3337 !Previous->isOneOf(tok::kw_return, tok::kw_co_return)) { in isFunctionDeclarationName()
3410 if (Tok->isOneOf(tok::l_paren, TT_TemplateOpener) && Tok->MatchingParen) { in isFunctionDeclarationName()
3415 Tok->isOneOf(TT_PointerOrReference, TT_StartOfName, tok::ellipsis, in isFunctionDeclarationName()
3419 if (Tok->isOneOf(tok::l_brace, TT_ObjCMethodExpr) || Tok->Tok.isLiteral()) in isFunctionDeclarationName()
3577 if (Parameter->isOneOf(tok::comment, tok::r_brace)) in calculateFormattingInformation()
3672 Current->isOneOf(tok::comment, tok::string_literal)) { in calculateUnbreakableTailLengths()
3709 if (Depth == 2 && CurrentToken->isOneOf(tok::l_brace, tok::comma)) { in calculateInitializerColumnList()
3732 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_throws)) in splitPenalty()
3765 if (!Right.isOneOf(TT_ObjCMethodExpr, TT_LambdaLSquare, in splitPenalty()
3774 if (Right.isOneOf(TT_StartOfName, TT_FunctionDeclarationName) || in splitPenalty()
3792 if (Left.isOneOf(tok::kw_class, tok::kw_struct, tok::kw_union)) in splitPenalty()
3797 if (Left.isOneOf(TT_RangeBasedForLoopColon, TT_InheritanceColon, in splitPenalty()
3857 Left.Previous->isOneOf(tok::identifier, tok::greater)) { in splitPenalty()
3868 (Left.Previous->isOneOf(tok::kw_for, tok::kw__Generic) || in splitPenalty()
3896 if (Left.isOneOf(tok::plus, tok::comma) && Left.Previous && in splitPenalty()
3954 !Right.isOneOf(tok::semi, tok::r_paren, tok::hashhash)) { in spaceRequiredBetween()
3969 if (Left.isOneOf(tok::hashhash, tok::hash)) in spaceRequiredBetween()
3991 if (Left.is(tok::kw_auto) && Right.isOneOf(TT_LambdaLBrace, TT_FunctionLBrace, in spaceRequiredBetween()
3998 if (Left.is(tok::kw_auto) && Right.isOneOf(tok::l_paren, tok::l_brace)) in spaceRequiredBetween()
4007 if (Left.isOneOf(tok::kw_co_await, tok::kw_co_yield, tok::kw_co_return) && in spaceRequiredBetween()
4008 !Right.isOneOf(tok::semi, tok::r_paren)) { in spaceRequiredBetween()
4018 if (Right.isOneOf(tok::semi, tok::comma)) in spaceRequiredBetween()
4028 if (Left.isOneOf(tok::exclaim, tok::tilde)) in spaceRequiredBetween()
4031 Right.isOneOf(tok::identifier, tok::string_literal, tok::char_constant, in spaceRequiredBetween()
4040 if (Left.is(tok::less) || Right.isOneOf(tok::greater, tok::less)) { in spaceRequiredBetween()
4085 return !Left.isOneOf(TT_PointerOrReference, tok::l_paren) && in spaceRequiredBetween()
4114 if (Right.isOneOf(Keywords.kw_override, Keywords.kw_final, tok::kw_noexcept, in spaceRequiredBetween()
4128 if (Right.isOneOf(TT_PointerOrReference, TT_ArraySubscriptLSquare, in spaceRequiredBetween()
4146 return Left.Previous && !Left.Previous->isOneOf( in spaceRequiredBetween()
4211 (Left.isOneOf(TT_ArraySubscriptLSquare, TT_StructuredBindingLSquare, in spaceRequiredBetween()
4221 Right.MatchingParen->isOneOf(TT_ArraySubscriptLSquare, in spaceRequiredBetween()
4226 !Right.isOneOf(TT_ObjCMethodExpr, TT_LambdaLSquare, in spaceRequiredBetween()
4229 !Left.isOneOf(tok::numeric_constant, TT_DictLiteral) && in spaceRequiredBetween()
4254 if (Left.isOneOf(TT_RequiresClause, in spaceRequiredBetween()
4276 Left.isOneOf(tok::kw_new, tok::kw_delete) && in spaceRequiredBetween()
4285 if (Left.isOneOf(tok::pp_elif, tok::kw_for, tok::kw_while, tok::kw_switch, in spaceRequiredBetween()
4314 if (Left.isOneOf(tok::kw_try, Keywords.kw___except, tok::kw_catch)) { in spaceRequiredBetween()
4318 if (Left.isOneOf(tok::kw_new, tok::kw_delete)) { in spaceRequiredBetween()
4341 return !Left.isOneOf(tok::l_paren, tok::l_square, tok::at) && in spaceRequiredBetween()
4349 (Left.isOneOf(tok::identifier, tok::greater, tok::r_square, in spaceRequiredBetween()
4388 Right.isOneOf(tok::amp, tok::ampamp) && in spaceRequiredBetween()
4389 Left.isOneOf(tok::kw_const, tok::kw_volatile) && in spaceRequiredBetween()
4420 Right.isOneOf(TT_TemplateOpener, TT_TemplateCloser)) { in spaceRequiredBefore()
4428 if (Left.is(Keywords.kw_import) && Right.isOneOf(tok::less, tok::ellipsis)) in spaceRequiredBefore()
4431 if (Left.isOneOf(Keywords.kw_module, Keywords.kw_import) && in spaceRequiredBefore()
4440 Right.isOneOf(tok::identifier, tok::kw_private)) { in spaceRequiredBefore()
4448 if (Left.isOneOf(TT_AttributeRParen, TT_AttributeMacro) && in spaceRequiredBefore()
4465 Left.isOneOf(Keywords.kw_optional, Keywords.kw_required, in spaceRequiredBefore()
4470 Left.isOneOf(Keywords.kw_returns, Keywords.kw_option)) { in spaceRequiredBefore()
4473 if (Right.isOneOf(tok::l_brace, tok::less) && Left.is(TT_SelectorName)) in spaceRequiredBefore()
4480 Right.isOneOf(tok::l_brace, tok::less)) { in spaceRequiredBefore()
4551 if (Left.isOneOf(tok::kw_using, Keywords.kw_async, Keywords.kw_when, in spaceRequiredBefore()
4560 if (Left.isOneOf(tok::kw_public, tok::kw_private, tok::kw_protected, in spaceRequiredBefore()
4596 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield)) { in spaceRequiredBefore()
4599 if (Right.isOneOf(tok::l_brace, tok::l_square) && in spaceRequiredBefore()
4600 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield, in spaceRequiredBefore()
4615 if (Left.isOneOf(tok::kw_throw, Keywords.kw_await, Keywords.kw_typeof, in spaceRequiredBefore()
4623 if ((Left.isOneOf(Keywords.kw_let, Keywords.kw_var, Keywords.kw_in, in spaceRequiredBefore()
4630 Left.Previous->isOneOf(tok::r_square, tok::r_brace)))) && in spaceRequiredBefore()
4634 if (Left.isOneOf(tok::kw_for, Keywords.kw_as) && Left.Previous && in spaceRequiredBefore()
4639 Right.isOneOf(tok::l_square, tok::l_brace, tok::l_paren)) { in spaceRequiredBefore()
4648 if (Right.isOneOf(TT_JsTypeColon, TT_JsTypeOptionalQuestion)) in spaceRequiredBefore()
4653 Line.First->isOneOf(Keywords.kw_import, tok::kw_export)) { in spaceRequiredBefore()
4659 !Right.isOneOf(tok::equal, tok::l_brace, tok::comma, tok::l_square, in spaceRequiredBefore()
4669 Right.isOneOf(Keywords.kw_as, Keywords.kw_in)) { in spaceRequiredBefore()
4683 if ((Left.isOneOf(tok::kw_static, tok::kw_public, tok::kw_private, in spaceRequiredBefore()
4685 Left.isOneOf(Keywords.kw_final, Keywords.kw_abstract, in spaceRequiredBefore()
4699 !Right.isOneOf(tok::r_paren, tok::semi)) || in spaceRequiredBefore()
4706 Left.isOneOf(Keywords.kw_verilogHash, Keywords.kw_verilogHashHash)) { in spaceRequiredBefore()
4730 if (Left.is(tok::at) && Right.isOneOf(tok::l_paren, tok::star, tok::at)) in spaceRequiredBefore()
4734 Left.isOneOf(TT_VerilogDimensionedTypeName, Keywords.kw_function)) { in spaceRequiredBefore()
4738 if (Right.isOneOf(tok::period, Keywords.kw_apostrophe) && in spaceRequiredBefore()
4748 !(Left.isOneOf(Keywords.kw_assign, Keywords.kw_unique) || in spaceRequiredBefore()
4750 (Left.isOneOf(tok::r_square, tok::r_paren, tok::r_brace, in spaceRequiredBefore()
4768 Right.isOneOf(tok::lessless, tok::greatergreater)) || in spaceRequiredBefore()
4846 if ((Left.isOneOf(tok::minus, tok::minusminus) && in spaceRequiredBefore()
4847 Right.isOneOf(tok::minus, tok::minusminus)) || in spaceRequiredBefore()
4848 (Left.isOneOf(tok::plus, tok::plusplus) && in spaceRequiredBefore()
4849 Right.isOneOf(tok::plus, tok::plusplus))) { in spaceRequiredBefore()
4874 Right.isOneOf(TT_BinaryOperator, TT_SelectorName); in spaceRequiredBefore()
4894 if (Right.isOneOf(tok::arrow, tok::arrowstar, tok::periodstar) || in spaceRequiredBefore()
4895 Left.isOneOf(tok::arrow, tok::period, tok::arrowstar, tok::periodstar) || in spaceRequiredBefore()
4914 !Left.isOneOf(tok::l_brace, tok::comment, tok::l_paren)) { in spaceRequiredBefore()
4919 !(Left.isOneOf(tok::l_paren, tok::r_paren, tok::l_square, in spaceRequiredBefore()
4928 return !Left.isOneOf(tok::amp, tok::ampamp) || in spaceRequiredBefore()
4933 Right.isOneOf(tok::amp, tok::ampamp)) { in spaceRequiredBefore()
4937 (Left.isOneOf(TT_BinaryOperator, TT_ConditionalExpr) && in spaceRequiredBefore()
4960 !Tok.isOneOf(TT_ObjCBlockLBrace, TT_LambdaLBrace, TT_DictLiteral); in isAllmanBrace()
4966 Tok.MatchingParen->Next->isOneOf(tok::comma, tok::r_paren); in IsFunctionArgument()
4977 !Tok.isOneOf(TT_ObjCBlockLBrace, TT_DictLiteral); in isAllmanLambdaBrace()
5023 Line.First->isOneOf(tok::identifier, Keywords.kw_import, tok::kw_export, in mustBreakBefore()
5027 !Line.First->isOneOf(Keywords.kw_var, Keywords.kw_let)) { in mustBreakBefore()
5117 if (Tok->isOneOf(tok::l_brace, tok::l_square)) in mustBreakBefore()
5119 if (Tok->isOneOf(tok::r_brace, tok::r_square)) in mustBreakBefore()
5137 if ((Left.isOneOf(tok::l_brace, TT_ArrayInitializerLSquare) || in mustBreakBefore()
5142 (Right.MatchingParen->isOneOf(tok::l_brace, in mustBreakBefore()
5202 Left.isOneOf(TT_CtorInitializerColon, TT_CtorInitializerComma)) { in mustBreakBefore()
5208 Right.isOneOf(TT_CtorInitializerComma, TT_CtorInitializerColon)) { in mustBreakBefore()
5252 FirstNonComment->isOneOf(Keywords.kw_internal, tok::kw_public, in mustBreakBefore()
5290 if (Left.isOneOf(TT_AttributeRParen, TT_AttributeMacro) && in mustBreakBefore()
5405 if (Left.isOneOf(tok::r_brace, tok::greater, tok::r_square)) in mustBreakBefore()
5417 if (Left.isOneOf(TT_CSharpNamedArgumentColon, TT_AttributeColon) || in canBreakBefore()
5418 Right.isOneOf(TT_CSharpNamedArgumentColon, TT_AttributeColon)) { in canBreakBefore()
5428 if (Left.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
5432 if (Right.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
5439 NonComment->isOneOf( in canBreakBefore()
5450 Left.isOneOf(tok::r_square, tok::r_paren)) && in canBreakBefore()
5451 Right.isOneOf(tok::l_square, tok::l_paren)) { in canBreakBefore()
5486 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_infer)) { in canBreakBefore()
5497 Right.isOneOf(Keywords.kw_module, tok::kw_namespace, in canBreakBefore()
5505 if (Left.isOneOf(Keywords.kw_module, tok::kw_namespace) && in canBreakBefore()
5506 Right.isOneOf(tok::identifier, tok::string_literal)) { in canBreakBefore()
5523 if (Left.isOneOf(TT_JavaAnnotation, TT_LeadingJavaAnnotation)) in canBreakBefore()
5531 if (Right.isOneOf(TT_StartOfName, TT_FunctionDeclarationName) || in canBreakBefore()
5563 !Right.isOneOf(TT_CtorInitializerColon, TT_InlineASMColon)) { in canBreakBefore()
5566 if (Left.is(tok::colon) && Left.isOneOf(TT_DictLiteral, TT_ObjCMethodExpr)) { in canBreakBefore()
5620 if (Right.isOneOf(TT_RangeBasedForLoopColon, TT_OverloadedOperatorLParen, in canBreakBefore()
5640 if (Left.isOneOf(TT_TemplateCloser, TT_UnaryOperator) || in canBreakBefore()
5644 if (Left.is(tok::equal) && !Right.isOneOf(tok::kw_default, tok::kw_delete) && in canBreakBefore()
5657 (Left.Previous->isOneOf(TT_BinaryOperator, TT_CastRParen))) { in canBreakBefore()
5695 return !Right.isOneOf(tok::l_brace, tok::semi, tok::equal, tok::l_paren, in canBreakBefore()
5738 !Left.isOneOf(tok::arrowstar, tok::lessless) && in canBreakBefore()
5768 return Left.isOneOf(tok::comma, tok::coloncolon, tok::semi, tok::l_brace, in canBreakBefore()
5771 Right.isOneOf(TT_TrailingReturnArrow, tok::lessless, tok::colon, in canBreakBefore()
5774 Right.isOneOf(tok::identifier, tok::kw_const)) || in canBreakBefore()
5807 assert(Reference.isOneOf(tok::amp, tok::ampamp)); in getTokenReferenceAlignment()
5825 if (PointerOrReference.isOneOf(tok::amp, tok::ampamp)) { in getTokenPointerOrReferenceAlignment()