Lines Matching refs:FormatStyle

35   AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line,  in AnnotatingParser()
74 if (Style.Language == FormatStyle::LK_Java && in parseAngle()
87 Style.Language == FormatStyle::LK_Java) { in parseAngle()
137 } else if (Style.Language == FormatStyle::LK_JavaScript && in parseParens()
148 } else if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous && in parseParens()
154 } else if (Style.Language == FormatStyle::LK_JavaScript && Left->Previous && in parseParens()
309 Style.Language == FormatStyle::LK_Cpp && in parseSquare()
324 } else if (Style.Language == FormatStyle::LK_JavaScript && Parent && in parseSquare()
328 } else if (Style.Language == FormatStyle::LK_Proto || in parseSquare()
425 Style.Language != FormatStyle::LK_Cpp)) || in parseBrace()
426 Style.Language == FormatStyle::LK_Proto) && in parseBrace()
431 Style.Language == FormatStyle::LK_JavaScript) in parseBrace()
493 if (Style.Language == FormatStyle::LK_JavaScript) { in consumeToken()
506 Style.Language == FormatStyle::LK_Proto) { in consumeToken()
540 if (Style.Language == FormatStyle::LK_JavaScript && in consumeToken()
553 if (Style.Language == FormatStyle::LK_JavaScript && Tok->Previous && in consumeToken()
630 if (Style.Language == FormatStyle::LK_JavaScript && Tok->Next && in consumeToken()
643 Style.Language == FormatStyle::LK_JavaScript) in consumeToken()
711 if (Style.Language == FormatStyle::LK_JavaScript && IsFirstToken) { in parsePreprocessorDirective()
769 if ((Style.Language == FormatStyle::LK_Java && in parseLine()
789 if (Style.Language == FormatStyle::LK_Proto && Line.Level == 0 && in parseLine()
800 if (Style.Language == FormatStyle::LK_JavaScript && in parseLine()
807 if (Style.Language == FormatStyle::LK_JavaScript) { in parseLine()
925 !(Style.Language == FormatStyle::LK_JavaScript && in modifyContext()
955 Contexts.back().IsExpression = Style.Language == FormatStyle::LK_Java; in modifyContext()
992 Style.Language == FormatStyle::LK_Java) { in determineTokenType()
1011 if (Style.Language == FormatStyle::LK_JavaScript && in determineTokenType()
1068 else if (Style.Language == FormatStyle::LK_Java && Current.Previous && in determineTokenType()
1080 } else if ((Style.Language == FormatStyle::LK_Java || in determineTokenType()
1081 Style.Language == FormatStyle::LK_JavaScript) && in determineTokenType()
1110 if (Style.Language == FormatStyle::LK_JavaScript && in isStartOfName()
1146 if (Style.Language != FormatStyle::LK_Cpp && in rParenEndsCast()
1147 Style.Language != FormatStyle::LK_Java) in rParenEndsCast()
1184 if (Style.Language == FormatStyle::LK_Java && Tok.Next->is(tok::l_paren)) in rParenEndsCast()
1237 if (Style.Language == FormatStyle::LK_JavaScript) in determineStarAmpUsage()
1336 const FormatStyle &Style;
1356 ExpressionParser(const FormatStyle &Style, const AdditionalKeywords &Keywords, in ExpressionParser()
1464 if ((Style.Language == FormatStyle::LK_Java || in getCurrentPrecedence()
1465 Style.Language == FormatStyle::LK_JavaScript) && in getCurrentPrecedence()
1468 if (Style.Language == FormatStyle::LK_JavaScript && in getCurrentPrecedence()
1475 if ((Style.Language == FormatStyle::LK_Java || in getCurrentPrecedence()
1476 Style.Language == FormatStyle::LK_JavaScript) && in getCurrentPrecedence()
1540 const FormatStyle &Style;
1668 if ((Style.AlwaysBreakAfterReturnType == FormatStyle::RTBS_TopLevel || in mustBreakForReturnType()
1670 FormatStyle::RTBS_TopLevelDefinitions) && in mustBreakForReturnType()
1675 case FormatStyle::RTBS_None: in mustBreakForReturnType()
1677 case FormatStyle::RTBS_All: in mustBreakForReturnType()
1678 case FormatStyle::RTBS_TopLevel: in mustBreakForReturnType()
1680 case FormatStyle::RTBS_AllDefinitions: in mustBreakForReturnType()
1681 case FormatStyle::RTBS_TopLevelDefinitions: in mustBreakForReturnType()
1807 if (Style.Language == FormatStyle::LK_Java) { in splitPenalty()
1814 } else if (Style.Language == FormatStyle::LK_JavaScript) { in splitPenalty()
1825 if (Style.Language == FormatStyle::LK_Proto) in splitPenalty()
1856 (Right.is(tok::period) && Style.Language == FormatStyle::LK_Proto)) in splitPenalty()
1918 Style.AlignAfterOpenBracket != FormatStyle::BAS_DontAlign) in splitPenalty()
1930 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_DontAlign) in splitPenalty()
2013 (Style.PointerAlignment != FormatStyle::PAS_Left || in spaceRequiredBetween()
2017 (Style.PointerAlignment != FormatStyle::PAS_Right && in spaceRequiredBetween()
2027 (Style.PointerAlignment != FormatStyle::PAS_Right && in spaceRequiredBetween()
2060 (Style.SpaceBeforeParens != FormatStyle::SBPO_Never && in spaceRequiredBetween()
2067 (Style.SpaceBeforeParens == FormatStyle::SBPO_Always && in spaceRequiredBetween()
2102 if (Style.Language == FormatStyle::LK_Cpp) { in spaceRequiredBefore()
2105 } else if (Style.Language == FormatStyle::LK_Proto) { in spaceRequiredBefore()
2113 } else if (Style.Language == FormatStyle::LK_JavaScript) { in spaceRequiredBefore()
2149 } else if (Style.Language == FormatStyle::LK_Java) { in spaceRequiredBefore()
2153 return Style.SpaceBeforeParens != FormatStyle::SBPO_Never; in spaceRequiredBefore()
2178 return Style.SpaceBeforeParens == FormatStyle::SBPO_Always; in spaceRequiredBefore()
2210 (Style.Standard != FormatStyle::LS_Cpp11 || Style.SpacesInAngles); in spaceRequiredBefore()
2219 Style.Standard == FormatStyle::LS_Cpp03) || in spaceRequiredBefore()
2231 return Style.SpaceBeforeParens == FormatStyle::SBPO_Always; in spaceRequiredBefore()
2257 if (Style.Language == FormatStyle::LK_JavaScript) { in mustBreakBefore()
2281 return Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_None || in mustBreakBefore()
2282 Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_Empty || in mustBreakBefore()
2285 FormatStyle::SFS_Inline); in mustBreakBefore()
2286 } else if (Style.Language == FormatStyle::LK_Java) { in mustBreakBefore()
2337 Style.Language == FormatStyle::LK_Proto) in mustBreakBefore()
2349 if ((Style.Language == FormatStyle::LK_Java || in mustBreakBefore()
2350 Style.Language == FormatStyle::LK_JavaScript) && in mustBreakBefore()
2364 if (Style.Language == FormatStyle::LK_Java) { in canBreakBefore()
2371 } else if (Style.Language == FormatStyle::LK_JavaScript) { in canBreakBefore()
2381 return Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None; in canBreakBefore()
2383 return Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None; in canBreakBefore()
2396 (Style.PointerAlignment == FormatStyle::PAS_Right && in canBreakBefore()
2487 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_None && in canBreakBefore()
2488 (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_All || in canBreakBefore()
2497 Style.BreakBeforeBinaryOperators != FormatStyle::BOS_All && in canBreakBefore()
2498 (Style.BreakBeforeBinaryOperators == FormatStyle::BOS_None || in canBreakBefore()