Lines Matching refs:Style

281 AlignTokenSequence(const FormatStyle &Style, unsigned Start, unsigned End,  in AlignTokenSequence()  argument
395 return Style.BinPackArguments; in AlignTokenSequence()
463 if ((Style.PointerAlignment == FormatStyle::PAS_Right || in AlignTokenSequence()
464 Style.ReferenceAlignment == FormatStyle::RAS_Right) && in AlignTokenSequence()
467 Style.ReferenceAlignment != FormatStyle::RAS_Right && in AlignTokenSequence()
468 Style.ReferenceAlignment != FormatStyle::RAS_Pointer; in AlignTokenSequence()
477 } else if (Style.PointerAlignment != FormatStyle::PAS_Right) { in AlignTokenSequence()
520 static unsigned AlignTokens(const FormatStyle &Style, F &&Matches, in AlignTokens() argument
572 AlignTokenSequence(Style, StartOfSequence, EndOfSequence, in __anon9685e3f00202()
622 AlignTokens(Style, Matches, Changes, i, ACS, RightJustify);
667 if (Style.ColumnLimit != 0 &&
668 Style.ColumnLimit < NewLeft + NewAnchor + NewRight) {
729 if (!Style.AlignConsecutiveMacros.Enabled) in alignConsecutiveMacros()
780 !Style.AlignConsecutiveMacros.AcrossEmptyLines; in alignConsecutiveMacros()
786 !(LineIsComment && Style.AlignConsecutiveMacros.AcrossComments); in alignConsecutiveMacros()
819 if (!Style.AlignConsecutiveAssignments.Enabled) in alignConsecutiveAssignments()
823 Style, in alignConsecutiveAssignments()
838 return Style.AlignConsecutiveAssignments.AlignCompound in alignConsecutiveAssignments()
844 (Style.isVerilog() && C.Tok->is(tok::lessequal) && in alignConsecutiveAssignments()
847 Changes, /*StartAt=*/0, Style.AlignConsecutiveAssignments, in alignConsecutiveAssignments()
852 if (!Style.AlignConsecutiveBitFields.Enabled) in alignConsecutiveBitFields()
856 Style, in alignConsecutiveBitFields()
868 Changes, /*StartAt=*/0, Style.AlignConsecutiveBitFields); in alignConsecutiveBitFields()
872 if (!Style.AlignConsecutiveShortCaseStatements.Enabled || in alignConsecutiveShortCaseStatements()
873 !Style.AllowShortCaseLabelsOnASingleLine) { in alignConsecutiveShortCaseStatements()
878 if (Style.AlignConsecutiveShortCaseStatements.AlignCaseColons) in alignConsecutiveShortCaseStatements()
912 !Style.AlignConsecutiveShortCaseStatements.AcrossEmptyLines; in alignConsecutiveShortCaseStatements()
919 Style.AlignConsecutiveShortCaseStatements.AcrossComments) && in alignConsecutiveShortCaseStatements()
942 if (Style.AlignConsecutiveShortCaseStatements.AlignCaseColons) { in alignConsecutiveShortCaseStatements()
976 if (!Style.AlignConsecutiveDeclarations.Enabled) in alignConsecutiveDeclarations()
980 Style, in alignConsecutiveDeclarations()
982 if (Style.AlignConsecutiveDeclarations.AlignFunctionPointers) { in alignConsecutiveDeclarations()
1011 Changes, /*StartAt=*/0, Style.AlignConsecutiveDeclarations); in alignConsecutiveDeclarations()
1015 if (Style.BreakBeforeTernaryOperators) { in alignChainedConditionals()
1017 Style, in alignChainedConditionals()
1042 Style, in alignChainedConditionals()
1057 if (Style.AlignTrailingComments.Kind == FormatStyle::TCAS_Never) in alignTrailingComments()
1065 if (Style.AlignTrailingComments.Kind == FormatStyle::TCAS_Always) in alignTrailingComments()
1066 NewLineThreshold = Style.AlignTrailingComments.OverEmptyLines + 1; in alignTrailingComments()
1076 if (Style.AlignTrailingComments.Kind == FormatStyle::TCAS_Leave) { in alignTrailingComments()
1086 if (RestoredLineLength >= Style.ColumnLimit && Style.ColumnLimit > 0) in alignTrailingComments()
1099 else if (Style.ColumnLimit == 0) in alignTrailingComments()
1101 else if (Style.ColumnLimit >= C.TokenLength) in alignTrailingComments()
1102 ChangeMaxColumn = Style.ColumnLimit - C.TokenLength; in alignTrailingComments()
1125 CommentColumn == NextColumn + Style.IndentWidth; in alignTrailingComments()
1217 if (Style.AlignEscapedNewlines == FormatStyle::ENAS_DontAlign) in alignEscapedNewlines()
1220 bool AlignLeft = Style.AlignEscapedNewlines == FormatStyle::ENAS_Left; in alignEscapedNewlines()
1221 unsigned MaxEndOfLine = AlignLeft ? 0 : Style.ColumnLimit; in alignEscapedNewlines()
1230 MaxEndOfLine = AlignLeft ? 0 : Style.ColumnLimit; in alignEscapedNewlines()
1253 if (Style.AlignArrayOfStructures == FormatStyle::AIAS_None) in alignArrayInitializers()
1278 if (Style.AlignArrayOfStructures == FormatStyle::AIAS_Right) in alignArrayInitializers()
1280 else if (Style.AlignArrayOfStructures == FormatStyle::AIAS_Left) in alignArrayInitializers()
1289 const int BracePadding = Style.Cpp11BracedListStyle ? 0 : 1; in alignArrayInitializersRightJustified()
1365 const int BracePadding = Style.Cpp11BracedListStyle ? 0 : 1; in alignArrayInitializersLeftJustified()
1519 if (LineLimit < Style.ColumnLimit) { in getCells()
1698 switch (Style.UseTab) { in appendIndentText()
1703 if (Style.TabWidth) { in appendIndentText()
1705 Style.TabWidth - WhitespaceStartColumn % Style.TabWidth; in appendIndentText()
1716 Text.append(Spaces / Style.TabWidth, '\t'); in appendIndentText()
1717 Text.append(Spaces % Style.TabWidth, ' '); in appendIndentText()
1725 unsigned Indentation = IndentLevel * Style.IndentWidth; in appendIndentText()
1738 IsAligned ? IndentLevel * Style.IndentWidth : Spaces; in appendIndentText()
1752 if (Style.TabWidth) { in appendTabIndent()
1753 unsigned Tabs = Indentation / Style.TabWidth; in appendTabIndent()
1755 Spaces -= Tabs * Style.TabWidth; in appendTabIndent()