reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
2715 if (Right.Tok.getIdentifierInfo() && Left.Tok.getIdentifierInfo()) 2718 if (Left.is(tok::kw_operator)) 2721 !Left.opensScope() && Style.SpaceBeforeCpp11BracedList) 2726 Left.isOneOf(Keywords.kw_optional, Keywords.kw_required, 2730 Left.isOneOf(Keywords.kw_returns, Keywords.kw_option)) 2732 if (Right.isOneOf(tok::l_brace, tok::less) && Left.is(TT_SelectorName)) 2735 if (Left.is(tok::slash) || Right.is(tok::slash)) 2737 if (Left.MatchingParen && 2738 Left.MatchingParen->is(TT_ProtoExtensionLSquare) && 2742 if (Left.is(tok::percent)) 2746 if (Left.is(tok::numeric_constant) && Right.is(tok::percent)) 2750 if (Left.is(TT_TemplateCloser) && Right.is(TT_StartOfName)) 2754 if (Left.is(tok::kw_using)) 2755 return spaceRequiredBeforeParens(Left); 2757 if (Left.is(TT_JsFatArrow)) 2760 if (Right.is(tok::l_paren) && Left.is(Keywords.kw_await) && Left.Previous && 2760 if (Right.is(tok::l_paren) && Left.is(Keywords.kw_await) && Left.Previous && 2761 Left.Previous->is(tok::kw_for)) 2763 if (Left.is(Keywords.kw_async) && Right.is(tok::l_paren) && 2771 if ((Left.is(TT_TemplateString) && Left.TokenText.endswith("${")) || 2771 if ((Left.is(TT_TemplateString) && Left.TokenText.endswith("${")) || 2777 if (Left.is(tok::identifier) && Keywords.IsJavaScriptIdentifier(Left) && 2777 if (Left.is(tok::identifier) && Keywords.IsJavaScriptIdentifier(Left) && 2781 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield)) 2784 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield, 2789 if (Line.MustBeDeclaration && Left.Tok.getIdentifierInfo()) 2793 if (Left.Previous && Left.Previous->is(tok::period) && 2793 if (Left.Previous && Left.Previous->is(tok::period) && 2794 Left.Tok.getIdentifierInfo()) 2797 if (Left.isOneOf(tok::kw_throw, Keywords.kw_await, Keywords.kw_typeof, 2802 if (Left.endsSequence(tok::kw_const, Keywords.kw_as)) { 2805 if ((Left.isOneOf(Keywords.kw_let, Keywords.kw_var, Keywords.kw_in, 2810 (Left.is(Keywords.kw_of) && Left.Previous && 2810 (Left.is(Keywords.kw_of) && Left.Previous && 2811 (Left.Previous->Tok.is(tok::identifier) || 2812 Left.Previous->isOneOf(tok::r_square, tok::r_brace)))) && 2813 (!Left.Previous || !Left.Previous->is(tok::period))) 2813 (!Left.Previous || !Left.Previous->is(tok::period))) 2815 if (Left.isOneOf(tok::kw_for, Keywords.kw_as) && Left.Previous && 2815 if (Left.isOneOf(tok::kw_for, Keywords.kw_as) && Left.Previous && 2816 Left.Previous->is(tok::period) && Right.is(tok::l_paren)) 2818 if (Left.is(Keywords.kw_as) && 2821 if (Left.is(tok::kw_default) && Left.Previous && 2821 if (Left.is(tok::kw_default) && Left.Previous && 2822 Left.Previous->is(tok::kw_export)) 2824 if (Left.is(Keywords.kw_is) && Right.is(tok::l_brace)) 2828 if (Left.is(TT_JsTypeOperator) || Right.is(TT_JsTypeOperator)) 2830 if ((Left.is(tok::l_brace) || Right.is(tok::r_brace)) && 2833 if (Left.is(tok::ellipsis)) 2835 if (Left.is(TT_TemplateCloser) && 2844 if (Left.is(TT_JsNonNullAssertion) && 2848 if (Left.is(tok::r_square) && Right.is(tok::l_brace)) 2850 if (Left.is(Keywords.kw_synchronized) && Right.is(tok::l_paren)) 2852 if ((Left.isOneOf(tok::kw_static, tok::kw_public, tok::kw_private, 2854 Left.isOneOf(Keywords.kw_final, Keywords.kw_abstract, 2859 if (Left.is(TT_ImplicitStringLiteral)) 2862 if (Left.is(TT_ObjCMethodSpecifier)) 2864 if (Left.is(tok::r_paren) && canBeObjCSelectorComponent(Right)) 2871 (Right.is(tok::equal) || Left.is(tok::equal))) 2875 Left.isOneOf(TT_TrailingReturnArrow, TT_LambdaArrow)) 2879 if (Left.is(tok::comma)) 2898 if (Left.is(tok::question)) 2900 if (Right.is(TT_InlineASMColon) && Left.is(tok::coloncolon)) 2908 if (Left.is(TT_UnaryOperator)) { 2913 if (Left.is(tok::exclaim) && Left.TokenText == "not") 2913 if (Left.is(tok::exclaim) && Left.TokenText == "not") 2915 if (Left.is(tok::tilde) && Left.TokenText == "compl") 2915 if (Left.is(tok::tilde) && Left.TokenText == "compl") 2918 return (Style.SpaceAfterLogicalNot && Left.is(tok::exclaim)) || 2924 if (Left.is(TT_CastRParen)) 2928 if (Left.is(tok::greater) && Right.is(tok::greater)) { 2930 (Style.Language == FormatStyle::LK_Proto && Left.is(TT_DictLiteral))) 2932 return Right.is(TT_TemplateCloser) && Left.is(TT_TemplateCloser) && 2936 Left.isOneOf(tok::arrow, tok::period, tok::arrowstar, tok::periodstar) || 2939 if (!Style.SpaceBeforeAssignmentOperators && Left.isNot(TT_TemplateCloser) && 2943 (Left.is(tok::identifier) || Left.is(tok::kw_this))) 2943 (Left.is(tok::identifier) || Left.is(tok::kw_this))) 2945 if (Right.is(tok::coloncolon) && Left.is(tok::identifier)) 2950 if (Right.is(tok::coloncolon) && !Left.isOneOf(tok::l_brace, tok::comment)) 2951 return (Left.is(TT_TemplateOpener) && 2953 !(Left.isOneOf(tok::l_paren, tok::r_paren, tok::l_square, 2956 (Left.is(tok ::l_paren) && Style.SpacesInParentheses); 2957 if ((Left.is(TT_TemplateOpener)) != (Right.is(TT_TemplateCloser))) 2961 return !Left.isOneOf(tok::amp, tok::ampamp) || 2967 if ((Right.is(TT_BinaryOperator) && !Left.is(tok::l_paren)) || 2968 (Left.isOneOf(TT_BinaryOperator, TT_ConditionalExpr) && 2971 if (Left.is(TT_TemplateCloser) && Right.is(tok::l_paren) && 2974 if (Right.is(TT_TemplateOpener) && Left.is(tok::r_paren) && 2975 Left.MatchingParen && Left.MatchingParen->is(TT_OverloadedOperatorLParen)) 2975 Left.MatchingParen && Left.MatchingParen->is(TT_OverloadedOperatorLParen)) 2977 if (Right.is(tok::less) && Left.isNot(tok::l_paren) && 2982 if (Left.is(TT_RegexLiteral)) 2984 return spaceRequiredBetween(Line, Left, Right);