Lines Matching refs:FormatStyle

81   AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line,  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()
633 } else if (Style.Language == FormatStyle::LK_Proto || in parseSquare()
634 Style.Language == FormatStyle::LK_TextProto) { in parseSquare()
830 if (Style.AlignArrayOfStructures != FormatStyle::AIAS_None) { in parseBrace()
848 Style.Language == FormatStyle::LK_Proto || in parseBrace()
849 Style.Language == FormatStyle::LK_TextProto) { in parseBrace()
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()
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()
1406 if ((Style.Language == FormatStyle::LK_Java && in parseLine()
1426 if (Style.Language == FormatStyle::LK_Proto && Line.Level == 0 && in parseLine()
1591 if (P.Style.AlignArrayOfStructures != FormatStyle::AIAS_None) { in ~ScopedContextCreator()
1680 Contexts.back().IsExpression = Style.Language == FormatStyle::LK_Java; in modifyContext()
1825 Style.Language == FormatStyle::LK_Java) { in determineTokenType()
1865 Style.Language != FormatStyle::LK_TextProto)) { 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()
2061 Style.Language != FormatStyle::LK_Java) { in rParenEndsCast()
2143 if (Style.Language == FormatStyle::LK_Java && Tok.Next->is(tok::l_paren)) in rParenEndsCast()
2401 const FormatStyle &Style;
2421 ExpressionParser(const FormatStyle &Style, const AdditionalKeywords &Keywords, 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()
2570 if ((Style.Language == FormatStyle::LK_Java || Style.isJavaScript()) && in getCurrentPrecedence()
2634 const FormatStyle &Style;
2658 (Style.IndentPPDirectives != FormatStyle::PPDIS_BeforeHash && in setCommentLineLevels()
2830 if ((Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_TopLevel || in mustBreakForReturnType()
2832 FormatStyle::RTBS_TopLevelDefinitions) && in mustBreakForReturnType()
2838 case FormatStyle::RTBS_None: in mustBreakForReturnType()
2840 case FormatStyle::RTBS_All: in mustBreakForReturnType()
2841 case FormatStyle::RTBS_TopLevel: in mustBreakForReturnType()
2843 case FormatStyle::RTBS_AllDefinitions: in mustBreakForReturnType()
2844 case FormatStyle::RTBS_TopLevelDefinitions: in mustBreakForReturnType()
2861 (Style.AlignArrayOfStructures != FormatStyle::AIAS_None && in calculateFormattingInformation()
2947 if (Style.Language == FormatStyle::LK_ObjC && in calculateFormattingInformation()
3041 if (Style.Language == FormatStyle::LK_Java) { in splitPenalty()
3065 if (Style.Language == FormatStyle::LK_Proto) in splitPenalty()
3080 (Right.is(tok::period) && Style.Language == FormatStyle::LK_Proto)) { in splitPenalty()
3173 Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign) { in splitPenalty()
3190 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_DontAlign && in splitPenalty()
3245 if (Style.SpaceBeforeParens == FormatStyle::SBPO_Always) in spaceRequiredBeforeParens()
3267 if (Left.is(Keywords.kw_assert) && Style.Language == FormatStyle::LK_Java) in spaceRequiredBetween()
3338 if (Style.Language == FormatStyle::LK_TextProto || in spaceRequiredBetween()
3339 (Style.Language == FormatStyle::LK_Proto && in spaceRequiredBetween()
3366 if ((Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_After || in spaceRequiredBetween()
3367 Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Both) && in spaceRequiredBetween()
3378 FormatStyle::PAS_Left; in spaceRequiredBetween()
3382 FormatStyle::PAS_Left || in spaceRequiredBetween()
3389 (getTokenPointerOrReferenceAlignment(Left) != FormatStyle::PAS_Right && in spaceRequiredBetween()
3396 if ((Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Before || in spaceRequiredBetween()
3397 Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Both) && in spaceRequiredBetween()
3419 FormatStyle::PAS_Right; in spaceRequiredBetween()
3425 if (getTokenPointerOrReferenceAlignment(Left) == FormatStyle::PAS_Right) 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()
3487 FormatStyle::SAPQ_After) || in spaceRequiredBetween()
3488 (Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Both); in spaceRequiredBetween()
3493 [](const FormatToken &LSquareTok, const FormatStyle &Style) { in spaceRequiredBetween()
3495 ((Style.Language == FormatStyle::LK_Proto || in spaceRequiredBetween()
3496 Style.Language == FormatStyle::LK_TextProto) && in spaceRequiredBetween()
3607 Style.SpaceBeforeParens != FormatStyle::SBPO_Never) || in spaceRequiredBetween()
3614 return (Style.SpaceBeforeParens != FormatStyle::SBPO_Never) || in spaceRequiredBetween()
3676 return getTokenReferenceAlignment(Right) != FormatStyle::PAS_Left; in spaceRequiredBetween()
3736 } else if (Style.Language == FormatStyle::LK_Proto || in spaceRequiredBefore()
3737 Style.Language == FormatStyle::LK_TextProto) { in spaceRequiredBefore()
3946 } else if (Style.Language == FormatStyle::LK_Java) { in spaceRequiredBefore()
4012 return Style.BitFieldColonSpacing == FormatStyle::BFCS_Both || in spaceRequiredBefore()
4013 Style.BitFieldColonSpacing == FormatStyle::BFCS_After; in spaceRequiredBefore()
4034 return Style.BitFieldColonSpacing == FormatStyle::BFCS_Both || in spaceRequiredBefore()
4035 Style.BitFieldColonSpacing == FormatStyle::BFCS_Before; 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()
4085 ((Style.Standard < FormatStyle::LS_Cpp11) || in spaceRequiredBefore()
4097 if (Style.Language == FormatStyle::LK_Java && Right.is(tok::coloncolon) && in spaceRequiredBefore()
4111 ((Style.Standard < FormatStyle::LS_Cpp11) || in spaceRequiredBefore()
4123 getTokenReferenceAlignment(Left) != FormatStyle::PAS_Right; in spaceRequiredBefore()
4128 return getTokenReferenceAlignment(Right) != FormatStyle::PAS_Left; in spaceRequiredBefore()
4165 FormatStyle::ShortLambdaStyle ShortLambdaOption) { in isItAnEmptyLambdaAllowed()
4166 return Tok.Children.empty() && ShortLambdaOption != FormatStyle::SLS_None; in isItAnEmptyLambdaAllowed()
4249 case FormatStyle::SLS_All: in mustBreakBefore()
4251 case FormatStyle::SLS_None: in mustBreakBefore()
4253 case FormatStyle::SLS_Empty: in mustBreakBefore()
4255 case FormatStyle::SLS_Inline: in mustBreakBefore()
4267 return Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_None || in mustBreakBefore()
4268 Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_Empty || in mustBreakBefore()
4271 FormatStyle::SFS_InlineOnly); 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()
4345 case FormatStyle::RCPS_OwnLine: in mustBreakBefore()
4346 case FormatStyle::RCPS_WithFollowing: in mustBreakBefore()
4359 return Style.BreakBeforeConceptDeclarations == FormatStyle::BBCDS_Always; in mustBreakBefore()
4360 return Style.AlwaysBreakTemplateDeclarations == FormatStyle::BTDS_Yes; in mustBreakBefore()
4364 case FormatStyle::RCPS_OwnLine: in mustBreakBefore()
4365 case FormatStyle::RCPS_WithPreceding: 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()
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()
4473 if ((Style.Language == FormatStyle::LK_Java || Style.isJavaScript()) && 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()
4610 } else if (Style.Language == FormatStyle::LK_Java) { in canBreakBefore()
4664 return Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None; in canBreakBefore()
4666 return Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None; in canBreakBefore()
4711 FormatStyle::PAS_Right && in canBreakBefore()
4728 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon); 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()
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()
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()
4968 FormatStyle::PointerAlignmentStyle
4972 case FormatStyle::RAS_Pointer: in getTokenReferenceAlignment()
4974 case FormatStyle::RAS_Left: in getTokenReferenceAlignment()
4975 return FormatStyle::PAS_Left; in getTokenReferenceAlignment()
4976 case FormatStyle::RAS_Right: in getTokenReferenceAlignment()
4977 return FormatStyle::PAS_Right; in getTokenReferenceAlignment()
4978 case FormatStyle::RAS_Middle: in getTokenReferenceAlignment()
4979 return FormatStyle::PAS_Middle; in getTokenReferenceAlignment()
4985 FormatStyle::PointerAlignmentStyle
4990 case FormatStyle::RAS_Pointer: in getTokenPointerOrReferenceAlignment()
4992 case FormatStyle::RAS_Left: in getTokenPointerOrReferenceAlignment()
4993 return FormatStyle::PAS_Left; in getTokenPointerOrReferenceAlignment()
4994 case FormatStyle::RAS_Right: in getTokenPointerOrReferenceAlignment()
4995 return FormatStyle::PAS_Right; in getTokenPointerOrReferenceAlignment()
4996 case FormatStyle::RAS_Middle: in getTokenPointerOrReferenceAlignment()
4997 return FormatStyle::PAS_Middle; in getTokenPointerOrReferenceAlignment()