Lines Matching refs:FormatStyle

28                                      const FormatStyle &Style) {  in mustBreakAfterAttributes()
30 case FormatStyle::ABS_Always: in mustBreakAfterAttributes()
32 case FormatStyle::ABS_Leave: in mustBreakAfterAttributes()
125 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, in AnnotatingParser()
187 if (Style.Language == FormatStyle::LK_Java && in parseAngle()
223 if (Style.Language == FormatStyle::LK_TextProto || in parseAngle()
224 (Style.Language == FormatStyle::LK_Proto && BeforeLess && in parseAngle()
237 Style.Language == FormatStyle::LK_Java) { in parseAngle()
259 if (Style.Language == FormatStyle::LK_Proto) { in parseAngle()
1030 if (Style.TableGenBreakInsideDAGArg != FormatStyle::DAS_DontBreak) { in parseTableGenDAGArgAndList()
1043 if (Style.TableGenBreakInsideDAGArg == FormatStyle::DAS_BreakAll) in parseTableGenDAGArgAndList()
1203 if (Style.AlignArrayOfStructures != FormatStyle::AIAS_None) { in parseBrace()
1378 if (Style.Language == FormatStyle::LK_TextProto) { in consumeToken()
1576 if (Style.Language == FormatStyle::LK_TextProto) { in consumeToken()
1593 if (Style.Language == FormatStyle::LK_TextProto || in consumeToken()
1594 (Style.Language == FormatStyle::LK_Proto && Tok->Previous && in consumeToken()
1622 if (Style.Language != FormatStyle::LK_TextProto && Tok->is(TT_Unknown)) in consumeToken()
1960 if ((Style.Language == FormatStyle::LK_Java && in parseLine()
1980 if (Style.Language == FormatStyle::LK_Proto && Line.Level == 0 && in parseLine()
2158 if (P.Style.AlignArrayOfStructures != FormatStyle::AIAS_None) { in ~ScopedContextCreator()
2256 Contexts.back().IsExpression = Style.Language == FormatStyle::LK_Java; in modifyContext()
2374 if ((Style.isJavaScript() || Style.Language == FormatStyle::LK_Java) && in determineTokenType()
2389 Style.Language == FormatStyle::LK_Java) { in determineTokenType()
2436 Style.Language != FormatStyle::LK_TextProto)) { in determineTokenType()
2495 Style.Language != FormatStyle::LK_Java) { in determineTokenType()
2515 } else if (Style.Language == FormatStyle::LK_Java && Current.Previous && in determineTokenType()
2542 } else if ((Style.Language == FormatStyle::LK_Java || in determineTokenType()
2649 if (Style.Language == FormatStyle::LK_Java && in isStartOfName()
2687 if (!IsCpp && !Style.isCSharp() && Style.Language != FormatStyle::LK_Java) in rParenEndsCast()
2777 if (Style.Language == FormatStyle::LK_Java && AfterRParen->is(tok::l_paren)) in rParenEndsCast()
3107 const FormatStyle &Style;
3133 ExpressionParser(const FormatStyle &Style, const AdditionalKeywords &Keywords, in ExpressionParser()
3194 Style.Language == FormatStyle::LK_Java) && in parse()
3298 if ((Style.Language == FormatStyle::LK_Java || Style.isJavaScript()) && in getCurrentPrecedence()
3312 if ((Style.Language == FormatStyle::LK_Java || Style.isJavaScript()) && in getCurrentPrecedence()
3522 const FormatStyle &Style;
3550 Line->Level = Style.IndentPPDirectives != FormatStyle::PPDIS_BeforeHash && in setCommentLineLevels()
3842 if ((Style.BreakAfterReturnType == FormatStyle::RTBS_TopLevel || in mustBreakForReturnType()
3843 Style.BreakAfterReturnType == FormatStyle::RTBS_TopLevelDefinitions) && in mustBreakForReturnType()
3849 case FormatStyle::RTBS_None: in mustBreakForReturnType()
3850 case FormatStyle::RTBS_Automatic: in mustBreakForReturnType()
3851 case FormatStyle::RTBS_ExceptShortType: in mustBreakForReturnType()
3853 case FormatStyle::RTBS_All: in mustBreakForReturnType()
3854 case FormatStyle::RTBS_TopLevel: in mustBreakForReturnType()
3856 case FormatStyle::RTBS_AllDefinitions: in mustBreakForReturnType()
3857 case FormatStyle::RTBS_TopLevelDefinitions: in mustBreakForReturnType()
3875 (Style.AlignArrayOfStructures != FormatStyle::AIAS_None && in calculateFormattingInformation()
4056 if (Style.Language == FormatStyle::LK_ObjC && in calculateFormattingInformation()
4151 if (Style.Language == FormatStyle::LK_Java) { in splitPenalty()
4170 } else if (Style.Language == FormatStyle::LK_Proto) { in splitPenalty()
4284 Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign) { in splitPenalty()
4302 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_DontAlign && in splitPenalty()
4357 if (Style.SpaceBeforeParens == FormatStyle::SBPO_Always) in spaceRequiredBeforeParens()
4381 if (Left.is(Keywords.kw_assert) && Style.Language == FormatStyle::LK_Java) in spaceRequiredBetween()
4400 if (Style.SpacesInParens == FormatStyle::SIPO_Custom && in spaceRequiredBetween()
4476 if (Style.Language == FormatStyle::LK_TextProto || in spaceRequiredBetween()
4477 (Style.Language == FormatStyle::LK_Proto && in spaceRequiredBetween()
4506 if ((Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_After || in spaceRequiredBetween()
4507 Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Both) && in spaceRequiredBetween()
4518 FormatStyle::PAS_Left; in spaceRequiredBetween()
4522 FormatStyle::PAS_Left || in spaceRequiredBetween()
4529 (getTokenPointerOrReferenceAlignment(Left) != FormatStyle::PAS_Right && in spaceRequiredBetween()
4536 if ((Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Before || in spaceRequiredBetween()
4537 Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Both) && in spaceRequiredBetween()
4561 FormatStyle::PAS_Right; in spaceRequiredBetween()
4567 if (getTokenPointerOrReferenceAlignment(Left) == FormatStyle::PAS_Right) in spaceRequiredBetween()
4586 assert(Style.PointerAlignment != FormatStyle::PAS_Right); in spaceRequiredBetween()
4598 return Style.PointerAlignment != FormatStyle::PAS_Right; in spaceRequiredBetween()
4636 return Style.PointerAlignment != FormatStyle::PAS_Left; in spaceRequiredBetween()
4638 return (Style.PointerAlignment != FormatStyle::PAS_Left) || in spaceRequiredBetween()
4640 FormatStyle::SAPQ_After) || in spaceRequiredBetween()
4641 (Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Both); in spaceRequiredBetween()
4648 [](const FormatToken &LSquareTok, const FormatStyle &Style) { in spaceRequiredBetween()
4721 if (Style.SpaceBeforeParens == FormatStyle::SBPO_Custom && in spaceRequiredBetween()
4765 Style.SpaceBeforeParens != FormatStyle::SBPO_Never) || in spaceRequiredBetween()
4772 return (Style.SpaceBeforeParens != FormatStyle::SBPO_Never) || in spaceRequiredBetween()
4838 return getTokenReferenceAlignment(Right) != FormatStyle::PAS_Left; in spaceRequiredBetween()
5127 } else if (Style.Language == FormatStyle::LK_Java) { in spaceRequiredBefore()
5307 return Style.BitFieldColonSpacing == FormatStyle::BFCS_Both || in spaceRequiredBefore()
5308 Style.BitFieldColonSpacing == FormatStyle::BFCS_After; in spaceRequiredBefore()
5333 return Style.BitFieldColonSpacing == FormatStyle::BFCS_Both || in spaceRequiredBefore()
5334 Style.BitFieldColonSpacing == FormatStyle::BFCS_Before; in spaceRequiredBefore()
5361 if (this->Style.SpacesInAngles == FormatStyle::SIAS_Always) in spaceRequiredBefore()
5363 if (this->Style.SpacesInAngles == FormatStyle::SIAS_Leave) in spaceRequiredBefore()
5369 if (Style.Language == FormatStyle::LK_TextProto || in spaceRequiredBefore()
5370 (Style.Language == FormatStyle::LK_Proto && Left.is(TT_DictLiteral))) { in spaceRequiredBefore()
5374 ((Style.Standard < FormatStyle::LS_Cpp11) || in spaceRequiredBefore()
5386 if (Style.Language == FormatStyle::LK_Java && Right.is(tok::coloncolon) && in spaceRequiredBefore()
5400 ((Style.Standard < FormatStyle::LS_Cpp11) || in spaceRequiredBefore()
5412 getTokenReferenceAlignment(Left) != FormatStyle::PAS_Right; in spaceRequiredBefore()
5417 return getTokenReferenceAlignment(Right) != FormatStyle::PAS_Left; in spaceRequiredBefore()
5454 FormatStyle::ShortLambdaStyle ShortLambdaOption) { in isItAnEmptyLambdaAllowed()
5455 return Tok.Children.empty() && ShortLambdaOption != FormatStyle::SLS_None; in isItAnEmptyLambdaAllowed()
5536 case FormatStyle::SLS_All: in mustBreakBefore()
5538 case FormatStyle::SLS_None: in mustBreakBefore()
5540 case FormatStyle::SLS_Empty: in mustBreakBefore()
5542 case FormatStyle::SLS_Inline: in mustBreakBefore()
5554 return Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_None || in mustBreakBefore()
5555 Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_Empty || in mustBreakBefore()
5558 FormatStyle::SFS_InlineOnly); in mustBreakBefore()
5560 } else if (Style.Language == FormatStyle::LK_Java) { in mustBreakBefore()
5587 Style.Language == FormatStyle::LK_TableGen)) { in mustBreakBefore()
5631 return Style.TableGenBreakInsideDAGArg == FormatStyle::DAS_BreakAll; in mustBreakBefore()
5636 Style.BreakBeforeInlineASMColon == FormatStyle::BBIAS_Always) { in mustBreakBefore()
5680 case FormatStyle::RCPS_OwnLine: in mustBreakBefore()
5681 case FormatStyle::RCPS_WithFollowing: in mustBreakBefore()
5694 return Style.BreakBeforeConceptDeclarations == FormatStyle::BBCDS_Always; in mustBreakBefore()
5695 return Style.BreakTemplateDeclarations == FormatStyle::BTDS_Yes || in mustBreakBefore()
5696 (Style.BreakTemplateDeclarations == FormatStyle::BTDS_Leave && in mustBreakBefore()
5701 case FormatStyle::RCPS_OwnLine: in mustBreakBefore()
5702 case FormatStyle::RCPS_WithPreceding: in mustBreakBefore()
5708 if (Style.PackConstructorInitializers == FormatStyle::PCIS_Never) { in mustBreakBefore()
5709 if (Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeColon && in mustBreakBefore()
5715 if (Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon && in mustBreakBefore()
5720 if (Style.PackConstructorInitializers < FormatStyle::PCIS_CurrentLine && in mustBreakBefore()
5721 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma && in mustBreakBefore()
5725 if (Style.PackConstructorInitializers == FormatStyle::PCIS_NextLineOnly) { in mustBreakBefore()
5726 if ((Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeColon || in mustBreakBefore()
5727 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) && in mustBreakBefore()
5732 if (Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon && in mustBreakBefore()
5738 if (Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma && in mustBreakBefore()
5742 if (Style.BreakInheritanceList == FormatStyle::BILS_AfterComma && in mustBreakBefore()
5754 Right.NestingLevel == 1 && Style.Language == FormatStyle::LK_Proto) { in mustBreakBefore()
5798 Style.AllowShortBlocksOnASingleLine == FormatStyle::SBS_Never) { in mustBreakBefore()
5810 Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_Inline) { in mustBreakBefore()
5814 if (Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_None || in mustBreakBefore()
5815 Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_Inline || in mustBreakBefore()
5817 Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_Empty)) { in mustBreakBefore()
5828 if ((Style.Language == FormatStyle::LK_Java || Style.isJavaScript()) && in mustBreakBefore()
5940 } else if (Style.Language == FormatStyle::LK_Java) { in canBreakBefore()
5994 return Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None; in canBreakBefore()
5996 return Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None; in canBreakBefore()
6058 FormatStyle::PAS_Right && in canBreakBefore()
6075 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon); in canBreakBefore()
6084 return Style.BreakInheritanceList == FormatStyle::BILS_AfterColon; in canBreakBefore()
6086 return Style.BreakInheritanceList != FormatStyle::BILS_AfterColon; in canBreakBefore()
6143 return Style.BreakBeforeConceptDeclarations != FormatStyle::BBCDS_Never; in canBreakBefore()
6147 return Style.BreakTemplateDeclarations != FormatStyle::BTDS_Leave || in canBreakBefore()
6169 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None && in canBreakBefore()
6170 (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_All || in canBreakBefore()
6213 if (Style.AlignAfterOpenBracket != FormatStyle::BAS_BlockIndent || in canBreakBefore()
6246 return Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon && in canBreakBefore()
6250 return Style.BreakConstructorInitializers != FormatStyle::BCIS_AfterColon; in canBreakBefore()
6252 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) { in canBreakBefore()
6256 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) { in canBreakBefore()
6260 Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma) { in canBreakBefore()
6264 Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma) { in canBreakBefore()
6273 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_All && in canBreakBefore()
6274 (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None || in canBreakBefore()
6293 case FormatStyle::BBNSS_Never: in canBreakBefore()
6295 case FormatStyle::BBNSS_Always: in canBreakBefore()
6297 case FormatStyle::BBNSS_OnlyWithParen: in canBreakBefore()
6339 FormatStyle::PointerAlignmentStyle
6343 case FormatStyle::RAS_Pointer: in getTokenReferenceAlignment()
6345 case FormatStyle::RAS_Left: in getTokenReferenceAlignment()
6346 return FormatStyle::PAS_Left; in getTokenReferenceAlignment()
6347 case FormatStyle::RAS_Right: in getTokenReferenceAlignment()
6348 return FormatStyle::PAS_Right; in getTokenReferenceAlignment()
6349 case FormatStyle::RAS_Middle: in getTokenReferenceAlignment()
6350 return FormatStyle::PAS_Middle; in getTokenReferenceAlignment()
6356 FormatStyle::PointerAlignmentStyle
6361 case FormatStyle::RAS_Pointer: in getTokenPointerOrReferenceAlignment()
6363 case FormatStyle::RAS_Left: in getTokenPointerOrReferenceAlignment()
6364 return FormatStyle::PAS_Left; in getTokenPointerOrReferenceAlignment()
6365 case FormatStyle::RAS_Right: in getTokenPointerOrReferenceAlignment()
6366 return FormatStyle::PAS_Right; in getTokenPointerOrReferenceAlignment()
6367 case FormatStyle::RAS_Middle: in getTokenPointerOrReferenceAlignment()
6368 return FormatStyle::PAS_Middle; in getTokenPointerOrReferenceAlignment()