Lines Matching refs:FormatStyle
31 static bool shouldIndentWrappedSelectorName(const FormatStyle &Style, in shouldIndentWrappedSelectorName()
122 const FormatStyle &Style) { in startsNextParameter()
125 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) in startsNextParameter()
127 if (Style.Language == FormatStyle::LK_Proto && Current.is(TT_SelectorName)) in startsNextParameter()
132 FormatStyle::BCIS_BeforeComma) && in startsNextParameter()
134 Style.BreakInheritanceList != FormatStyle::BILS_BeforeComma)); in startsNextParameter()
138 const FormatStyle &Style) { in opensProtoMessageField()
141 return Style.Language == FormatStyle::LK_TextProto || in opensProtoMessageField()
142 (Style.Language == FormatStyle::LK_Proto && in opensProtoMessageField()
175 getCanonicalRawStringDelimiter(const FormatStyle &Style, in getCanonicalRawStringDelimiter()
176 FormatStyle::LanguageKind Language) { in getCanonicalRawStringDelimiter()
185 const FormatStyle &CodeStyle) { in RawStringFormatStyleManager()
187 llvm::Optional<FormatStyle> LanguageStyle = in RawStringFormatStyleManager()
190 FormatStyle PredefinedStyle; in RawStringFormatStyleManager()
208 llvm::Optional<FormatStyle>
216 llvm::Optional<FormatStyle>
225 ContinuationIndenter::ContinuationIndenter(const FormatStyle &Style, in ContinuationIndenter()
249 if (Style.IndentPPDirectives == FormatStyle::PPDIS_AfterHash && in getInitialState()
265 if (Style.Language == FormatStyle::LK_TextProto) { in getInitialState()
314 if (Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_None) in canBreak()
340 if (Style.Language == FormatStyle::LK_ObjC && in mustBreak()
370 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon in mustBreak()
377 (Style.AllowShortFunctionsOnASingleLine != FormatStyle::SFS_All || in mustBreak()
378 Style.BreakConstructorInitializers != FormatStyle::BCIS_BeforeColon || in mustBreak()
406 Style.Language == FormatStyle::LK_JavaScript) && in mustBreak()
468 return Style.AlwaysBreakTemplateDeclarations != FormatStyle::BTDS_No; in mustBreak()
565 if (Style.IndentPPDirectives == FormatStyle::PPDIS_AfterHash && in addTokenOnCurrentLine()
575 if (Style.UseTab != FormatStyle::UT_Never) in addTokenOnCurrentLine()
585 if (Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma && in addTokenOnCurrentLine()
588 if (Style.BreakInheritanceList == FormatStyle::BILS_AfterColon && in addTokenOnCurrentLine()
609 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_AlwaysBreak && in addTokenOnCurrentLine()
627 if (Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign && in addTokenOnCurrentLine()
637 if (Current.is(TT_LambdaArrow) && Style.Language == FormatStyle::LK_Java) in addTokenOnCurrentLine()
665 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None) || in addTokenOnCurrentLine()
693 FormatStyle::BCIS_AfterColon) { in addTokenOnCurrentLine()
705 if (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None) in addTokenOnCurrentLine()
770 (Style.Language != FormatStyle::LK_JavaScript || in addTokenOnNewLine()
913 if (Style.Language == FormatStyle::LK_Java && in getNewLineColumn()
923 (Style.Language == FormatStyle::LK_Proto || in getNewLineColumn()
924 Style.Language == FormatStyle::LK_TextProto))) && in getNewLineColumn()
950 ((Style.Language == FormatStyle::LK_Proto || in getNewLineColumn()
951 Style.Language == FormatStyle::LK_TextProto) && in getNewLineColumn()
1031 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon) in getNewLineColumn()
1034 Style.BreakInheritanceList == FormatStyle::BILS_AfterColon) in getNewLineColumn()
1094 Style.BreakConstructorInitializers != FormatStyle::BCIS_AfterColon) { in moveStateToNextToken()
1102 (Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma in moveStateToNextToken()
1111 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon) { in moveStateToNextToken()
1223 (Style.Language != FormatStyle::LK_Java && *I > 0)) && in moveStatePastFakeLParens()
1224 (Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign || in moveStatePastFakeLParens()
1239 Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign) in moveStatePastFakeLParens()
1299 Style.Language == FormatStyle::LK_Proto || in moveStatePastScopeOpener()
1300 Style.Language == FormatStyle::LK_TextProto || in moveStatePastScopeOpener()
1330 (Style.ObjCBinPackProtocolList == FormatStyle::BPS_Auto && in moveStatePastScopeOpener()
1332 Style.ObjCBinPackProtocolList == FormatStyle::BPS_Always; in moveStatePastScopeOpener()
1339 (Style.Language == FormatStyle::LK_JavaScript && EndsInComma) || in moveStatePastScopeOpener()
1368 if (Style.Language == FormatStyle::LK_JavaScript && EndsInComma) in moveStatePastScopeOpener()
1467 const FormatStyle &RawStringStyle, bool DryRun) { in reformatRawStringLiteral()
1694 llvm::Optional<FormatStyle>
1718 if (Style.Language == FormatStyle::LK_Java || in createBreakableToken()
1719 Style.Language == FormatStyle::LK_JavaScript || in createBreakableToken()