Lines Matching defs:Style

155                             const FormatStyle &Style, unsigned &LineLevel)
157 if (Style.BraceWrapping.AfterControlStatement)
159 if (Style.BraceWrapping.IndentBraces)
200 UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style,
205 CurrentLines(&Lines), Style(Style), Keywords(Keywords), Tokens(nullptr),
258 !Line->InPPDirective && Style.Language != FormatStyle::LK_JavaScript;
299 (Style.IndentCaseLabels || (Line->InPPDirective && Line->Level == 1)))
335 if (Style.Language == FormatStyle::LK_JavaScript && PrevTok &&
349 if (Style.Language == FormatStyle::LK_Proto) {
366 (Style.Language == FormatStyle::LK_JavaScript &&
471 static bool ShouldBreakBeforeBrace(const FormatStyle &Style,
474 return Style.BraceWrapping.AfterNamespace;
476 return Style.BraceWrapping.AfterClass;
478 return Style.BraceWrapping.AfterUnion;
480 return Style.BraceWrapping.AfterStruct;
489 Style.Language == FormatStyle::LK_JavaScript && isGoogScope(*Line);
747 if (Style.Language == FormatStyle::LK_TableGen &&
783 if (Style.BraceWrapping.AfterObjCDeclaration)
828 if (Style.Language == FormatStyle::LK_Java ||
829 Style.Language == FormatStyle::LK_JavaScript)
870 if (Style.Language == FormatStyle::LK_JavaScript) {
886 if (Style.Language == FormatStyle::LK_JavaScript) {
890 if (Style.Language == FormatStyle::LK_Proto) {
937 if (Style.Language != FormatStyle::LK_Cpp) {
955 if (Style.Language == FormatStyle::LK_Java ||
956 Style.Language == FormatStyle::LK_JavaScript) {
966 if (Style.Language == FormatStyle::LK_Java && FormatTok &&
969 if (Style.Language == FormatStyle::LK_JavaScript && FormatTok &&
1006 if (Style.BraceWrapping.AfterFunction)
1028 if (Style.Language == FormatStyle::LK_JavaScript &&
1036 if ((Style.Language == FormatStyle::LK_JavaScript ||
1037 Style.Language == FormatStyle::LK_Java) &&
1039 if (Style.Language == FormatStyle::LK_JavaScript) {
1063 Style.Language != FormatStyle::LK_JavaScript) {
1118 if (Style.Language != FormatStyle::LK_Cpp) {
1272 if (Style.Language == FormatStyle::LK_JavaScript) {
1308 if (Style.Language == FormatStyle::LK_JavaScript) {
1322 if (Style.Language == FormatStyle::LK_JavaScript) {
1349 if (Style.Language == FormatStyle::LK_Java && FormatTok->is(tok::l_brace))
1371 if (Style.Language == FormatStyle::LK_JavaScript &&
1427 CompoundStatementIndenter Indenter(this, Style, Line->Level);
1429 if (Style.BraceWrapping.BeforeElse)
1442 CompoundStatementIndenter Indenter(this, Style, Line->Level);
1476 if (Style.Language == FormatStyle::LK_Java && FormatTok->is(tok::l_paren)) {
1480 CompoundStatementIndenter Indenter(this, Style, Line->Level);
1482 if (Style.BraceWrapping.BeforeCatch) {
1501 ((Style.Language == FormatStyle::LK_Java ||
1502 Style.Language == FormatStyle::LK_JavaScript) &&
1518 CompoundStatementIndenter Indenter(this, Style, Line->Level);
1520 if (Style.BraceWrapping.BeforeCatch)
1537 if (ShouldBreakBeforeBrace(Style, InitialToken))
1540 bool AddLevel = Style.NamespaceIndentation == FormatStyle::NI_All ||
1541 (Style.NamespaceIndentation == FormatStyle::NI_Inner &&
1556 if (Style.Language != FormatStyle::LK_Java)
1585 CompoundStatementIndenter Indenter(this, Style, Line->Level);
1600 CompoundStatementIndenter Indenter(this, Style, Line->Level);
1602 if (Style.BraceWrapping.IndentBraces)
1627 CompoundStatementIndenter Indenter(this, Style, Line->Level);
1630 if (Style.BraceWrapping.AfterControlStatement)
1662 CompoundStatementIndenter Indenter(this, Style, Line->Level);
1692 if (Style.Language == FormatStyle::LK_JavaScript &&
1711 if (Style.Language == FormatStyle::LK_Cpp &&
1722 if (Style.Language == FormatStyle::LK_Java) {
1727 if (Style.Language == FormatStyle::LK_Proto) {
1817 ((Style.Language == FormatStyle::LK_Java ||
1818 Style.Language == FormatStyle::LK_JavaScript) &&
1852 if (ShouldBreakBeforeBrace(Style, InitialToken))
1908 if (Style.BraceWrapping.AfterObjCDeclaration)
2041 if (Style.Language != FormatStyle::LK_JavaScript)