Lines Matching refs:FormatStyle

28                                      const FormatStyle &Style) {
30 case FormatStyle::ABS_Always:
32 case FormatStyle::ABS_Leave:
125 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line,
187 if (Style.Language == FormatStyle::LK_Java &&
214 if (Style.Language == FormatStyle::LK_TextProto ||
215 (Style.Language == FormatStyle::LK_Proto && Left->Previous &&
228 Style.Language == FormatStyle::LK_Java) {
250 if (Style.Language == FormatStyle::LK_Proto) {
893 if (Style.AlignArrayOfStructures != FormatStyle::AIAS_None) {
1055 if (Style.Language == FormatStyle::LK_TextProto) {
1242 if (Style.Language == FormatStyle::LK_TextProto) {
1259 if (Style.Language == FormatStyle::LK_TextProto ||
1260 (Style.Language == FormatStyle::LK_Proto && Tok->Previous &&
1286 if (Style.Language != FormatStyle::LK_TextProto)
1603 if ((Style.Language == FormatStyle::LK_Java &&
1623 if (Style.Language == FormatStyle::LK_Proto && Line.Level == 0 &&
1796 if (P.Style.AlignArrayOfStructures != FormatStyle::AIAS_None) {
1894 Contexts.back().IsExpression = Style.Language == FormatStyle::LK_Java;
2026 Style.Language == FormatStyle::LK_Java) {
2070 Style.Language != FormatStyle::LK_TextProto)) {
2129 Style.Language != FormatStyle::LK_Java) {
2149 } else if (Style.Language == FormatStyle::LK_Java && Current.Previous &&
2176 } else if ((Style.Language == FormatStyle::LK_Java ||
2278 if (Style.Language == FormatStyle::LK_Java &&
2312 Style.Language != FormatStyle::LK_Java) {
2397 if (Style.Language == FormatStyle::LK_Java && Tok.Next->is(tok::l_paren))
2708 const FormatStyle &Style;
2730 ExpressionParser(const FormatStyle &Style, const AdditionalKeywords &Keywords,
2791 Style.Language == FormatStyle::LK_Java) &&
2895 if ((Style.Language == FormatStyle::LK_Java || Style.isJavaScript()) &&
2909 if ((Style.Language == FormatStyle::LK_Java || Style.isJavaScript()) &&
3118 const FormatStyle &Style;
3146 Line->Level = Style.IndentPPDirectives != FormatStyle::PPDIS_BeforeHash &&
3428 if ((Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_TopLevel ||
3430 FormatStyle::RTBS_TopLevelDefinitions) &&
3436 case FormatStyle::RTBS_None:
3438 case FormatStyle::RTBS_All:
3439 case FormatStyle::RTBS_TopLevel:
3441 case FormatStyle::RTBS_AllDefinitions:
3442 case FormatStyle::RTBS_TopLevelDefinitions:
3460 (Style.AlignArrayOfStructures != FormatStyle::AIAS_None &&
3636 if (Style.Language == FormatStyle::LK_ObjC &&
3731 if (Style.Language == FormatStyle::LK_Java) {
3750 } else if (Style.Language == FormatStyle::LK_Proto) {
3864 Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign) {
3882 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_DontAlign &&
3937 if (Style.SpaceBeforeParens == FormatStyle::SBPO_Always)
3961 if (Left.is(Keywords.kw_assert) && Style.Language == FormatStyle::LK_Java)
4041 if (Style.Language == FormatStyle::LK_TextProto ||
4042 (Style.Language == FormatStyle::LK_Proto &&
4071 if ((Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_After ||
4072 Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Both) &&
4083 FormatStyle::PAS_Left;
4087 FormatStyle::PAS_Left ||
4094 (getTokenPointerOrReferenceAlignment(Left) != FormatStyle::PAS_Right &&
4101 if ((Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Before ||
4102 Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Both) &&
4126 FormatStyle::PAS_Right;
4132 if (getTokenPointerOrReferenceAlignment(Left) == FormatStyle::PAS_Right)
4152 return Style.PointerAlignment != FormatStyle::PAS_Right;
4190 return Style.PointerAlignment != FormatStyle::PAS_Left;
4192 return (Style.PointerAlignment != FormatStyle::PAS_Left) ||
4194 FormatStyle::SAPQ_After) ||
4195 (Style.SpaceAroundPointerQualifiers == FormatStyle::SAPQ_Both);
4202 [](const FormatToken &LSquareTok, const FormatStyle &Style) {
4275 if (Style.SpaceBeforeParens == FormatStyle::SBPO_Custom &&
4320 Style.SpaceBeforeParens != FormatStyle::SBPO_Never) ||
4327 return (Style.SpaceBeforeParens != FormatStyle::SBPO_Never) ||
4394 return getTokenReferenceAlignment(Right) != FormatStyle::PAS_Left;
4672 } else if (Style.Language == FormatStyle::LK_Java) {
4814 return Style.BitFieldColonSpacing == FormatStyle::BFCS_Both ||
4815 Style.BitFieldColonSpacing == FormatStyle::BFCS_After;
4840 return Style.BitFieldColonSpacing == FormatStyle::BFCS_Both ||
4841 Style.BitFieldColonSpacing == FormatStyle::BFCS_Before;
4878 if (this->Style.SpacesInAngles == FormatStyle::SIAS_Always)
4880 if (this->Style.SpacesInAngles == FormatStyle::SIAS_Leave)
4886 if (Style.Language == FormatStyle::LK_TextProto ||
4887 (Style.Language == FormatStyle::LK_Proto && Left.is(TT_DictLiteral))) {
4891 ((Style.Standard < FormatStyle::LS_Cpp11) ||
4903 if (Style.Language == FormatStyle::LK_Java && Right.is(tok::coloncolon) &&
4917 ((Style.Standard < FormatStyle::LS_Cpp11) ||
4929 getTokenReferenceAlignment(Left) != FormatStyle::PAS_Right;
4934 return getTokenReferenceAlignment(Right) != FormatStyle::PAS_Left;
4971 FormatStyle::ShortLambdaStyle ShortLambdaOption) {
4972 return Tok.Children.empty() && ShortLambdaOption != FormatStyle::SLS_None;
5045 case FormatStyle::SLS_All:
5047 case FormatStyle::SLS_None:
5049 case FormatStyle::SLS_Empty:
5051 case FormatStyle::SLS_Inline:
5057 llvm_unreachable("Unknown FormatStyle::ShortLambdaStyle enum");
5063 return Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_None ||
5064 Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_Empty ||
5067 FormatStyle::SFS_InlineOnly);
5069 } else if (Style.Language == FormatStyle::LK_Java) {
5096 Style.Language == FormatStyle::LK_TableGen)) {
5127 Style.BreakBeforeInlineASMColon == FormatStyle::BBIAS_Always) {
5168 case FormatStyle::RCPS_OwnLine:
5169 case FormatStyle::RCPS_WithFollowing:
5182 return Style.BreakBeforeConceptDeclarations == FormatStyle::BBCDS_Always;
5183 return Style.AlwaysBreakTemplateDeclarations == FormatStyle::BTDS_Yes;
5187 case FormatStyle::RCPS_OwnLine:
5188 case FormatStyle::RCPS_WithPreceding:
5194 if (Style.PackConstructorInitializers == FormatStyle::PCIS_Never) {
5195 if (Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeColon &&
5201 if (Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon &&
5206 if (Style.PackConstructorInitializers < FormatStyle::PCIS_CurrentLine &&
5207 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma &&
5211 if (Style.PackConstructorInitializers == FormatStyle::PCIS_NextLineOnly) {
5212 if ((Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeColon ||
5213 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) &&
5218 if (Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon &&
5224 if (Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma &&
5228 if (Style.BreakInheritanceList == FormatStyle::BILS_AfterComma &&
5240 Right.NestingLevel == 1 && Style.Language == FormatStyle::LK_Proto) {
5285 Style.AllowShortBlocksOnASingleLine == FormatStyle::SBS_Never) {
5297 Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_Inline) {
5301 if (Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_None ||
5302 Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_Inline ||
5304 Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_Empty)) {
5315 if ((Style.Language == FormatStyle::LK_Java || Style.isJavaScript()) &&
5427 } else if (Style.Language == FormatStyle::LK_Java) {
5481 return Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None;
5483 return Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None;
5528 FormatStyle::PAS_Right &&
5545 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon);
5554 return Style.BreakInheritanceList == FormatStyle::BILS_AfterColon;
5556 return Style.BreakInheritanceList != FormatStyle::BILS_AfterColon;
5613 return Style.BreakBeforeConceptDeclarations != FormatStyle::BBCDS_Never;
5635 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None &&
5636 (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_All ||
5679 if (Style.AlignAfterOpenBracket != FormatStyle::BAS_BlockIndent ||
5712 return Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon &&
5716 return Style.BreakConstructorInitializers != FormatStyle::BCIS_AfterColon;
5718 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) {
5722 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) {
5726 Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma) {
5730 Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma) {
5739 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_All &&
5740 (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None ||
5759 case FormatStyle::BBNSS_Never:
5761 case FormatStyle::BBNSS_Always:
5763 case FormatStyle::BBNSS_OnlyWithParen:
5805 FormatStyle::PointerAlignmentStyle
5809 case FormatStyle::RAS_Pointer:
5811 case FormatStyle::RAS_Left:
5812 return FormatStyle::PAS_Left;
5813 case FormatStyle::RAS_Right:
5814 return FormatStyle::PAS_Right;
5815 case FormatStyle::RAS_Middle:
5816 return FormatStyle::PAS_Middle;
5822 FormatStyle::PointerAlignmentStyle
5827 case FormatStyle::RAS_Pointer:
5829 case FormatStyle::RAS_Left:
5830 return FormatStyle::PAS_Left;
5831 case FormatStyle::RAS_Right:
5832 return FormatStyle::PAS_Right;
5833 case FormatStyle::RAS_Middle:
5834 return FormatStyle::PAS_Middle;