Lines Matching refs:Right

2207   const FormatToken &Right = Tok;  in splitPenalty()  local
2213 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_throws)) in splitPenalty()
2215 if (Right.is(Keywords.kw_implements)) in splitPenalty()
2220 if (Right.is(Keywords.kw_function) && Left.isNot(tok::comma)) in splitPenalty()
2225 (Right.is(TT_TemplateString) && Right.TokenText.startswith("}"))) in splitPenalty()
2228 if (Left.opensScope() && Right.closesScope()) in splitPenalty()
2232 if (Right.is(tok::identifier) && Right.Next && Right.Next->is(TT_DictLiteral)) in splitPenalty()
2234 if (Right.is(tok::l_square)) { in splitPenalty()
2240 if (Right.is(TT_LambdaLSquare) && Left.is(tok::equal)) in splitPenalty()
2242 if (!Right.isOneOf(TT_ObjCMethodExpr, TT_LambdaLSquare, in splitPenalty()
2248 if (Right.isOneOf(TT_StartOfName, TT_FunctionDeclarationName) || in splitPenalty()
2249 Right.is(tok::kw_operator)) { in splitPenalty()
2250 if (Line.startsWith(tok::kw_for) && Right.PartOfMultiVariableDeclStmt) in splitPenalty()
2254 if (InFunctionDecl && Right.NestingLevel == 0) in splitPenalty()
2258 if (Right.is(TT_PointerOrReference)) in splitPenalty()
2260 if (Right.is(TT_LambdaArrow)) in splitPenalty()
2262 if (Left.is(tok::equal) && Right.is(tok::l_brace)) in splitPenalty()
2267 (Right.is(tok::period) && Style.Language == FormatStyle::LK_Proto)) in splitPenalty()
2278 if (Right.isMemberAccess()) { in splitPenalty()
2298 return !Right.NextOperator || !Right.NextOperator->Previous->closesScope() in splitPenalty()
2303 if (Right.is(TT_TrailingAnnotation) && in splitPenalty()
2304 (!Right.Next || Right.Next->isNot(tok::l_paren))) { in splitPenalty()
2314 bool is_short_annotation = Right.TokenText.size() < 10; in splitPenalty()
2324 if (Right.is(TT_SelectorName)) in splitPenalty()
2345 if (Right.is(tok::r_brace)) in splitPenalty()
2364 if (Right.is(tok::plus) && Left.isLabelString() && in splitPenalty()
2365 (Right.NextOperator || Right.OperatorIndex != 0)) in splitPenalty()
2369 if (Right.is(tok::lessless) && Left.isLabelString() && in splitPenalty()
2370 (Right.NextOperator || Right.OperatorIndex != 1)) in splitPenalty()
2372 if (Right.is(tok::lessless)) { in splitPenalty()
2374 if (!Left.is(tok::r_paren) || Right.OperatorIndex > 0) in splitPenalty()
2385 Level = Right.getPrecedence(); in splitPenalty()
2396 const FormatToken &Right) { in spaceRequiredBetween() argument
2397 if (Left.is(tok::kw_return) && Right.isNot(tok::semi)) in spaceRequiredBetween()
2404 if (Right.is(tok::hashhash)) in spaceRequiredBetween()
2407 return Right.is(tok::hash); in spaceRequiredBetween()
2408 if (Left.is(tok::l_paren) && Right.is(tok::r_paren)) in spaceRequiredBetween()
2410 if (Left.is(tok::l_paren) || Right.is(tok::r_paren)) in spaceRequiredBetween()
2411 return (Right.is(TT_CastRParen) || in spaceRequiredBetween()
2415 if (Right.isOneOf(tok::semi, tok::comma)) in spaceRequiredBetween()
2417 if (Right.is(tok::less) && Line.Type == LT_ObjCDecl) { in spaceRequiredBetween()
2419 Right.MatchingParen && Right.MatchingParen->Next && in spaceRequiredBetween()
2420 Right.MatchingParen->Next->is(tok::colon); in spaceRequiredBetween()
2423 if (Right.is(tok::less) && Left.is(tok::kw_template)) in spaceRequiredBetween()
2428 Right.isOneOf(tok::identifier, tok::string_literal, tok::char_constant, in spaceRequiredBetween()
2436 if (Left.is(tok::less) || Right.isOneOf(tok::greater, tok::less)) { in spaceRequiredBetween()
2439 (Left.is(TT_DictLiteral) || Right.is(TT_DictLiteral)))) { in spaceRequiredBetween()
2441 if (Left.is(tok::less) && Right.is(tok::greater)) in spaceRequiredBetween()
2447 if (Right.is(tok::ellipsis)) in spaceRequiredBetween()
2450 if (Left.is(tok::l_square) && Right.is(tok::amp)) in spaceRequiredBetween()
2452 if (Right.is(TT_PointerOrReference)) { in spaceRequiredBetween()
2469 if (Right.is(TT_FunctionTypeLParen) && Left.isNot(tok::l_paren) && in spaceRequiredBetween()
2475 return Right.Tok.isLiteral() || Right.is(TT_BlockComment) || in spaceRequiredBetween()
2476 (Right.isOneOf(Keywords.kw_override, Keywords.kw_final) && in spaceRequiredBetween()
2477 !Right.is(TT_StartOfName)) || in spaceRequiredBetween()
2478 (Right.is(tok::l_brace) && Right.BlockKind == BK_Block) || in spaceRequiredBetween()
2479 (!Right.isOneOf(TT_PointerOrReference, TT_ArraySubscriptLSquare, in spaceRequiredBetween()
2485 if (Right.is(tok::star) && Left.is(tok::l_paren)) in spaceRequiredBetween()
2497 return (Left.is(TT_ArrayInitializerLSquare) && Right.isNot(tok::r_square) && in spaceRequiredBetween()
2501 Style.SpacesInSquareBrackets && Right.isNot(tok::r_square)); in spaceRequiredBetween()
2502 if (Right.is(tok::r_square)) in spaceRequiredBetween()
2503 return Right.MatchingParen && in spaceRequiredBetween()
2504 ((Right.MatchingParen->is(TT_ArrayInitializerLSquare) && in spaceRequiredBetween()
2505 SpaceRequiredForArrayInitializerLSquare(*Right.MatchingParen, in spaceRequiredBetween()
2508 Right.MatchingParen->isOneOf(TT_ArraySubscriptLSquare, in spaceRequiredBetween()
2510 Right.MatchingParen->is(TT_AttributeParen)); in spaceRequiredBetween()
2511 if (Right.is(tok::l_square) && in spaceRequiredBetween()
2512 !Right.isOneOf(TT_ObjCMethodExpr, TT_LambdaLSquare, in spaceRequiredBetween()
2517 if (Left.is(tok::l_brace) && Right.is(tok::r_brace)) in spaceRequiredBetween()
2520 (Right.is(tok::r_brace) && Right.MatchingParen && in spaceRequiredBetween()
2521 Right.MatchingParen->BlockKind != BK_Block)) in spaceRequiredBetween()
2527 if (Right.is(tok::l_paren)) { in spaceRequiredBetween()
2545 if (Left.is(tok::at) && Right.Tok.getObjCKeywordID() != tok::objc_not_keyword) in spaceRequiredBetween()
2547 if (Right.is(TT_UnaryOperator)) in spaceRequiredBetween()
2553 Right.is(tok::l_brace) && Right.getNextNonComment() && in spaceRequiredBetween()
2554 Right.BlockKind != BK_Block) in spaceRequiredBetween()
2556 if (Left.is(tok::period) || Right.is(tok::period)) in spaceRequiredBetween()
2558 if (Right.is(tok::hash) && Left.is(tok::identifier) && Left.TokenText == "L") in spaceRequiredBetween()
2568 if (Left.is(TT_TemplateCloser) && Right.is(tok::l_square)) in spaceRequiredBetween()
2573 if (Right.is(tok::r_brace) && Right.MatchingParen && in spaceRequiredBetween()
2574 Right.MatchingParen->endsSequence(TT_DictLiteral, tok::at)) in spaceRequiredBetween()
2581 const FormatToken &Right) { in spaceRequiredBefore() argument
2582 const FormatToken &Left = *Right.Previous; in spaceRequiredBefore()
2583 if (Right.Tok.getIdentifierInfo() && Left.Tok.getIdentifierInfo()) in spaceRequiredBefore()
2587 return Right.is(tok::coloncolon); in spaceRequiredBefore()
2588 if (Right.is(tok::l_brace) && Right.BlockKind == BK_BracedInit && in spaceRequiredBefore()
2593 if (Right.is(tok::period) && in spaceRequiredBefore()
2597 if (Right.is(tok::l_paren) && in spaceRequiredBefore()
2600 if (Right.isOneOf(tok::l_brace, tok::less) && Left.is(TT_SelectorName)) in spaceRequiredBefore()
2603 if (Left.is(tok::slash) || Right.is(tok::slash)) in spaceRequiredBefore()
2606 Right.isOneOf(tok::l_brace, tok::less)) in spaceRequiredBefore()
2613 if (Left.is(tok::numeric_constant) && Right.is(tok::percent)) in spaceRequiredBefore()
2614 return Right.WhitespaceRange.getEnd() != Right.WhitespaceRange.getBegin(); in spaceRequiredBefore()
2619 if (Right.is(tok::l_paren) && Left.is(Keywords.kw_await) && Left.Previous && in spaceRequiredBefore()
2622 if (Left.is(Keywords.kw_async) && Right.is(tok::l_paren) && in spaceRequiredBefore()
2623 Right.MatchingParen) { in spaceRequiredBefore()
2624 const FormatToken *Next = Right.MatchingParen->getNextNonComment(); in spaceRequiredBefore()
2631 (Right.is(TT_TemplateString) && Right.TokenText.startswith("}"))) in spaceRequiredBefore()
2637 Right.is(TT_TemplateString)) in spaceRequiredBefore()
2639 if (Right.is(tok::star) && in spaceRequiredBefore()
2642 if (Right.isOneOf(tok::l_brace, tok::l_square) && in spaceRequiredBefore()
2646 if (Right.is(tok::l_paren)) { in spaceRequiredBefore()
2671 Left.Previous->is(tok::period) && Right.is(tok::l_paren)) in spaceRequiredBefore()
2674 Right.isOneOf(tok::l_square, tok::l_brace, tok::l_paren)) in spaceRequiredBefore()
2679 if (Left.is(Keywords.kw_is) && Right.is(tok::l_brace)) in spaceRequiredBefore()
2681 if (Right.isOneOf(TT_JsTypeColon, TT_JsTypeOptionalQuestion)) in spaceRequiredBefore()
2683 if (Left.is(TT_JsTypeOperator) || Right.is(TT_JsTypeOperator)) in spaceRequiredBefore()
2685 if ((Left.is(tok::l_brace) || Right.is(tok::r_brace)) && in spaceRequiredBefore()
2691 !Right.isOneOf(tok::equal, tok::l_brace, tok::comma, tok::l_square, in spaceRequiredBefore()
2697 if (Right.is(TT_JsNonNullAssertion)) in spaceRequiredBefore()
2700 Right.isOneOf(Keywords.kw_as, Keywords.kw_in)) in spaceRequiredBefore()
2703 if (Left.is(tok::r_square) && Right.is(tok::l_brace)) in spaceRequiredBefore()
2705 if (Left.is(Keywords.kw_synchronized) && Right.is(tok::l_paren)) in spaceRequiredBefore()
2711 Right.is(TT_TemplateOpener)) in spaceRequiredBefore()
2715 return Right.WhitespaceRange.getBegin() != Right.WhitespaceRange.getEnd(); in spaceRequiredBefore()
2719 if (Left.is(tok::r_paren) && canBeObjCSelectorComponent(Right)) in spaceRequiredBefore()
2726 (Right.is(tok::equal) || Left.is(tok::equal))) in spaceRequiredBefore()
2729 if (Right.isOneOf(TT_TrailingReturnArrow, TT_LambdaArrow) || in spaceRequiredBefore()
2732 if (Right.is(TT_OverloadedOperatorLParen)) in spaceRequiredBefore()
2736 if (Right.is(tok::comma)) in spaceRequiredBefore()
2738 if (Right.is(TT_ObjCBlockLParen)) in spaceRequiredBefore()
2740 if (Right.is(TT_CtorInitializerColon)) in spaceRequiredBefore()
2742 if (Right.is(TT_InheritanceColon) && !Style.SpaceBeforeInheritanceColon) in spaceRequiredBefore()
2744 if (Right.is(TT_RangeBasedForLoopColon) && in spaceRequiredBefore()
2747 if (Right.is(tok::colon)) { in spaceRequiredBefore()
2749 !Right.getNextNonComment() || Right.getNextNonComment()->is(tok::semi)) in spaceRequiredBefore()
2751 if (Right.is(TT_ObjCMethodExpr)) in spaceRequiredBefore()
2755 if (Right.is(TT_InlineASMColon) && Left.is(tok::coloncolon)) in spaceRequiredBefore()
2757 if (Right.is(TT_DictLiteral)) in spaceRequiredBefore()
2759 if (Right.is(TT_AttributeColon)) in spaceRequiredBefore()
2764 return Right.is(TT_BinaryOperator); in spaceRequiredBefore()
2770 Right.isOneOf(TT_BinaryOperator, TT_SelectorName); in spaceRequiredBefore()
2772 if (Left.is(tok::greater) && Right.is(tok::greater)) { in spaceRequiredBefore()
2776 return Right.is(TT_TemplateCloser) && Left.is(TT_TemplateCloser) && in spaceRequiredBefore()
2779 if (Right.isOneOf(tok::arrow, tok::arrowstar, tok::periodstar) || in spaceRequiredBefore()
2781 (Right.is(tok::period) && Right.isNot(TT_DesignatedInitializerPeriod))) in spaceRequiredBefore()
2784 Right.getPrecedence() == prec::Assignment) in spaceRequiredBefore()
2786 if (Style.Language == FormatStyle::LK_Java && Right.is(tok::coloncolon) && in spaceRequiredBefore()
2789 if (Right.is(tok::coloncolon) && Left.is(tok::identifier)) in spaceRequiredBefore()
2793 return Right.WhitespaceRange.getBegin() != Right.WhitespaceRange.getEnd(); in spaceRequiredBefore()
2794 if (Right.is(tok::coloncolon) && !Left.isOneOf(tok::l_brace, tok::comment)) in spaceRequiredBefore()
2801 if ((Left.is(TT_TemplateOpener)) != (Right.is(TT_TemplateCloser))) in spaceRequiredBefore()
2804 if (Right.is(TT_StructuredBindingLSquare)) in spaceRequiredBefore()
2808 if (Right.Next && Right.Next->is(TT_StructuredBindingLSquare) && in spaceRequiredBefore()
2809 Right.isOneOf(tok::amp, tok::ampamp)) in spaceRequiredBefore()
2811 if ((Right.is(TT_BinaryOperator) && !Left.is(tok::l_paren)) || in spaceRequiredBefore()
2813 !Right.is(tok::r_paren))) in spaceRequiredBefore()
2815 if (Left.is(TT_TemplateCloser) && Right.is(tok::l_paren) && in spaceRequiredBefore()
2816 Right.isNot(TT_FunctionTypeLParen)) in spaceRequiredBefore()
2818 if (Right.is(TT_TemplateOpener) && Left.is(tok::r_paren) && in spaceRequiredBefore()
2821 if (Right.is(tok::less) && Left.isNot(tok::l_paren) && in spaceRequiredBefore()
2824 if (Right.is(TT_TrailingUnaryOperator)) in spaceRequiredBefore()
2828 return spaceRequiredBetween(Line, Left, Right); in spaceRequiredBefore()
2838 const FormatToken &Right) { in mustBreakBefore() argument
2839 const FormatToken &Left = *Right.Previous; in mustBreakBefore()
2840 if (Right.NewlinesBefore > 1 && Style.MaxEmptyLinesToKeep > 0) in mustBreakBefore()
2845 if (Right.is(tok::string_literal) && Left.is(tok::plus) && Left.Previous && in mustBreakBefore()
2866 if (Right.is(tok::r_brace) && Left.is(tok::l_brace) && in mustBreakBefore()
2875 if (Right.is(tok::plus) && Left.is(tok::string_literal) && Right.Next && in mustBreakBefore()
2876 Right.Next->is(tok::string_literal)) in mustBreakBefore()
2883 if (Left.isStringLiteral() && Right.isStringLiteral()) in mustBreakBefore()
2898 else if (Right.MatchingParen && in mustBreakBefore()
2899 (Right.MatchingParen->isOneOf(tok::l_brace, in mustBreakBefore()
2902 Right.MatchingParen->is(tok::l_paren)))) in mustBreakBefore()
2909 if (Right.is(tok::comment)) in mustBreakBefore()
2912 (Right.NewlinesBefore > 0 && Right.HasUnescapedNewline); in mustBreakBefore()
2915 if (Right.Previous->IsUnterminatedLiteral) in mustBreakBefore()
2917 if (Right.is(tok::lessless) && Right.Next && in mustBreakBefore()
2918 Right.Previous->is(tok::string_literal) && in mustBreakBefore()
2919 Right.Next->is(tok::string_literal)) in mustBreakBefore()
2921 if (Right.Previous->ClosesTemplateDeclaration && in mustBreakBefore()
2922 Right.Previous->MatchingParen && in mustBreakBefore()
2923 Right.Previous->MatchingParen->NestingLevel == 0 && in mustBreakBefore()
2926 if (Right.is(TT_CtorInitializerComma) && in mustBreakBefore()
2930 if (Right.is(TT_CtorInitializerColon) && in mustBreakBefore()
2936 Right.is(TT_InheritanceComma)) in mustBreakBefore()
2938 if (Right.is(tok::string_literal) && Right.TokenText.startswith("R\"")) in mustBreakBefore()
2942 return Right.IsMultiline && Right.NewlinesBefore > 0; in mustBreakBefore()
2943 if ((Right.Previous->is(tok::l_brace) || in mustBreakBefore()
2944 (Right.Previous->is(tok::less) && Right.Previous->Previous && in mustBreakBefore()
2945 Right.Previous->Previous->is(tok::equal))) && in mustBreakBefore()
2946 Right.NestingLevel == 1 && Style.Language == FormatStyle::LK_Proto) { in mustBreakBefore()
2951 if (Right.is(TT_InlineASMBrace)) in mustBreakBefore()
2952 return Right.HasUnescapedNewline; in mustBreakBefore()
2953 if (isAllmanBrace(Left) || isAllmanBrace(Right)) in mustBreakBefore()
2965 Right.isNot(TT_LeadingJavaAnnotation) && Right.isNot(tok::l_paren) && in mustBreakBefore()
2969 if (Right.is(TT_ProtoExtensionLSquare)) in mustBreakBefore()
3001 Right.is(TT_SelectorName) && !Right.is(tok::r_square) && Right.Next) { in mustBreakBefore()
3004 if (Right.Previous && Right.Previous->is(tok::at)) in mustBreakBefore()
3010 FormatToken *LBrace = Right.Next; in mustBreakBefore()
3063 !Right.isOneOf(tok::l_paren, TT_LambdaLSquare)) { in mustBreakBefore()
3085 const FormatToken &Right) { in canBreakBefore() argument
3086 const FormatToken &Left = *Right.Previous; in canBreakBefore()
3093 if (Right.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
3097 const FormatToken *NonComment = Right.getPreviousNonComment(); in canBreakBefore()
3106 if (Right.NestingLevel == 0 && in canBreakBefore()
3109 Right.isOneOf(tok::l_square, tok::l_paren)) in canBreakBefore()
3111 if (Left.is(TT_JsFatArrow) && Right.is(tok::l_brace)) in canBreakBefore()
3116 if (Left.is(tok::exclaim) && Right.is(tok::colon)) in canBreakBefore()
3121 if (Right.is(Keywords.kw_is)) { in canBreakBefore()
3122 const FormatToken* Next = Right.getNextNonComment(); in canBreakBefore()
3135 if (Right.is(Keywords.kw_in)) in canBreakBefore()
3137 if (Right.is(Keywords.kw_as)) in canBreakBefore()
3139 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_infer)) { in canBreakBefore()
3150 Right.isOneOf(Keywords.kw_module, tok::kw_namespace, in canBreakBefore()
3158 Right.isOneOf(tok::identifier, tok::string_literal)) in canBreakBefore()
3160 if (Right.is(TT_TemplateString) && Right.closesScope()) in canBreakBefore()
3171 return !Right.is(tok::l_paren); in canBreakBefore()
3172 if (Right.is(TT_PointerOrReference)) in canBreakBefore()
3175 (!Right.Next || Right.Next->isNot(TT_FunctionDeclarationName))); in canBreakBefore()
3176 if (Right.isOneOf(TT_StartOfName, TT_FunctionDeclarationName) || in canBreakBefore()
3177 Right.is(tok::kw_operator)) in canBreakBefore()
3181 if (Right.isTrailingComment()) in canBreakBefore()
3190 if (Left.is(tok::question) && Right.is(tok::colon)) in canBreakBefore()
3192 if (Right.is(TT_ConditionalExpr) || Right.is(tok::question)) in canBreakBefore()
3198 if (Right.is(TT_InheritanceColon)) in canBreakBefore()
3200 if (Right.is(TT_ObjCMethodExpr) && !Right.is(tok::r_square) && in canBreakBefore()
3204 if (Right.is(tok::colon) && in canBreakBefore()
3205 !Right.isOneOf(TT_CtorInitializerColon, TT_InlineASMColon)) in canBreakBefore()
3210 if (!Style.AlwaysBreakBeforeMultilineStrings && Right.isStringLiteral()) in canBreakBefore()
3236 if (((Right.is(tok::l_brace) || Right.is(tok::less)) && in canBreakBefore()
3237 Right.is(TT_DictLiteral)) || in canBreakBefore()
3238 Right.is(TT_ArrayInitializerLSquare)) in canBreakBefore()
3243 if (Right.is(tok::r_square) && Right.MatchingParen && in canBreakBefore()
3244 Right.MatchingParen->is(TT_ProtoExtensionLSquare)) in canBreakBefore()
3246 if (Right.is(TT_SelectorName) || (Right.is(tok::identifier) && Right.Next && in canBreakBefore()
3247 Right.Next->is(TT_ObjCMethodExpr))) in canBreakBefore()
3253 if (Right.isOneOf(TT_RangeBasedForLoopColon, TT_OverloadedOperatorLParen, in canBreakBefore()
3258 if (Right.is(TT_RangeBasedForLoopColon)) in canBreakBefore()
3260 if (Left.is(TT_TemplateCloser) && Right.is(TT_TemplateOpener)) in canBreakBefore()
3265 if (Left.is(tok::equal) && !Right.isOneOf(tok::kw_default, tok::kw_delete) && in canBreakBefore()
3268 if (Left.is(tok::equal) && Right.is(tok::l_brace) && in canBreakBefore()
3276 if (Right.is(TT_ImplicitStringLiteral)) in canBreakBefore()
3279 if (Right.is(tok::r_paren) || Right.is(TT_TemplateCloser)) in canBreakBefore()
3281 if (Right.is(tok::r_square) && Right.MatchingParen && in canBreakBefore()
3282 Right.MatchingParen->is(TT_LambdaLSquare)) in canBreakBefore()
3287 if (Right.is(tok::r_brace)) in canBreakBefore()
3288 return Right.MatchingParen && Right.MatchingParen->BlockKind == BK_Block; in canBreakBefore()
3293 return !Right.isOneOf(tok::l_brace, tok::semi, tok::equal, tok::l_paren, in canBreakBefore()
3296 if (Right.is(tok::kw___attribute) || in canBreakBefore()
3297 (Right.is(tok::l_square) && Right.is(TT_AttributeSquare))) in canBreakBefore()
3300 if (Left.is(tok::identifier) && Right.is(tok::string_literal)) in canBreakBefore()
3303 if (Right.is(tok::identifier) && Right.Next && Right.Next->is(TT_DictLiteral)) in canBreakBefore()
3308 if (Right.is(TT_CtorInitializerColon)) in canBreakBefore()
3313 if (Right.is(TT_CtorInitializerComma) && in canBreakBefore()
3319 if (Right.is(TT_InheritanceComma) && in canBreakBefore()
3322 if ((Left.is(tok::greater) && Right.is(tok::greater)) || in canBreakBefore()
3323 (Left.is(tok::less) && Right.is(tok::less))) in canBreakBefore()
3325 if (Right.is(TT_BinaryOperator) && in canBreakBefore()
3328 Right.getPrecedence() != prec::Assignment)) in canBreakBefore()
3332 if (Right.is(tok::kw_typename) && Left.isNot(tok::kw_const)) in canBreakBefore()
3340 if ((Left.is(TT_AttributeSquare) && Right.is(tok::l_square)) || in canBreakBefore()
3341 (Left.is(tok::r_square) && Right.is(TT_AttributeSquare))) in canBreakBefore()
3345 Right.isMemberAccess() || in canBreakBefore()
3346 Right.isOneOf(TT_TrailingReturnArrow, TT_LambdaArrow, tok::lessless, in canBreakBefore()
3349 Right.isOneOf(tok::identifier, tok::kw_const)) || in canBreakBefore()
3350 (Left.is(tok::l_paren) && !Right.is(tok::r_paren)) || in canBreakBefore()
3351 (Left.is(TT_TemplateOpener) && !Right.is(TT_TemplateCloser)); in canBreakBefore()