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

Lines Matching refs:FormatStyle

66   AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line,
105 if (Style.Language == FormatStyle::LK_Java &&
118 if (Style.Language == FormatStyle::LK_TextProto ||
119 (Style.Language == FormatStyle::LK_Proto && Left->Previous &&
128 Style.Language == FormatStyle::LK_Java) {
134 Style.Language != FormatStyle::LK_Proto &&
135 Style.Language != FormatStyle::LK_TextProto))
149 if (Style.Language == FormatStyle::LK_Proto) {
185 } else if (Style.Language == FormatStyle::LK_JavaScript &&
200 } else if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous &&
206 } else if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous &&
492 } else if (Style.Language == FormatStyle::LK_JavaScript && Parent &&
504 } else if (Style.Language == FormatStyle::LK_Proto ||
505 Style.Language == FormatStyle::LK_TextProto) {
556 if (Style.Language == FormatStyle::LK_JavaScript && Parent &&
669 if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous &&
689 Style.Language == FormatStyle::LK_Proto ||
690 Style.Language == FormatStyle::LK_TextProto) {
697 Style.Language == FormatStyle::LK_JavaScript)
701 Style.Language == FormatStyle::LK_JavaScript)
765 if (Style.Language == FormatStyle::LK_JavaScript) {
781 Style.Language == FormatStyle::LK_Proto ||
782 Style.Language == FormatStyle::LK_TextProto) {
784 if (Style.Language == FormatStyle::LK_TextProto) {
842 if (Style.Language == FormatStyle::LK_JavaScript &&
858 if (Style.Language == FormatStyle::LK_JavaScript) {
899 if (Style.Language == FormatStyle::LK_TextProto) {
915 if (Style.Language == FormatStyle::LK_TextProto ||
916 (Style.Language == FormatStyle::LK_Proto && Tok->Previous &&
939 if (Style.Language != FormatStyle::LK_TextProto)
945 if (Style.Language == FormatStyle::LK_TextProto ||
946 Style.Language == FormatStyle::LK_Proto)
965 if (Style.Language == FormatStyle::LK_JavaScript && Tok->Next &&
978 Style.Language == FormatStyle::LK_JavaScript)
1065 if (Style.Language == FormatStyle::LK_JavaScript && IsFirstToken) {
1133 if ((Style.Language == FormatStyle::LK_Java &&
1153 if (Style.Language == FormatStyle::LK_Proto && Line.Level == 0 &&
1167 if (Style.Language == FormatStyle::LK_JavaScript &&
1174 if (Style.Language == FormatStyle::LK_JavaScript) {
1299 !(Style.Language == FormatStyle::LK_JavaScript &&
1331 Contexts.back().IsExpression = Style.Language == FormatStyle::LK_Java;
1426 if (Style.Language == FormatStyle::LK_JavaScript) {
1461 Style.Language == FormatStyle::LK_Java) {
1486 if (Style.Language == FormatStyle::LK_JavaScript &&
1497 Style.Language != FormatStyle::LK_TextProto)) {
1531 Style.Language != FormatStyle::LK_JavaScript &&
1532 Style.Language != FormatStyle::LK_Java) {
1552 else if (Style.Language == FormatStyle::LK_Java && Current.Previous &&
1577 } else if ((Style.Language == FormatStyle::LK_Java ||
1578 Style.Language == FormatStyle::LK_JavaScript) &&
1608 if (Style.Language == FormatStyle::LK_JavaScript &&
1644 if (!Style.isCpp() && Style.Language != FormatStyle::LK_Java)
1689 if (Style.Language == FormatStyle::LK_Java && Tok.Next->is(tok::l_paren))
1749 if (Style.Language == FormatStyle::LK_JavaScript)
1857 const FormatStyle &Style;
1877 ExpressionParser(const FormatStyle &Style, const AdditionalKeywords &Keywords,
1977 ((Style.Language == FormatStyle::LK_Proto ||
1978 Style.Language == FormatStyle::LK_TextProto) &&
1993 if ((Style.Language == FormatStyle::LK_Java ||
1994 Style.Language == FormatStyle::LK_JavaScript) &&
1997 if (Style.Language == FormatStyle::LK_JavaScript &&
2004 if ((Style.Language == FormatStyle::LK_Java ||
2005 Style.Language == FormatStyle::LK_JavaScript) &&
2067 const FormatStyle &Style;
2098 (Style.IndentPPDirectives != FormatStyle::PPDIS_BeforeHash &&
2250 if ((Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_TopLevel ||
2252 FormatStyle::RTBS_TopLevelDefinitions) &&
2257 case FormatStyle::RTBS_None:
2259 case FormatStyle::RTBS_All:
2260 case FormatStyle::RTBS_TopLevel:
2262 case FormatStyle::RTBS_AllDefinitions:
2263 case FormatStyle::RTBS_TopLevelDefinitions:
2356 if (Style.Language == FormatStyle::LK_ObjC &&
2410 if (Style.Language == FormatStyle::LK_Java) {
2417 } else if (Style.Language == FormatStyle::LK_JavaScript) {
2433 if (Style.Language == FormatStyle::LK_Proto)
2447 (Right.is(tok::period) && Style.Language == FormatStyle::LK_Proto))
2535 Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign)
2547 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_DontAlign)
2594 return Style.SpaceBeforeParens == FormatStyle::SBPO_Always ||
2595 (Style.SpaceBeforeParens == FormatStyle::SBPO_NonEmptyParentheses &&
2611 if (Left.is(Keywords.kw_assert) && Style.Language == FormatStyle::LK_Java)
2660 if (Style.Language == FormatStyle::LK_TextProto ||
2661 (Style.Language == FormatStyle::LK_Proto &&
2688 (Style.PointerAlignment != FormatStyle::PAS_Left ||
2695 (Style.PointerAlignment != FormatStyle::PAS_Right &&
2705 (Style.PointerAlignment != FormatStyle::PAS_Right &&
2744 return (Style.PointerAlignment != FormatStyle::PAS_Left);
2747 [](const FormatToken &LSquareTok, const FormatStyle &Style) {
2749 ((Style.Language == FormatStyle::LK_Proto ||
2750 Style.Language == FormatStyle::LK_TextProto) &&
2787 return Style.Language == FormatStyle::LK_JavaScript ||
2794 (Style.SpaceBeforeParens != FormatStyle::SBPO_Never &&
2848 return Style.PointerAlignment != FormatStyle::PAS_Left;
2863 } else if (Style.Language == FormatStyle::LK_Proto ||
2864 Style.Language == FormatStyle::LK_TextProto) {
2896 } else if (Style.Language == FormatStyle::LK_JavaScript) {
2987 } else if (Style.Language == FormatStyle::LK_Java) {
2991 return Style.SpaceBeforeParens != FormatStyle::SBPO_Never;
3073 if (Style.Language == FormatStyle::LK_TextProto ||
3074 (Style.Language == FormatStyle::LK_Proto && Left.is(TT_DictLiteral)))
3077 (Style.Standard < FormatStyle::LS_Cpp11 || Style.SpacesInAngles);
3086 if (Style.Language == FormatStyle::LK_Java && Right.is(tok::coloncolon) &&
3097 Style.Standard < FormatStyle::LS_Cpp11) ||
3107 Style.PointerAlignment != FormatStyle::PAS_Right;
3111 return Style.PointerAlignment != FormatStyle::PAS_Left;
3144 if (Style.Language == FormatStyle::LK_JavaScript) {
3170 return Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_None ||
3171 Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_Empty ||
3174 FormatStyle::SFS_InlineOnly);
3175 } else if (Style.Language == FormatStyle::LK_Java) {
3179 } else if (Style.Language == FormatStyle::LK_Cpp ||
3180 Style.Language == FormatStyle::LK_ObjC ||
3181 Style.Language == FormatStyle::LK_Proto ||
3182 Style.Language == FormatStyle::LK_TableGen ||
3183 Style.Language == FormatStyle::LK_TextProto) {
3195 (Style.Language == FormatStyle::LK_JavaScript &&
3202 (Style.Language == FormatStyle::LK_JavaScript &&
3225 Style.AlwaysBreakTemplateDeclarations == FormatStyle::BTDS_Yes)
3228 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma &&
3232 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma &&
3236 if (Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma &&
3247 Right.NestingLevel == 1 && Style.Language == FormatStyle::LK_Proto) {
3261 Style.AllowShortBlocksOnASingleLine == FormatStyle::SBS_Never)
3267 Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_Inline)
3270 if (Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_None ||
3271 Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_Inline ||
3273 Style.AllowShortLambdasOnASingleLine == FormatStyle::SLS_Empty))
3285 if ((Style.Language == FormatStyle::LK_Java ||
3286 Style.Language == FormatStyle::LK_JavaScript) &&
3322 if ((Style.Language == FormatStyle::LK_Proto ||
3323 Style.Language == FormatStyle::LK_TextProto) &&
3383 if ((Style.Language == FormatStyle::LK_Cpp ||
3384 Style.Language == FormatStyle::LK_ObjC) &&
3412 if (Style.Language == FormatStyle::LK_Java) {
3419 } else if (Style.Language == FormatStyle::LK_JavaScript) {
3457 return Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None;
3459 return Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None;
3502 (Style.PointerAlignment == FormatStyle::PAS_Right &&
3517 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon);
3525 return Style.BreakInheritanceList == FormatStyle::BILS_AfterColon;
3527 return Style.BreakInheritanceList != FormatStyle::BILS_AfterColon;
3536 if (Style.Language == FormatStyle::LK_Proto ||
3537 Style.Language == FormatStyle::LK_TextProto) {
3635 return Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon;
3637 return Style.BreakConstructorInitializers != FormatStyle::BCIS_AfterColon;
3639 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma)
3642 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma)
3645 Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma)
3648 Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma)
3654 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None &&
3655 (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_All ||
3664 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_All &&
3665 (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None ||