Lines Matching refs:Style
81 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, in AnnotatingParser() argument
83 : Style(Style), Line(Line), CurrentToken(Line.First), AutoFound(false), in AnnotatingParser()
122 if (Style.Language == FormatStyle::LK_Java && in parseAngle()
150 if (Style.Language == FormatStyle::LK_TextProto || in parseAngle()
151 (Style.Language == FormatStyle::LK_Proto && Left->Previous && in parseAngle()
161 Style.Language == FormatStyle::LK_Java) { in parseAngle()
167 !Style.isCSharp() && Style.Language != FormatStyle::LK_Proto && in parseAngle()
168 Style.Language != FormatStyle::LK_TextProto)) { in parseAngle()
184 if (Style.Language == FormatStyle::LK_Proto) { in parseAngle()
263 } else if (Style.isJavaScript() && in parseParens()
277 } else if (Style.isJavaScript() && OpeningParen.Previous && in parseParens()
283 } else if (Style.isJavaScript() && OpeningParen.Previous && in parseParens()
484 if (!Style.isCSharp()) in isCSharpAttributeSpecifier()
535 if (!Style.isCpp() || !Tok.startsSequence(tok::l_square, tok::l_square)) in isCpp11AttributeSpecifier()
581 Style.isCpp() && Parent && Parent->is(TT_TemplateCloser) && in parseSquare()
594 bool IsCppStructuredBinding = Left->isCppStructuredBinding(Style); in parseSquare()
597 Style.isCpp() && !IsCpp11AttributeSpecifier && in parseSquare()
621 } else if (Style.isJavaScript() && Parent && in parseSquare()
625 } else if (Style.isCpp() && Contexts.back().ContextKind == tok::l_brace && in parseSquare()
633 } else if (Style.Language == FormatStyle::LK_Proto || in parseSquare()
634 Style.Language == FormatStyle::LK_TextProto) { in parseSquare()
685 if (Style.isJavaScript() && Parent && Parent->is(TT_JsTypeColon)) in parseSquare()
819 if (Style.isJavaScript() && OpeningBrace.Previous && in parseBrace()
830 if (Style.AlignArrayOfStructures != FormatStyle::AIAS_None) { in parseBrace()
847 (!Contexts.back().ColonIsDictLiteral || !Style.isCpp())) || in parseBrace()
848 Style.Language == FormatStyle::LK_Proto || in parseBrace()
849 Style.Language == FormatStyle::LK_TextProto) { in parseBrace()
858 else if (Style.isJavaScript()) in parseBrace()
862 if (Style.isJavaScript()) in parseBrace()
881 Left->Role.reset(new CommaSeparatedList(Style)); in updateParameterCount()
927 if (Style.isJavaScript()) { in consumeToken()
941 } else if (Style.isCSharp()) { in consumeToken()
956 Style.Language == FormatStyle::LK_Proto || in consumeToken()
957 Style.Language == FormatStyle::LK_TextProto) { in consumeToken()
959 if (Style.Language == FormatStyle::LK_TextProto) { in consumeToken()
1030 if (Style.isJavaScript() && !Contexts.back().IsExpression) in consumeToken()
1047 if (Style.isJavaScript()) { in consumeToken()
1057 if (Style.isCpp() && CurrentToken && CurrentToken->is(tok::kw_co_await)) in consumeToken()
1095 if (Style.Language == FormatStyle::LK_TextProto) { in consumeToken()
1111 if (Style.Language == FormatStyle::LK_TextProto || in consumeToken()
1112 (Style.Language == FormatStyle::LK_Proto && Tok->Previous && in consumeToken()
1135 if (Style.Language != FormatStyle::LK_TextProto) in consumeToken()
1141 if (Style.Language == FormatStyle::LK_TextProto || in consumeToken()
1142 Style.Language == FormatStyle::LK_Proto) { in consumeToken()
1166 if (Style.isJavaScript() && Tok->Next && in consumeToken()
1179 Style.isJavaScript()) { in consumeToken()
1182 if (Style.isCSharp()) { in consumeToken()
1223 if (Style.isCSharp() && Tok->is(Keywords.kw_where) && Tok->Next && in consumeToken()
1327 if (Style.isJavaScript() && IsFirstToken) { in parsePreprocessorDirective()
1349 if (Style.isVerilog() && !Keywords.isVerilogPPDirective(*CurrentToken)) in parsePreprocessorDirective()
1406 if ((Style.Language == FormatStyle::LK_Java && in parseLine()
1426 if (Style.Language == FormatStyle::LK_Proto && Line.Level == 0 && in parseLine()
1440 if (Style.isJavaScript() && CurrentToken->is(Keywords.kw_import)) in parseLine()
1446 if (Style.isJavaScript()) { in parseLine()
1591 if (P.Style.AlignArrayOfStructures != FormatStyle::AIAS_None) { in ~ScopedContextCreator()
1641 if (Style.isJavaScript() && in modifyContext()
1680 Contexts.back().IsExpression = Style.Language == FormatStyle::LK_Java; in modifyContext()
1783 if ((Style.isJavaScript() || Style.isCSharp()) && in determineTokenType()
1787 Style.isJavaScript() in determineTokenType()
1825 Style.Language == FormatStyle::LK_Java) { in determineTokenType()
1854 if (Style.isJavaScript() && Line.MustBeDeclaration && in determineTokenType()
1865 Style.Language != FormatStyle::LK_TextProto)) { in determineTokenType()
1905 } else if (Current.is(tok::at) && Current.Next && !Style.isJavaScript() && in determineTokenType()
1906 Style.Language != FormatStyle::LK_Java) { in determineTokenType()
1926 } else if (Style.Language == FormatStyle::LK_Java && Current.Previous && in determineTokenType()
1951 } else if ((Style.Language == FormatStyle::LK_Java || in determineTokenType()
1952 Style.isJavaScript()) && in determineTokenType()
1983 if (Style.isJavaScript() && Tok.Previous->is(Keywords.kw_in)) in isStartOfName()
1990 if (!Style.isJavaScript()) in isStartOfName()
2033 return Style.isJavaScript() && PreviousNotConst->is(tok::kw_const); in isStartOfName()
2039 if (!Style.isCpp()) in lParenStartsCppCast()
2060 if (!Style.isCSharp() && !Style.isCpp() && in rParenEndsCast()
2061 Style.Language != FormatStyle::LK_Java) { in rParenEndsCast()
2129 if (Tok.Next->is(Keywords.kw_in) && Style.isCSharp()) in rParenEndsCast()
2143 if (Style.Language == FormatStyle::LK_Java && Tok.Next->is(tok::l_paren)) in rParenEndsCast()
2279 if (Style.isJavaScript()) in determineStarAmpUsage()
2283 if (Style.isCSharp() && Tok.is(tok::ampamp)) in determineStarAmpUsage()
2401 const FormatStyle &Style; member in clang::format::__anon095ba8b90111::AnnotatingParser
2421 ExpressionParser(const FormatStyle &Style, const AdditionalKeywords &Keywords, in ExpressionParser() argument
2423 : Style(Style), Keywords(Keywords), Line(Line), Current(Line.First) {} in ExpressionParser()
2540 ((Style.Language == FormatStyle::LK_Proto || in getCurrentPrecedence()
2541 Style.Language == FormatStyle::LK_TextProto) && in getCurrentPrecedence()
2558 if ((Style.Language == FormatStyle::LK_Java || Style.isJavaScript()) && in getCurrentPrecedence()
2562 if (Style.isJavaScript() && in getCurrentPrecedence()
2570 if ((Style.Language == FormatStyle::LK_Java || Style.isJavaScript()) && in getCurrentPrecedence()
2634 const FormatStyle &Style; member in clang::format::__anon095ba8b90111::ExpressionParser
2658 (Style.IndentPPDirectives != FormatStyle::PPDIS_BeforeHash && in setCommentLineLevels()
2682 AnnotatingParser Parser(Style, Line, Keywords); in annotate()
2695 ExpressionParser ExprParser(Style, Keywords, Line); in annotate()
2830 if ((Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_TopLevel || in mustBreakForReturnType()
2831 Style.AlwaysBreakAfterReturnType == in mustBreakForReturnType()
2837 switch (Style.AlwaysBreakAfterReturnType) { in mustBreakForReturnType()
2856 Line.First->IsMultiline ? Style.ColumnLimit in calculateFormattingInformation()
2861 (Style.AlignArrayOfStructures != FormatStyle::AIAS_None && in calculateFormattingInformation()
2867 if (isFunctionDeclarationName(Style.isCpp(), *Current, Line)) in calculateFormattingInformation()
2873 (Style.Cpp11BracedListStyle && !Style.SpacesInParentheses) ? 0 : 1; in calculateFormattingInformation()
2875 Current->SpacesRequiredBefore = Style.SpacesBeforeTrailingComments; in calculateFormattingInformation()
2921 ChildSize = LastOfChild.isTrailingComment() ? Style.ColumnLimit in calculateFormattingInformation()
2928 Current->TotalLength = Prev->TotalLength + Style.ColumnLimit; in calculateFormattingInformation()
2947 if (Style.Language == FormatStyle::LK_ObjC && in calculateFormattingInformation()
2964 Current->MatchingParen->opensBlockOrBlockTypeList(Style) && in calculateFormattingInformation()
2969 if (Current->opensBlockOrBlockTypeList(Style)) in calculateFormattingInformation()
3041 if (Style.Language == FormatStyle::LK_Java) { in splitPenalty()
3048 } else if (Style.isJavaScript()) { in splitPenalty()
3065 if (Style.Language == FormatStyle::LK_Proto) in splitPenalty()
3080 (Right.is(tok::period) && Style.Language == FormatStyle::LK_Proto)) { in splitPenalty()
3090 return Style.PenaltyReturnTypeOnItsOwnLine; in splitPenalty()
3170 if (Left.is(tok::l_paren) && Style.PenaltyBreakOpenParenthesis != 0) in splitPenalty()
3171 return Style.PenaltyBreakOpenParenthesis; in splitPenalty()
3173 Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign) { in splitPenalty()
3190 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_DontAlign && in splitPenalty()
3191 (Left.ParameterCount <= 1 || Style.AllowAllArgumentsOnNextLine)) { in splitPenalty()
3194 if (Left.is(tok::l_brace) && !Style.Cpp11BracedListStyle) in splitPenalty()
3196 return Left.ParameterCount > 1 ? Style.PenaltyBreakBeforeFirstCallParameter in splitPenalty()
3228 return Style.PenaltyBreakTemplateDeclaration; in splitPenalty()
3237 return Style.PenaltyBreakAssignment; in splitPenalty()
3245 if (Style.SpaceBeforeParens == FormatStyle::SBPO_Always) in spaceRequiredBeforeParens()
3248 Style.SpaceBeforeParensOptions.AfterOverloadedOperator) { in spaceRequiredBeforeParens()
3251 if (Style.SpaceBeforeParensOptions.BeforeNonEmptyParentheses && in spaceRequiredBeforeParens()
3265 if (Style.isJson() && Left.is(tok::string_literal) && Right.is(tok::colon)) in spaceRequiredBetween()
3267 if (Left.is(Keywords.kw_assert) && Style.Language == FormatStyle::LK_Java) in spaceRequiredBetween()
3269 if (Style.ObjCSpaceAfterProperty && Line.Type == LT_ObjCProperty && in spaceRequiredBetween()
3280 return Style.SpaceInEmptyParentheses; in spaceRequiredBetween()
3282 if (Style.SpacesInConditionalStatement) { in spaceRequiredBetween()
3312 ? Style.SpacesInCStyleCastParentheses in spaceRequiredBetween()
3313 : Style.SpacesInParentheses; in spaceRequiredBetween()
3321 return !IsLightweightGeneric && Style.ObjCSpaceBeforeProtocolList; in spaceRequiredBetween()
3324 return Style.SpaceAfterTemplateKeyword; in spaceRequiredBetween()
3338 if (Style.Language == FormatStyle::LK_TextProto || in spaceRequiredBetween()
3339 (Style.Language == FormatStyle::LK_Proto && in spaceRequiredBetween()
3344 return !Style.Cpp11BracedListStyle; in spaceRequiredBetween()
3353 return Style.SpacesInSquareBrackets; in spaceRequiredBetween()
3366 if ((Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_After || in spaceRequiredBetween()
3367 Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Both) && in spaceRequiredBetween()
3396 if ((Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Before || in spaceRequiredBetween()
3397 Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Both) && in spaceRequiredBetween()
3445 return Style.PointerAlignment != FormatStyle::PAS_Right; in spaceRequiredBetween()
3483 return Style.PointerAlignment != FormatStyle::PAS_Left; in spaceRequiredBetween()
3485 return (Style.PointerAlignment != FormatStyle::PAS_Left) || in spaceRequiredBetween()
3486 (Style.SpaceAroundPointerQualifiers == in spaceRequiredBetween()
3488 (Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Both); in spaceRequiredBetween()
3493 [](const FormatToken &LSquareTok, const FormatStyle &Style) { in spaceRequiredBetween() argument
3494 return Style.SpacesInContainerLiterals || in spaceRequiredBetween()
3495 ((Style.Language == FormatStyle::LK_Proto || in spaceRequiredBetween()
3496 Style.Language == FormatStyle::LK_TextProto) && in spaceRequiredBetween()
3497 !Style.Cpp11BracedListStyle && in spaceRequiredBetween()
3503 SpaceRequiredForArrayInitializerLSquare(Left, Style)) || in spaceRequiredBetween()
3506 Style.SpacesInSquareBrackets && Right.isNot(tok::r_square)); in spaceRequiredBetween()
3512 Style)) || in spaceRequiredBetween()
3513 (Style.SpacesInSquareBrackets && in spaceRequiredBetween()
3524 !(!Left.is(tok::r_square) && Style.SpaceBeforeSquareBrackets && in spaceRequiredBetween()
3533 return Style.Cpp11BracedListStyle ? Style.SpacesInParentheses : true; in spaceRequiredBetween()
3537 return Style.isJavaScript() || !Left.TokenText.endswith("=*/"); in spaceRequiredBetween()
3550 return Style.SpaceBeforeParensOptions.AfterRequiresInClause || in spaceRequiredBetween()
3554 return Style.SpaceBeforeParensOptions.AfterRequiresInExpression || in spaceRequiredBetween()
3562 return Style.SpaceBeforeParensOptions.AfterForeachMacros || in spaceRequiredBetween()
3566 return Style.SpaceBeforeParensOptions.AfterIfMacros || in spaceRequiredBetween()
3576 return Style.SpaceBeforeParensOptions.AfterControlStatements || in spaceRequiredBetween()
3587 return Style.SpaceBeforeParensOptions.AfterFunctionDefinitionName || in spaceRequiredBetween()
3590 return Style.SpaceBeforeParensOptions.AfterFunctionDeclarationName || in spaceRequiredBetween()
3597 return Style.SpaceBeforeParensOptions.AfterFunctionDefinitionName || in spaceRequiredBetween()
3602 return Style.SpaceBeforeParensOptions.AfterControlStatements || in spaceRequiredBetween()
3607 Style.SpaceBeforeParens != FormatStyle::SBPO_Never) || in spaceRequiredBetween()
3614 return (Style.SpaceBeforeParens != FormatStyle::SBPO_Never) || in spaceRequiredBetween()
3700 if (Style.isCpp()) { in spaceRequiredBefore()
3729 !Left.opensScope() && Style.SpaceBeforeCpp11BracedList) { in spaceRequiredBefore()
3736 } else if (Style.Language == FormatStyle::LK_Proto || in spaceRequiredBefore()
3737 Style.Language == FormatStyle::LK_TextProto) { in spaceRequiredBefore()
3755 return !Style.Cpp11BracedListStyle; in spaceRequiredBefore()
3764 } else if (Style.isJson()) { in spaceRequiredBefore()
3767 } else if (Style.isCSharp()) { in spaceRequiredBefore()
3805 return Style.SpacesInSquareBrackets; in spaceRequiredBefore()
3827 return Style.SpaceBeforeParensOptions.AfterControlStatements || in spaceRequiredBefore()
3842 } else if (Style.isJavaScript()) { in spaceRequiredBefore()
3946 } else if (Style.Language == FormatStyle::LK_Java) { in spaceRequiredBefore()
3950 return Style.SpaceBeforeParensOptions.AfterControlStatements || in spaceRequiredBefore()
3960 } else if (Style.isVerilog()) { in spaceRequiredBefore()
4004 return Style.SpaceBeforeCtorInitializerColon; in spaceRequiredBefore()
4005 if (Right.is(TT_InheritanceColon) && !Style.SpaceBeforeInheritanceColon) in spaceRequiredBefore()
4008 !Style.SpaceBeforeRangeBasedForLoopColon) { in spaceRequiredBefore()
4012 return Style.BitFieldColonSpacing == FormatStyle::BFCS_Both || in spaceRequiredBefore()
4013 Style.BitFieldColonSpacing == FormatStyle::BFCS_After; in spaceRequiredBefore()
4017 return Style.SpaceBeforeCaseColon; in spaceRequiredBefore()
4028 return Style.SpacesInContainerLiterals; in spaceRequiredBefore()
4034 return Style.BitFieldColonSpacing == FormatStyle::BFCS_Both || in spaceRequiredBefore()
4035 Style.BitFieldColonSpacing == FormatStyle::BFCS_Before; in spaceRequiredBefore()
4058 return Style.SpacesInSquareBrackets; in spaceRequiredBefore()
4060 return (Style.SpaceAfterLogicalNot && Left.is(tok::exclaim)) || in spaceRequiredBefore()
4067 return Style.SpaceAfterCStyleCast || in spaceRequiredBefore()
4072 if (this->Style.SpacesInAngles == FormatStyle::SIAS_Always) in spaceRequiredBefore()
4074 if (this->Style.SpacesInAngles == FormatStyle::SIAS_Leave) in spaceRequiredBefore()
4080 if (Style.Language == FormatStyle::LK_TextProto || in spaceRequiredBefore()
4081 (Style.Language == FormatStyle::LK_Proto && Left.is(TT_DictLiteral))) { in spaceRequiredBefore()
4082 return !Style.Cpp11BracedListStyle; in spaceRequiredBefore()
4085 ((Style.Standard < FormatStyle::LS_Cpp11) || in spaceRequiredBefore()
4093 if (!Style.SpaceBeforeAssignmentOperators && Left.isNot(TT_TemplateCloser) && in spaceRequiredBefore()
4097 if (Style.Language == FormatStyle::LK_Java && Right.is(tok::coloncolon) && in spaceRequiredBefore()
4111 ((Style.Standard < FormatStyle::LS_Cpp11) || in spaceRequiredBefore()
4116 (Left.is(tok::l_paren) && Style.SpacesInParentheses); in spaceRequiredBefore()
4187 if (Right.NewlinesBefore > 1 && Style.MaxEmptyLinesToKeep > 0) in mustBreakBefore()
4190 if (Style.isCSharp()) { in mustBreakBefore()
4192 Style.BraceWrapping.AfterFunction) { in mustBreakBefore()
4219 } else if (Style.isJavaScript()) { in mustBreakBefore()
4248 switch (Style.AllowShortLambdasOnASingleLine) { in mustBreakBefore()
4267 return Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_None || in mustBreakBefore()
4268 Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_Empty || in mustBreakBefore()
4270 Style.AllowShortFunctionsOnASingleLine & in mustBreakBefore()
4273 } else if (Style.Language == FormatStyle::LK_Java) { in mustBreakBefore()
4278 } else if (Style.Language == FormatStyle::LK_Cpp || in mustBreakBefore()
4279 Style.Language == FormatStyle::LK_ObjC || in mustBreakBefore()
4280 Style.Language == FormatStyle::LK_Proto || in mustBreakBefore()
4281 Style.Language == FormatStyle::LK_TableGen || in mustBreakBefore()
4282 Style.Language == FormatStyle::LK_TextProto) { in mustBreakBefore()
4288 if (Style.isJson()) { in mustBreakBefore()
4312 if (Style.JavaScriptWrapImports || Line.Type != LT_ImportStatement) { in mustBreakBefore()
4315 (Style.isJavaScript() && Left.is(tok::l_paren))) && in mustBreakBefore()
4321 (Style.isJavaScript() && in mustBreakBefore()
4344 switch (Style.RequiresClausePosition) { in mustBreakBefore()
4359 return Style.BreakBeforeConceptDeclarations == FormatStyle::BBCDS_Always; in mustBreakBefore()
4360 return Style.AlwaysBreakTemplateDeclarations == FormatStyle::BTDS_Yes; in mustBreakBefore()
4363 switch (Style.RequiresClausePosition) { in mustBreakBefore()
4371 if (Style.PackConstructorInitializers == FormatStyle::PCIS_Never) { in mustBreakBefore()
4372 if (Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeColon && in mustBreakBefore()
4378 if (Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon && in mustBreakBefore()
4383 if (Style.PackConstructorInitializers < FormatStyle::PCIS_CurrentLine && in mustBreakBefore()
4384 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma && in mustBreakBefore()
4389 if (Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma && in mustBreakBefore()
4393 if (Style.BreakInheritanceList == FormatStyle::BILS_AfterComma && in mustBreakBefore()
4405 Right.NestingLevel == 1 && Style.Language == FormatStyle::LK_Proto) { in mustBreakBefore()
4420 if (Style.BraceWrapping.AfterEnum) { in mustBreakBefore()
4433 if (Style.BraceWrapping.AfterClass && in mustBreakBefore()
4440 return (Line.startsWith(tok::kw_class) && Style.BraceWrapping.AfterClass) || in mustBreakBefore()
4441 (Line.startsWith(tok::kw_struct) && Style.BraceWrapping.AfterStruct); in mustBreakBefore()
4445 Style.AllowShortBlocksOnASingleLine == FormatStyle::SBS_Never) { in mustBreakBefore()
4455 Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_Inline) { in mustBreakBefore()
4459 if (Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_None || in mustBreakBefore()
4460 Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_Inline || in mustBreakBefore()
4462 Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_Empty)) { in mustBreakBefore()
4467 if (Style.BraceWrapping.BeforeLambdaBody && Right.is(TT_LambdaLBrace) && in mustBreakBefore()
4473 if ((Style.Language == FormatStyle::LK_Java || Style.isJavaScript()) && in mustBreakBefore()
4476 (Line.Last->is(tok::l_brace) || Style.BreakAfterJavaFieldAnnotations)) { in mustBreakBefore()
4510 if ((Style.Language == FormatStyle::LK_Proto || in mustBreakBefore()
4511 Style.Language == FormatStyle::LK_TextProto) && in mustBreakBefore()
4571 if ((Style.Language == FormatStyle::LK_Cpp || in mustBreakBefore()
4572 Style.Language == FormatStyle::LK_ObjC) && in mustBreakBefore()
4599 if (Style.isCSharp()) { in canBreakBefore()
4610 } else if (Style.Language == FormatStyle::LK_Java) { in canBreakBefore()
4619 } else if (Style.isJavaScript()) { in canBreakBefore()
4664 return Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None; in canBreakBefore()
4666 return Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None; in canBreakBefore()
4728 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon); in canBreakBefore()
4733 return Style.BreakBeforeTernaryOperators; in canBreakBefore()
4735 return !Style.BreakBeforeTernaryOperators; in canBreakBefore()
4737 return Style.BreakInheritanceList == FormatStyle::BILS_AfterColon; in canBreakBefore()
4739 return Style.BreakInheritanceList != FormatStyle::BILS_AfterColon; in canBreakBefore()
4750 if (Style.Language == FormatStyle::LK_Proto || in canBreakBefore()
4751 Style.Language == FormatStyle::LK_TextProto) { in canBreakBefore()
4752 if (!Style.AlwaysBreakBeforeMultilineStrings && Right.isStringLiteral()) in canBreakBefore()
4797 return Style.BreakBeforeConceptDeclarations != FormatStyle::BBCDS_Never; in canBreakBefore()
4819 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None && in canBreakBefore()
4820 (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_All || in canBreakBefore()
4833 !Style.Cpp11BracedListStyle) { in canBreakBefore()
4861 if (Style.AlignAfterOpenBracket != FormatStyle::BAS_BlockIndent || in canBreakBefore()
4888 return Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon && in canBreakBefore()
4892 return Style.BreakConstructorInitializers != FormatStyle::BCIS_AfterColon; in canBreakBefore()
4894 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) { in canBreakBefore()
4898 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) { in canBreakBefore()
4902 Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma) { in canBreakBefore()
4906 Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma) { in canBreakBefore()
4915 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_All && in canBreakBefore()
4916 (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None || in canBreakBefore()
4925 auto ShortLambdaOption = Style.AllowShortLambdasOnASingleLine; in canBreakBefore()
4926 if (Style.BraceWrapping.BeforeLambdaBody && Right.is(TT_LambdaLBrace)) { in canBreakBefore()
4971 switch (Style.ReferenceAlignment) { in getTokenReferenceAlignment()
4973 return Style.PointerAlignment; in getTokenReferenceAlignment()
4982 return Style.PointerAlignment; in getTokenReferenceAlignment()
4989 switch (Style.ReferenceAlignment) { in getTokenPointerOrReferenceAlignment()
4991 return Style.PointerAlignment; in getTokenPointerOrReferenceAlignment()
5001 return Style.PointerAlignment; in getTokenPointerOrReferenceAlignment()