Home
last modified time | relevance | path

Searched refs:ColumnLimit (Results 1 – 23 of 23) sorted by relevance

/external/clang/lib/Format/
DBreakableToken.cpp44 unsigned ColumnLimit, in getCommentSplit() argument
47 if (ColumnLimit <= ContentStartColumn + 1) in getCommentSplit()
50 unsigned MaxSplit = ColumnLimit - ContentStartColumn + 1; in getCommentSplit()
86 getStringSplit(StringRef Text, unsigned UsedColumns, unsigned ColumnLimit, in getStringSplit() argument
91 if (ColumnLimit <= UsedColumns) in getStringSplit()
93 unsigned MaxSplit = ColumnLimit - UsedColumns; in getStringSplit()
164 unsigned ColumnLimit) const { in getSplit()
167 ColumnLimit, Style.TabWidth, Encoding); in getSplit()
220 unsigned ColumnLimit) const { in getSplit()
222 ColumnLimit, Style.TabWidth, Encoding); in getSplit()
[all …]
DBreakableToken.h58 unsigned ColumnLimit) const = 0;
126 unsigned ColumnLimit) const override;
144 unsigned ColumnLimit) const override;
174 unsigned ColumnLimit) const override;
DUnwrappedLineFormatter.cpp145 if (MergedLines > 0 && Style.ColumnLimit == 0) in getNextMergedLine()
177 if (Style.ColumnLimit > 0 && Indent > Style.ColumnLimit) in tryFitMultipleLinesInOne()
181 Style.ColumnLimit == 0 ? UINT_MAX : Style.ColumnLimit - Indent; in tryFitMultipleLinesInOne()
212 if (Limit <= 2 || (Style.ColumnLimit == 0 && containsMustBreak(TheLine))) in tryFitMultipleLinesInOne()
546 if (Style.ColumnLimit > 0 && in formatChildren()
548 Style.ColumnLimit) in formatChildren()
847 unsigned ColumnLimit = getColumnLimit(TheLine.InPPDirective, NextLine); in format() local
849 TheLine.Last->TotalLength + Indent <= ColumnLimit || in format()
852 if (Style.ColumnLimit == 0) in format()
961 return Style.ColumnLimit - (ContinuesPPDirective ? 2 : 0); in getColumnLimit()
DContinuationIndenter.cpp157 Style.ColumnLimit > 0 && in mustBreak()
166 Style.BreakConstructorInitializersBeforeComma || Style.ColumnLimit != 0)) in mustBreak()
245 if (Style.ColumnLimit != 0 && Previous.BlockKind == BK_Block && in mustBreak()
432 (State.Column <= Style.ColumnLimit / 3 || in addTokenOnNewLine()
926 if (Style.ColumnLimit) { in moveStatePastScopeOpener()
1032 unsigned ColumnLimit = getColumnLimit(State); in breakProtrudingToken() local
1095 ColumnLimit = Style.ColumnLimit; in breakProtrudingToken()
1099 if (Current.UnbreakableTailLength >= ColumnLimit) in breakProtrudingToken()
1102 unsigned RemainingSpace = ColumnLimit - Current.UnbreakableTailLength; in breakProtrudingToken()
1115 Token->getSplit(LineIndex, TailOffset, ColumnLimit); in breakProtrudingToken()
[all …]
DFormatToken.cpp91 Style.ColumnLimit - State.Column + State.NextToken->Previous->ColumnWidth; in formatAfterToken()
221 unsigned MaxItems = Style.ColumnLimit / 3; in precomputeFormattingInfos()
266 if (Format.TotalWidth > Style.ColumnLimit) in precomputeFormattingInfos()
DWhitespaceManager.cpp279 unsigned ChangeMaxColumn = Style.ColumnLimit - LineLengthAfter; in AlignTokens()
344 unsigned ChangeMaxColumn = Style.ColumnLimit - Changes[i].TokenLength; in alignTrailingComments()
421 Style.AlignEscapedNewlinesLeft ? 0 : Style.ColumnLimit; in alignEscapedNewlines()
430 MaxEndOfLine = Style.AlignEscapedNewlinesLeft ? 0 : Style.ColumnLimit; in alignEscapedNewlines()
DFormat.cpp277 IO.mapOptional("ColumnLimit", Style.ColumnLimit); in mapping()
492 LLVMStyle.ColumnLimit = 80; in getLLVMStyle()
576 GoogleStyle.ColumnLimit = 100; in getGoogleStyle()
645 Style.ColumnLimit = 0; in getWebKitStyle()
663 Style.ColumnLimit = 79; in getGNUStyle()
DTokenAnnotator.cpp1596 Line.First->IsMultiline ? Style.ColumnLimit : Line.First->ColumnWidth; in calculateFormattingInformation()
1648 ChildSize = LastOfChild.isTrailingComment() ? Style.ColumnLimit in calculateFormattingInformation()
1656 Current->TotalLength = Prev->TotalLength + Style.ColumnLimit; in calculateFormattingInformation()
/external/clang/unittests/Format/
DFormatTest.cpp51 FormatStyle getLLVMStyleWithColumns(unsigned ColumnLimit) { in getLLVMStyleWithColumns() argument
53 Style.ColumnLimit = ColumnLimit; in getLLVMStyleWithColumns()
57 FormatStyle getGoogleStyleWithColumns(unsigned ColumnLimit) { in getGoogleStyleWithColumns() argument
59 Style.ColumnLimit = ColumnLimit; in getGoogleStyleWithColumns()
321 AllowsMergedIf.ColumnLimit = 14; in TEST_F()
327 AllowsMergedIf.ColumnLimit = 13; in TEST_F()
786 Style.ColumnLimit = 21; in TEST_F()
3228 Style.ColumnLimit = 45; in TEST_F()
3501 Style.ColumnLimit = 60; in TEST_F()
3636 OnePerLine.ColumnLimit = 60; in TEST_F()
[all …]
DFormatTestJava.cpp40 static FormatStyle getStyleWithColumns(unsigned ColumnLimit) { in getStyleWithColumns() argument
42 Style.ColumnLimit = ColumnLimit; in getStyleWithColumns()
DFormatTestSelective.cpp57 Style.ColumnLimit = 12; in TEST_F()
427 Style.ColumnLimit = 11; in TEST_F()
DFormatTestJS.cpp43 static FormatStyle getGoogleJSStyleWithColumns(unsigned ColumnLimit) { in getGoogleJSStyleWithColumns() argument
45 Style.ColumnLimit = ColumnLimit; in getGoogleJSStyleWithColumns()
DFormatTestProto.cpp36 Style.ColumnLimit = 60; // To make writing tests easier. in format()
/external/clang/include/clang/Format/
DFormat.h293 unsigned ColumnLimit; member
620 ColumnLimit == R.ColumnLimit && CommentPragmas == R.CommentPragmas &&
/external/clang/test/
D.clang-format2 ColumnLimit: 0
/external/llvm/test/
D.clang-format2 ColumnLimit: 0
/external/conscrypt/src/
D.clang-format6 ColumnLimit: 100
/external/vulkan-validation-layers/layers/
D.clang-format5 ColumnLimit: 132
/external/webrtc/talk/app/webrtc/objc/
D.clang-format2 ColumnLimit: 100
/external/clang/tools/clang-format/fuzzer/
DClangFormatFuzzer.cpp22 Style.ColumnLimit = 60; in LLVMFuzzerTestOneInput()
/external/jsoncpp/
D.clang-format16 ColumnLimit: 80
/external/parameter-framework/upstream/
D.clang-format72 ColumnLimit: '100'
/external/clang/docs/
DClangFormatStyleOptions.rst66 ColumnLimit: 100
380 **ColumnLimit** (``unsigned``)
738 ColumnLimit: 0