• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/clang/lib/Format/

Lines Matching refs:FormatStyle

30 static bool shouldIndentWrappedSelectorName(const FormatStyle &Style,
121 const FormatStyle &Style) {
124 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma)
126 if (Style.Language == FormatStyle::LK_Proto && Current.is(TT_SelectorName))
131 FormatStyle::BCIS_BeforeComma) &&
133 Style.BreakInheritanceList != FormatStyle::BILS_BeforeComma));
137 const FormatStyle &Style) {
140 return Style.Language == FormatStyle::LK_TextProto ||
141 (Style.Language == FormatStyle::LK_Proto &&
174 getCanonicalRawStringDelimiter(const FormatStyle &Style,
175 FormatStyle::LanguageKind Language) {
184 const FormatStyle &CodeStyle) {
186 llvm::Optional<FormatStyle> LanguageStyle =
189 FormatStyle PredefinedStyle;
207 llvm::Optional<FormatStyle>
215 llvm::Optional<FormatStyle>
224 ContinuationIndenter::ContinuationIndenter(const FormatStyle &Style,
248 if (Style.IndentPPDirectives == FormatStyle::PPDIS_AfterHash &&
264 if (Style.Language == FormatStyle::LK_TextProto) {
313 if (Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_None)
339 if (Style.Language == FormatStyle::LK_ObjC &&
369 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon
376 (Style.AllowShortFunctionsOnASingleLine != FormatStyle::SFS_All ||
377 Style.BreakConstructorInitializers != FormatStyle::BCIS_BeforeColon ||
405 Style.Language == FormatStyle::LK_JavaScript) &&
467 return Style.AlwaysBreakTemplateDeclarations != FormatStyle::BTDS_No;
479 Style.AlwaysBreakAfterReturnType != FormatStyle::RTBS_None)) ||
567 if (Style.IndentPPDirectives == FormatStyle::PPDIS_AfterHash &&
577 if (Style.UseTab != FormatStyle::UT_Never)
587 if (Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma &&
590 if (Style.BreakInheritanceList == FormatStyle::BILS_AfterColon &&
611 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_AlwaysBreak &&
631 if (Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign &&
641 if (Current.is(TT_LambdaArrow) && Style.Language == FormatStyle::LK_Java)
669 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None) ||
696 FormatStyle::BCIS_AfterColon) {
708 if (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None)
773 (Style.Language != FormatStyle::LK_JavaScript ||
894 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon;
932 if (Style.Language == FormatStyle::LK_Java &&
937 if (Style.BreakBeforeBraces == FormatStyle::BS_Whitesmiths &&
947 (Style.Language == FormatStyle::LK_Proto ||
948 Style.Language == FormatStyle::LK_TextProto))) &&
980 ((Style.Language == FormatStyle::LK_Proto ||
981 Style.Language == FormatStyle::LK_TextProto) &&
1061 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon)
1064 Style.BreakInheritanceList == FormatStyle::BILS_AfterColon)
1124 Style.BreakConstructorInitializers != FormatStyle::BCIS_AfterColon) {
1132 (Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma
1145 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon) {
1259 (Style.Language != FormatStyle::LK_Java && *I > 0)) &&
1260 (Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign ||
1275 Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign)
1335 Style.Language == FormatStyle::LK_Proto ||
1336 Style.Language == FormatStyle::LK_TextProto ||
1366 (Style.ObjCBinPackProtocolList == FormatStyle::BPS_Auto &&
1368 Style.ObjCBinPackProtocolList == FormatStyle::BPS_Always;
1375 (Style.Language == FormatStyle::LK_JavaScript && EndsInComma) ||
1404 if (Style.Language == FormatStyle::LK_JavaScript && EndsInComma)
1503 const FormatStyle &RawStringStyle, bool DryRun, bool Newline) {
1740 llvm::Optional<FormatStyle>
1766 if (Style.Language == FormatStyle::LK_Java ||
1767 Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp() ||