Lines Matching refs:FormatStyle

113   AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line,  in AnnotatingParser()
154 if (Style.Language == FormatStyle::LK_Java && in parseAngle()
181 if (Style.Language == FormatStyle::LK_TextProto || in parseAngle()
182 (Style.Language == FormatStyle::LK_Proto && Left->Previous && in parseAngle()
192 Style.Language == FormatStyle::LK_Java) { in parseAngle()
198 !Style.isCSharp() && Style.Language != FormatStyle::LK_Proto && in parseAngle()
199 Style.Language != FormatStyle::LK_TextProto)) { in parseAngle()
215 if (Style.Language == FormatStyle::LK_Proto) { in parseAngle()
651 } else if (Style.Language == FormatStyle::LK_Proto || in parseSquare()
652 Style.Language == FormatStyle::LK_TextProto) { in parseSquare()
852 if (Style.AlignArrayOfStructures != FormatStyle::AIAS_None) { in parseBrace()
870 Style.Language == FormatStyle::LK_Proto || in parseBrace()
871 Style.Language == FormatStyle::LK_TextProto) { in parseBrace()
1001 Style.Language == FormatStyle::LK_Proto || in consumeToken()
1002 Style.Language == FormatStyle::LK_TextProto) { in consumeToken()
1004 if (Style.Language == FormatStyle::LK_TextProto) { in consumeToken()
1143 if (Style.Language == FormatStyle::LK_TextProto) { in consumeToken()
1159 if (Style.Language == FormatStyle::LK_TextProto || in consumeToken()
1160 (Style.Language == FormatStyle::LK_Proto && Tok->Previous && in consumeToken()
1183 if (Style.Language != FormatStyle::LK_TextProto) in consumeToken()
1189 if (Style.Language == FormatStyle::LK_TextProto || in consumeToken()
1190 Style.Language == FormatStyle::LK_Proto) { in consumeToken()
1472 if ((Style.Language == FormatStyle::LK_Java && in parseLine()
1492 if (Style.Language == FormatStyle::LK_Proto && Line.Level == 0 && in parseLine()
1659 if (P.Style.AlignArrayOfStructures != FormatStyle::AIAS_None) { in ~ScopedContextCreator()
1748 Contexts.back().IsExpression = Style.Language == FormatStyle::LK_Java; in modifyContext()
1880 Style.Language == FormatStyle::LK_Java) { in determineTokenType()
1921 Style.Language != FormatStyle::LK_TextProto)) { in determineTokenType()
1962 Style.Language != FormatStyle::LK_Java) { in determineTokenType()
1982 } else if (Style.Language == FormatStyle::LK_Java && Current.Previous && in determineTokenType()
2009 } else if ((Style.Language == FormatStyle::LK_Java || in determineTokenType()
2091 if (Style.Language == FormatStyle::LK_Java && in isStartOfName()
2125 Style.Language != FormatStyle::LK_Java) { in rParenEndsCast()
2210 if (Style.Language == FormatStyle::LK_Java && Tok.Next->is(tok::l_paren)) in rParenEndsCast()
2473 const FormatStyle &Style;
2493 ExpressionParser(const FormatStyle &Style, const AdditionalKeywords &Keywords, in ExpressionParser()
2612 ((Style.Language == FormatStyle::LK_Proto || in getCurrentPrecedence()
2613 Style.Language == FormatStyle::LK_TextProto) && in getCurrentPrecedence()
2630 if ((Style.Language == FormatStyle::LK_Java || Style.isJavaScript()) && in getCurrentPrecedence()
2644 if ((Style.Language == FormatStyle::LK_Java || Style.isJavaScript()) && in getCurrentPrecedence()
2712 const FormatStyle &Style;
2740 Line->Level = Style.IndentPPDirectives != FormatStyle::PPDIS_BeforeHash && in setCommentLineLevels()
2915 if ((Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_TopLevel || in mustBreakForReturnType()
2917 FormatStyle::RTBS_TopLevelDefinitions) && in mustBreakForReturnType()
2923 case FormatStyle::RTBS_None: in mustBreakForReturnType()
2925 case FormatStyle::RTBS_All: in mustBreakForReturnType()
2926 case FormatStyle::RTBS_TopLevel: in mustBreakForReturnType()
2928 case FormatStyle::RTBS_AllDefinitions: in mustBreakForReturnType()
2929 case FormatStyle::RTBS_TopLevelDefinitions: in mustBreakForReturnType()
2937 const FormatStyle &Style) { in mustBreakAfterAttributes()
2939 case FormatStyle::ABS_Always: in mustBreakAfterAttributes()
2941 case FormatStyle::ABS_Leave: in mustBreakAfterAttributes()
2958 (Style.AlignArrayOfStructures != FormatStyle::AIAS_None && in calculateFormattingInformation()
3057 if (Style.Language == FormatStyle::LK_ObjC && in calculateFormattingInformation()
3152 if (Style.Language == FormatStyle::LK_Java) { in splitPenalty()
3285 Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign) { in splitPenalty()
3303 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_DontAlign && in splitPenalty()
3358 if (Style.SpaceBeforeParens == FormatStyle::SBPO_Always) in spaceRequiredBeforeParens()
3384 if (Left.is(Keywords.kw_assert) && Style.Language == FormatStyle::LK_Java) in spaceRequiredBetween()
3462 if (Style.Language == FormatStyle::LK_TextProto || in spaceRequiredBetween()
3463 (Style.Language == FormatStyle::LK_Proto && in spaceRequiredBetween()
3492 if ((Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_After || in spaceRequiredBetween()
3493 Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Both) && in spaceRequiredBetween()
3504 FormatStyle::PAS_Left; in spaceRequiredBetween()
3508 FormatStyle::PAS_Left || in spaceRequiredBetween()
3515 (getTokenPointerOrReferenceAlignment(Left) != FormatStyle::PAS_Right && in spaceRequiredBetween()
3522 if ((Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Before || in spaceRequiredBetween()
3523 Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Both) && in spaceRequiredBetween()
3546 FormatStyle::PAS_Right; in spaceRequiredBetween()
3552 if (getTokenPointerOrReferenceAlignment(Left) == FormatStyle::PAS_Right) in spaceRequiredBetween()
3572 return Style.PointerAlignment != FormatStyle::PAS_Right; in spaceRequiredBetween()
3610 return Style.PointerAlignment != FormatStyle::PAS_Left; in spaceRequiredBetween()
3612 return (Style.PointerAlignment != FormatStyle::PAS_Left) || in spaceRequiredBetween()
3614 FormatStyle::SAPQ_After) || in spaceRequiredBetween()
3615 (Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Both); in spaceRequiredBetween()
3620 [](const FormatToken &LSquareTok, const FormatStyle &Style) { in spaceRequiredBetween()
3622 ((Style.Language == FormatStyle::LK_Proto || in spaceRequiredBetween()
3623 Style.Language == FormatStyle::LK_TextProto) && in spaceRequiredBetween()
3735 Style.SpaceBeforeParens != FormatStyle::SBPO_Never) || in spaceRequiredBetween()
3742 return (Style.SpaceBeforeParens != FormatStyle::SBPO_Never) || in spaceRequiredBetween()
3804 return getTokenReferenceAlignment(Right) != FormatStyle::PAS_Left; in spaceRequiredBetween()
3867 } else if (Style.Language == FormatStyle::LK_Proto || in spaceRequiredBefore()
3868 Style.Language == FormatStyle::LK_TextProto) { in spaceRequiredBefore()
4077 } else if (Style.Language == FormatStyle::LK_Java) { in spaceRequiredBefore()
4176 return Style.BitFieldColonSpacing == FormatStyle::BFCS_Both || in spaceRequiredBefore()
4177 Style.BitFieldColonSpacing == FormatStyle::BFCS_After; in spaceRequiredBefore()
4205 return Style.BitFieldColonSpacing == FormatStyle::BFCS_Both || in spaceRequiredBefore()
4206 Style.BitFieldColonSpacing == FormatStyle::BFCS_Before; in spaceRequiredBefore()
4243 if (this->Style.SpacesInAngles == FormatStyle::SIAS_Always) in spaceRequiredBefore()
4245 if (this->Style.SpacesInAngles == FormatStyle::SIAS_Leave) in spaceRequiredBefore()
4251 if (Style.Language == FormatStyle::LK_TextProto || in spaceRequiredBefore()
4252 (Style.Language == FormatStyle::LK_Proto && Left.is(TT_DictLiteral))) { in spaceRequiredBefore()
4256 ((Style.Standard < FormatStyle::LS_Cpp11) || in spaceRequiredBefore()
4268 if (Style.Language == FormatStyle::LK_Java && Right.is(tok::coloncolon) && in spaceRequiredBefore()
4282 ((Style.Standard < FormatStyle::LS_Cpp11) || in spaceRequiredBefore()
4294 getTokenReferenceAlignment(Left) != FormatStyle::PAS_Right; in spaceRequiredBefore()
4299 return getTokenReferenceAlignment(Right) != FormatStyle::PAS_Left; in spaceRequiredBefore()
4336 FormatStyle::ShortLambdaStyle ShortLambdaOption) { in isItAnEmptyLambdaAllowed()
4337 return Tok.Children.empty() && ShortLambdaOption != FormatStyle::SLS_None; in isItAnEmptyLambdaAllowed()
4420 case FormatStyle::SLS_All: in mustBreakBefore()
4422 case FormatStyle::SLS_None: in mustBreakBefore()
4424 case FormatStyle::SLS_Empty: in mustBreakBefore()
4426 case FormatStyle::SLS_Inline: in mustBreakBefore()
4438 return Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_None || in mustBreakBefore()
4439 Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_Empty || in mustBreakBefore()
4442 FormatStyle::SFS_InlineOnly); in mustBreakBefore()
4444 } else if (Style.Language == FormatStyle::LK_Java) { in mustBreakBefore()
4454 } else if (Style.Language == FormatStyle::LK_Cpp || in mustBreakBefore()
4455 Style.Language == FormatStyle::LK_ObjC || in mustBreakBefore()
4456 Style.Language == FormatStyle::LK_Proto || in mustBreakBefore()
4457 Style.Language == FormatStyle::LK_TableGen || in mustBreakBefore()
4458 Style.Language == FormatStyle::LK_TextProto) { in mustBreakBefore()
4489 Style.BreakBeforeInlineASMColon == FormatStyle::BBIAS_Always) { in mustBreakBefore()
4530 case FormatStyle::RCPS_OwnLine: in mustBreakBefore()
4531 case FormatStyle::RCPS_WithFollowing: in mustBreakBefore()
4544 return Style.BreakBeforeConceptDeclarations == FormatStyle::BBCDS_Always; in mustBreakBefore()
4545 return Style.AlwaysBreakTemplateDeclarations == FormatStyle::BTDS_Yes; in mustBreakBefore()
4549 case FormatStyle::RCPS_OwnLine: in mustBreakBefore()
4550 case FormatStyle::RCPS_WithPreceding: in mustBreakBefore()
4556 if (Style.PackConstructorInitializers == FormatStyle::PCIS_Never) { in mustBreakBefore()
4557 if (Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeColon && in mustBreakBefore()
4563 if (Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon && in mustBreakBefore()
4568 if (Style.PackConstructorInitializers < FormatStyle::PCIS_CurrentLine && in mustBreakBefore()
4569 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma && in mustBreakBefore()
4574 if (Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma && in mustBreakBefore()
4578 if (Style.BreakInheritanceList == FormatStyle::BILS_AfterComma && in mustBreakBefore()
4590 Right.NestingLevel == 1 && Style.Language == FormatStyle::LK_Proto) { in mustBreakBefore()
4630 Style.AllowShortBlocksOnASingleLine == FormatStyle::SBS_Never) { in mustBreakBefore()
4640 Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_Inline) { in mustBreakBefore()
4644 if (Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_None || in mustBreakBefore()
4645 Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_Inline || in mustBreakBefore()
4647 Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_Empty)) { in mustBreakBefore()
4658 if ((Style.Language == FormatStyle::LK_Java || Style.isJavaScript()) && in mustBreakBefore()
4695 if ((Style.Language == FormatStyle::LK_Proto || in mustBreakBefore()
4696 Style.Language == FormatStyle::LK_TextProto) && in mustBreakBefore()
4756 if ((Style.Language == FormatStyle::LK_Cpp || in mustBreakBefore()
4757 Style.Language == FormatStyle::LK_ObjC) && in mustBreakBefore()
4795 } else if (Style.Language == FormatStyle::LK_Java) { in canBreakBefore()
4849 return Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None; in canBreakBefore()
4851 return Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None; in canBreakBefore()
4896 FormatStyle::PAS_Right && in canBreakBefore()
4913 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon); in canBreakBefore()
4922 return Style.BreakInheritanceList == FormatStyle::BILS_AfterColon; in canBreakBefore()
4924 return Style.BreakInheritanceList != FormatStyle::BILS_AfterColon; in canBreakBefore()
4935 if (Style.Language == FormatStyle::LK_Proto || in canBreakBefore()
4936 Style.Language == FormatStyle::LK_TextProto) { in canBreakBefore()
4982 return Style.BreakBeforeConceptDeclarations != FormatStyle::BBCDS_Never; in canBreakBefore()
5004 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None && in canBreakBefore()
5005 (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_All || in canBreakBefore()
5046 if (Style.AlignAfterOpenBracket != FormatStyle::BAS_BlockIndent || in canBreakBefore()
5078 return Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon && in canBreakBefore()
5082 return Style.BreakConstructorInitializers != FormatStyle::BCIS_AfterColon; in canBreakBefore()
5084 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) { in canBreakBefore()
5088 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) { in canBreakBefore()
5092 Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma) { in canBreakBefore()
5096 Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma) { in canBreakBefore()
5105 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_All && in canBreakBefore()
5106 (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None || in canBreakBefore()
5160 FormatStyle::PointerAlignmentStyle
5164 case FormatStyle::RAS_Pointer: in getTokenReferenceAlignment()
5166 case FormatStyle::RAS_Left: in getTokenReferenceAlignment()
5167 return FormatStyle::PAS_Left; in getTokenReferenceAlignment()
5168 case FormatStyle::RAS_Right: in getTokenReferenceAlignment()
5169 return FormatStyle::PAS_Right; in getTokenReferenceAlignment()
5170 case FormatStyle::RAS_Middle: in getTokenReferenceAlignment()
5171 return FormatStyle::PAS_Middle; in getTokenReferenceAlignment()
5177 FormatStyle::PointerAlignmentStyle
5182 case FormatStyle::RAS_Pointer: in getTokenPointerOrReferenceAlignment()
5184 case FormatStyle::RAS_Left: in getTokenPointerOrReferenceAlignment()
5185 return FormatStyle::PAS_Left; in getTokenPointerOrReferenceAlignment()
5186 case FormatStyle::RAS_Right: in getTokenPointerOrReferenceAlignment()
5187 return FormatStyle::PAS_Right; in getTokenPointerOrReferenceAlignment()
5188 case FormatStyle::RAS_Middle: in getTokenPointerOrReferenceAlignment()
5189 return FormatStyle::PAS_Middle; in getTokenPointerOrReferenceAlignment()