Lines Matching refs:FormatStyle

50   AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line,  in AnnotatingParser()
89 if (Style.Language == FormatStyle::LK_Java && in parseAngle()
102 if (Style.Language == FormatStyle::LK_TextProto || in parseAngle()
103 (Style.Language == FormatStyle::LK_Proto && Left->Previous && in parseAngle()
112 Style.Language == FormatStyle::LK_Java) { in parseAngle()
118 Style.Language != FormatStyle::LK_Proto && in parseAngle()
119 Style.Language != FormatStyle::LK_TextProto)) in parseAngle()
133 if (Style.Language == FormatStyle::LK_Proto) { in parseAngle()
169 } else if (Style.Language == FormatStyle::LK_JavaScript && in parseParens()
184 } else if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous && in parseParens()
190 } else if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous && in parseParens()
425 } else if (Style.Language == FormatStyle::LK_JavaScript && Parent && in parseSquare()
435 } else if (Style.Language == FormatStyle::LK_Proto || in parseSquare()
436 Style.Language == FormatStyle::LK_TextProto) { in parseSquare()
487 if (Style.Language == FormatStyle::LK_JavaScript && Parent && in parseSquare()
588 if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous && in parseBrace()
608 Style.Language == FormatStyle::LK_Proto || in parseBrace()
609 Style.Language == FormatStyle::LK_TextProto) { in parseBrace()
616 Style.Language == FormatStyle::LK_JavaScript) in parseBrace()
620 Style.Language == FormatStyle::LK_JavaScript) in parseBrace()
684 if (Style.Language == FormatStyle::LK_JavaScript) { in consumeToken()
700 Style.Language == FormatStyle::LK_Proto || in consumeToken()
701 Style.Language == FormatStyle::LK_TextProto) { in consumeToken()
703 if (Style.Language == FormatStyle::LK_TextProto) { in consumeToken()
761 if (Style.Language == FormatStyle::LK_JavaScript && in consumeToken()
777 if (Style.Language == FormatStyle::LK_JavaScript) { in consumeToken()
818 if (Style.Language == FormatStyle::LK_TextProto) { in consumeToken()
834 if (Style.Language == FormatStyle::LK_TextProto || in consumeToken()
835 (Style.Language == FormatStyle::LK_Proto && Tok->Previous && in consumeToken()
858 if (Style.Language != FormatStyle::LK_TextProto) in consumeToken()
862 if (Style.Language == FormatStyle::LK_TextProto || in consumeToken()
863 Style.Language == FormatStyle::LK_Proto) in consumeToken()
882 if (Style.Language == FormatStyle::LK_JavaScript && Tok->Next && in consumeToken()
895 Style.Language == FormatStyle::LK_JavaScript) in consumeToken()
982 if (Style.Language == FormatStyle::LK_JavaScript && IsFirstToken) { in parsePreprocessorDirective()
1047 if ((Style.Language == FormatStyle::LK_Java && in parseLine()
1067 if (Style.Language == FormatStyle::LK_Proto && Line.Level == 0 && in parseLine()
1078 if (Style.Language == FormatStyle::LK_JavaScript && in parseLine()
1085 if (Style.Language == FormatStyle::LK_JavaScript) { in parseLine()
1208 !(Style.Language == FormatStyle::LK_JavaScript && in modifyContext()
1240 Contexts.back().IsExpression = Style.Language == FormatStyle::LK_Java; in modifyContext()
1267 if (Style.Language == FormatStyle::LK_JavaScript) { in determineTokenType()
1302 Style.Language == FormatStyle::LK_Java) { in determineTokenType()
1321 if (Style.Language == FormatStyle::LK_JavaScript && in determineTokenType()
1332 Style.Language != FormatStyle::LK_TextProto)) { in determineTokenType()
1365 Style.Language != FormatStyle::LK_JavaScript && in determineTokenType()
1366 Style.Language != FormatStyle::LK_Java) { in determineTokenType()
1386 else if (Style.Language == FormatStyle::LK_Java && Current.Previous && in determineTokenType()
1409 } else if ((Style.Language == FormatStyle::LK_Java || in determineTokenType()
1410 Style.Language == FormatStyle::LK_JavaScript) && in determineTokenType()
1440 if (Style.Language == FormatStyle::LK_JavaScript && in isStartOfName()
1476 if (!Style.isCpp() && Style.Language != FormatStyle::LK_Java) in rParenEndsCast()
1513 if (Style.Language == FormatStyle::LK_Java && Tok.Next->is(tok::l_paren)) in rParenEndsCast()
1573 if (Style.Language == FormatStyle::LK_JavaScript) in determineStarAmpUsage()
1678 const FormatStyle &Style;
1698 ExpressionParser(const FormatStyle &Style, const AdditionalKeywords &Keywords, in ExpressionParser()
1798 ((Style.Language == FormatStyle::LK_Proto || in getCurrentPrecedence()
1799 Style.Language == FormatStyle::LK_TextProto) && in getCurrentPrecedence()
1814 if ((Style.Language == FormatStyle::LK_Java || in getCurrentPrecedence()
1815 Style.Language == FormatStyle::LK_JavaScript) && in getCurrentPrecedence()
1818 if (Style.Language == FormatStyle::LK_JavaScript && in getCurrentPrecedence()
1825 if ((Style.Language == FormatStyle::LK_Java || in getCurrentPrecedence()
1826 Style.Language == FormatStyle::LK_JavaScript) && in getCurrentPrecedence()
1888 const FormatStyle &Style;
2053 if ((Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_TopLevel || in mustBreakForReturnType()
2055 FormatStyle::RTBS_TopLevelDefinitions) && in mustBreakForReturnType()
2060 case FormatStyle::RTBS_None: in mustBreakForReturnType()
2062 case FormatStyle::RTBS_All: in mustBreakForReturnType()
2063 case FormatStyle::RTBS_TopLevel: in mustBreakForReturnType()
2065 case FormatStyle::RTBS_AllDefinitions: in mustBreakForReturnType()
2066 case FormatStyle::RTBS_TopLevelDefinitions: in mustBreakForReturnType()
2158 if (Style.Language == FormatStyle::LK_ObjC && in calculateFormattingInformation()
2212 if (Style.Language == FormatStyle::LK_Java) { in splitPenalty()
2219 } else if (Style.Language == FormatStyle::LK_JavaScript) { in splitPenalty()
2235 if (Style.Language == FormatStyle::LK_Proto) in splitPenalty()
2267 (Right.is(tok::period) && Style.Language == FormatStyle::LK_Proto)) in splitPenalty()
2337 Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign) in splitPenalty()
2350 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_DontAlign) in splitPenalty()
2399 if (Left.is(Keywords.kw_assert) && Style.Language == FormatStyle::LK_Java) in spaceRequiredBetween()
2437 if (Style.Language == FormatStyle::LK_TextProto || in spaceRequiredBetween()
2438 (Style.Language == FormatStyle::LK_Proto && in spaceRequiredBetween()
2464 (Style.PointerAlignment != FormatStyle::PAS_Left || in spaceRequiredBetween()
2471 (Style.PointerAlignment != FormatStyle::PAS_Right && in spaceRequiredBetween()
2481 (Style.PointerAlignment != FormatStyle::PAS_Right && in spaceRequiredBetween()
2488 [](const FormatToken &LSquareTok, const FormatStyle &Style) { in spaceRequiredBetween()
2490 ((Style.Language == FormatStyle::LK_Proto || in spaceRequiredBetween()
2491 Style.Language == FormatStyle::LK_TextProto) && in spaceRequiredBetween()
2525 return Style.Language == FormatStyle::LK_JavaScript || in spaceRequiredBetween()
2532 (Style.SpaceBeforeParens != FormatStyle::SBPO_Never && in spaceRequiredBetween()
2540 (Style.SpaceBeforeParens == FormatStyle::SBPO_Always && in spaceRequiredBetween()
2591 } else if (Style.Language == FormatStyle::LK_Proto || in spaceRequiredBefore()
2592 Style.Language == FormatStyle::LK_TextProto) { in spaceRequiredBefore()
2615 } else if (Style.Language == FormatStyle::LK_JavaScript) { in spaceRequiredBefore()
2702 } else if (Style.Language == FormatStyle::LK_Java) { in spaceRequiredBefore()
2706 return Style.SpaceBeforeParens != FormatStyle::SBPO_Never; in spaceRequiredBefore()
2733 return Style.SpaceBeforeParens == FormatStyle::SBPO_Always; in spaceRequiredBefore()
2773 if (Style.Language == FormatStyle::LK_TextProto || in spaceRequiredBefore()
2774 (Style.Language == FormatStyle::LK_Proto && Left.is(TT_DictLiteral))) in spaceRequiredBefore()
2777 (Style.Standard != FormatStyle::LS_Cpp11 || Style.SpacesInAngles); in spaceRequiredBefore()
2786 if (Style.Language == FormatStyle::LK_Java && Right.is(tok::coloncolon) && in spaceRequiredBefore()
2796 Style.Standard == FormatStyle::LS_Cpp03) || in spaceRequiredBefore()
2806 Style.PointerAlignment != FormatStyle::PAS_Right; in spaceRequiredBefore()
2810 return Style.PointerAlignment != FormatStyle::PAS_Left; in spaceRequiredBefore()
2817 return Style.SpaceBeforeParens == FormatStyle::SBPO_Always; in spaceRequiredBefore()
2843 if (Style.Language == FormatStyle::LK_JavaScript) { in mustBreakBefore()
2869 return Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_None || in mustBreakBefore()
2870 Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_Empty || in mustBreakBefore()
2873 FormatStyle::SFS_InlineOnly); in mustBreakBefore()
2874 } else if (Style.Language == FormatStyle::LK_Java) { in mustBreakBefore()
2878 } else if (Style.Language == FormatStyle::LK_Cpp || in mustBreakBefore()
2879 Style.Language == FormatStyle::LK_ObjC || in mustBreakBefore()
2880 Style.Language == FormatStyle::LK_Proto || in mustBreakBefore()
2881 Style.Language == FormatStyle::LK_TableGen || in mustBreakBefore()
2882 Style.Language == FormatStyle::LK_TextProto) { in mustBreakBefore()
2894 (Style.Language == FormatStyle::LK_JavaScript && in mustBreakBefore()
2901 (Style.Language == FormatStyle::LK_JavaScript && in mustBreakBefore()
2924 Style.AlwaysBreakTemplateDeclarations == FormatStyle::BTDS_Yes) in mustBreakBefore()
2927 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma && in mustBreakBefore()
2931 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma && in mustBreakBefore()
2935 if (Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma && in mustBreakBefore()
2946 Right.NestingLevel == 1 && Style.Language == FormatStyle::LK_Proto) { in mustBreakBefore()
2962 if ((Style.Language == FormatStyle::LK_Java || in mustBreakBefore()
2963 Style.Language == FormatStyle::LK_JavaScript) && in mustBreakBefore()
2999 if ((Style.Language == FormatStyle::LK_Proto || in mustBreakBefore()
3000 Style.Language == FormatStyle::LK_TextProto) && in mustBreakBefore()
3060 if ((Style.Language == FormatStyle::LK_Cpp || in mustBreakBefore()
3061 Style.Language == FormatStyle::LK_ObjC) && in mustBreakBefore()
3089 if (Style.Language == FormatStyle::LK_Java) { in canBreakBefore()
3096 } else if (Style.Language == FormatStyle::LK_JavaScript) { in canBreakBefore()
3134 return Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None; in canBreakBefore()
3136 return Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None; in canBreakBefore()
3174 (Style.PointerAlignment == FormatStyle::PAS_Right && in canBreakBefore()
3189 Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon); in canBreakBefore()
3197 return Style.BreakInheritanceList == FormatStyle::BILS_AfterColon; in canBreakBefore()
3199 return Style.BreakInheritanceList != FormatStyle::BILS_AfterColon; in canBreakBefore()
3208 if (Style.Language == FormatStyle::LK_Proto || in canBreakBefore()
3209 Style.Language == FormatStyle::LK_TextProto) { in canBreakBefore()
3307 return Style.BreakConstructorInitializers == FormatStyle::BCIS_AfterColon; in canBreakBefore()
3309 return Style.BreakConstructorInitializers != FormatStyle::BCIS_AfterColon; in canBreakBefore()
3311 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) in canBreakBefore()
3314 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) in canBreakBefore()
3317 Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma) in canBreakBefore()
3320 Style.BreakInheritanceList == FormatStyle::BILS_BeforeComma) in canBreakBefore()
3326 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None && in canBreakBefore()
3327 (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_All || in canBreakBefore()
3336 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_All && in canBreakBefore()
3337 (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None || in canBreakBefore()