Home
last modified time | relevance | path

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

1234

/external/llvm-project/clang/unittests/Format/
DFormatTestObjC.cpp227 Style.ColumnLimit = 40; in TEST_F()
374 Style.ColumnLimit = 40; in TEST_F()
423 Style.ColumnLimit = 40; in TEST_F()
580 Style.ColumnLimit = 60; in TEST_F()
587 Style.ColumnLimit = 40; in TEST_F()
606 Style.ColumnLimit = 40; in TEST_F()
617 Style.ColumnLimit = 80; in TEST_F()
731 unsigned PreviousColumnLimit = Style.ColumnLimit; in TEST_F()
732 Style.ColumnLimit = 50; in TEST_F()
739 Style.ColumnLimit = PreviousColumnLimit; in TEST_F()
[all …]
DFormatTestComments.cpp53 FormatStyle getLLVMStyleWithColumns(unsigned ColumnLimit) { in getLLVMStyleWithColumns() argument
55 Style.ColumnLimit = ColumnLimit; in getLLVMStyleWithColumns()
59 FormatStyle getTextProtoStyleWithColumns(unsigned ColumnLimit) { in getTextProtoStyleWithColumns() argument
61 Style.ColumnLimit = ColumnLimit; in getTextProtoStyleWithColumns()
750 for (int ColumnLimit = 15; ColumnLimit <= 17; ++ColumnLimit) { in TEST_F() local
754 format("// aaaaaaaaaa \\ bb", getLLVMStyleWithColumns(ColumnLimit))); in TEST_F()
758 format("// aaaaaaaaa \\ bb", getLLVMStyleWithColumns(ColumnLimit))); in TEST_F()
762 format("// aaaaaaaaa \\ \\ bb", getLLVMStyleWithColumns(ColumnLimit))); in TEST_F()
3174 Style.ColumnLimit = 60; in TEST_F()
3176 Style20.ColumnLimit = 20; in TEST_F()
[all …]
DFormatTestTextProto.cpp44 Style.ColumnLimit = 60; // To make writing tests easier. in verifyFormat()
385 Style.ColumnLimit = 60; // To make writing tests easier. in TEST_F()
524 Style.ColumnLimit = 60; // To make writing tests easier. in TEST_F()
565 Style.ColumnLimit = 60; in TEST_F()
576 Style.ColumnLimit = 60; in TEST_F()
DFormatTest.cpp55 FormatStyle getStyleWithColumns(FormatStyle Style, unsigned ColumnLimit) { in getStyleWithColumns() argument
56 Style.ColumnLimit = ColumnLimit; in getStyleWithColumns()
60 FormatStyle getLLVMStyleWithColumns(unsigned ColumnLimit) { in getLLVMStyleWithColumns() argument
61 return getStyleWithColumns(getLLVMStyle(), ColumnLimit); in getLLVMStyleWithColumns()
64 FormatStyle getGoogleStyleWithColumns(unsigned ColumnLimit) { in getGoogleStyleWithColumns() argument
65 return getStyleWithColumns(getGoogleStyle(), ColumnLimit); in getGoogleStyleWithColumns()
505 AllowsMergedIf.ColumnLimit = 14; in TEST_F()
511 AllowsMergedIf.ColumnLimit = 13; in TEST_F()
599 AllowSimpleBracedStatements.ColumnLimit = 40; in TEST_F()
1474 Style.ColumnLimit = 21; in TEST_F()
[all …]
DFormatTestJS.cpp42 static FormatStyle getGoogleJSStyleWithColumns(unsigned ColumnLimit) { in getGoogleJSStyleWithColumns() argument
44 Style.ColumnLimit = ColumnLimit; in getGoogleJSStyleWithColumns()
873 Style.ColumnLimit = 30; in TEST_F()
994 Style.ColumnLimit = 33; in TEST_F()
996 Style.ColumnLimit = 32; in TEST_F()
1873 Style.ColumnLimit = 40; in TEST_F()
2177 for (int ColumnLimit = 6; ColumnLimit < 13; ++ColumnLimit) { in TEST_F() local
2184 getGoogleJSStyleWithColumns(ColumnLimit)); in TEST_F()
DFormatTestCSharp.cpp39 static FormatStyle getStyleWithColumns(unsigned ColumnLimit) { in getStyleWithColumns() argument
41 Style.ColumnLimit = ColumnLimit; in getStyleWithColumns()
287 Style.ColumnLimit = 10; in TEST_F()
683 Style.ColumnLimit = 100; in TEST_F()
859 Style.ColumnLimit = 50; // Force lines to be wrapped. in TEST_F()
DFormatTestJava.cpp39 static FormatStyle getStyleWithColumns(unsigned ColumnLimit) { in getStyleWithColumns() argument
41 Style.ColumnLimit = ColumnLimit; in getStyleWithColumns()
DFormatTestRawStrings.cpp52 FormatStyle getStyleWithColumns(FormatStyle Style, unsigned ColumnLimit) { in getStyleWithColumns() argument
53 Style.ColumnLimit = ColumnLimit; in getStyleWithColumns()
57 FormatStyle getLLVMStyleWithColumns(unsigned ColumnLimit) { in getLLVMStyleWithColumns() argument
58 return getStyleWithColumns(getLLVMStyle(), ColumnLimit); in getLLVMStyleWithColumns()
63 FormatStyle getRawStringPbStyleWithColumns(unsigned ColumnLimit) { in getRawStringPbStyleWithColumns() argument
65 Style.ColumnLimit = ColumnLimit; in getRawStringPbStyleWithColumns()
DFormatTestProto.cpp35 Style.ColumnLimit = 60; // To make writing tests easier. in format()
513 Style.ColumnLimit = 60; in TEST_F()
/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()
854 if (Style.ColumnLimit == 0) in format()
965 return Style.ColumnLimit - (ContinuesPPDirective ? 2 : 0); in getColumnLimit()
DContinuationIndenter.cpp170 Style.ColumnLimit > 0 && in mustBreak()
179 Style.BreakConstructorInitializersBeforeComma || Style.ColumnLimit != 0)) in mustBreak()
186 if (Current.isMemberAccess() && Style.ColumnLimit != 0 && in mustBreak()
187 State.Column + getLengthToNextOperator(Current) > Style.ColumnLimit && in mustBreak()
264 if (Style.ColumnLimit != 0 && Previous.BlockKind == BK_Block && in mustBreak()
465 (State.Column <= Style.ColumnLimit / 3 || in addTokenOnNewLine()
977 if (Style.ColumnLimit) { in moveStatePastScopeOpener()
1086 unsigned ColumnLimit = getColumnLimit(State); in breakProtrudingToken() local
1150 ColumnLimit = Style.ColumnLimit; in breakProtrudingToken()
1154 if (Current.UnbreakableTailLength >= ColumnLimit) in breakProtrudingToken()
[all …]
DFormatToken.cpp92 Style.ColumnLimit - State.Column + State.NextToken->Previous->ColumnWidth; in formatAfterToken()
232 unsigned MaxItems = Style.ColumnLimit / 3; in precomputeFormattingInfos()
277 if (Format.TotalWidth > Style.ColumnLimit) in precomputeFormattingInfos()
/external/conscrypt/
D.clang-format6 ColumnLimit: 100
12 ColumnLimit: 100
/external/llvm-project/clang/lib/Format/
DContinuationIndenter.cpp197 LanguageStyle->ColumnLimit = CodeStyle.ColumnLimit; in RawStringFormatStyleManager()
380 Style.ColumnLimit > 0 && in mustBreak()
395 Style.ColumnLimit != 0)) in mustBreak()
409 if (Current.isMemberAccess() && Style.ColumnLimit != 0 && in mustBreak()
410 State.Column + getLengthToNextOperator(Current) > Style.ColumnLimit && in mustBreak()
506 if (Style.ColumnLimit != 0 && Previous.is(BK_Block) && in mustBreak()
782 (State.Column <= Style.ColumnLimit / 3 || in addTokenOnNewLine()
1515 if (Style.ColumnLimit) { in moveStatePastScopeOpener()
1606 Style.ColumnLimit) in moveStatePastScopeCloser()
1783 StartColumn + NewPrefixSize > Style.ColumnLimit in reformatRawStringLiteral()
[all …]
DBreakableToken.cpp67 unsigned ColumnLimit, unsigned TabWidth, in getCommentSplit() argument
71 << "\", Column limit: " << ColumnLimit in getCommentSplit()
73 if (ColumnLimit <= ContentStartColumn + 1) in getCommentSplit()
76 unsigned MaxSplit = ColumnLimit - ContentStartColumn + 1; in getCommentSplit()
169 getStringSplit(StringRef Text, unsigned UsedColumns, unsigned ColumnLimit, in getStringSplit() argument
174 if (ColumnLimit <= UsedColumns) in getStringSplit()
176 unsigned MaxSplit = ColumnLimit - UsedColumns; in getStringSplit()
278 unsigned LineIndex, unsigned TailOffset, unsigned ColumnLimit, in getSplit() argument
281 ColumnLimit - Postfix.size(), Style.TabWidth, Encoding); in getSplit()
304 unsigned ColumnLimit, unsigned ContentStartColumn, in getSplit() argument
[all …]
DUnwrappedLineFormatter.cpp179 if (MergedLines > 0 && Style.ColumnLimit == 0) in getNextMergedLine()
213 if (Style.ColumnLimit > 0 && Indent > Style.ColumnLimit) in tryFitMultipleLinesInOne()
217 Style.ColumnLimit == 0 ? UINT_MAX : Style.ColumnLimit - Indent; in tryFitMultipleLinesInOne()
321 return (Style.ColumnLimit == 0 || in tryFitMultipleLinesInOne()
322 TheLine->Last->TotalLength <= Style.ColumnLimit) in tryFitMultipleLinesInOne()
341 return (Style.ColumnLimit == 0 || in tryFitMultipleLinesInOne()
342 TheLine->Last->TotalLength <= Style.ColumnLimit) in tryFitMultipleLinesInOne()
373 if (Limit <= 2 || (Style.ColumnLimit == 0 && containsMustBreak(TheLine))) in tryFitMultipleLinesInOne()
642 if (Limit <= 2 || (Style.ColumnLimit == 0 && containsMustBreak(*I))) in tryMergeSimpleBlock()
805 if (Style.ColumnLimit > 0 && in formatChildren()
[all …]
DBreakableToken.h157 unsigned ColumnLimit, unsigned ContentStartColumn,
256 Split getSplit(unsigned LineIndex, unsigned TailOffset, unsigned ColumnLimit,
299 Split getSplit(unsigned LineIndex, unsigned TailOffset, unsigned ColumnLimit,
364 Split getSplit(unsigned LineIndex, unsigned TailOffset, unsigned ColumnLimit,
DFormatToken.cpp96 Style.ColumnLimit - State.Column + State.NextToken->Previous->ColumnWidth; in formatAfterToken()
239 unsigned MaxItems = Style.ColumnLimit / 3; in precomputeFormattingInfos()
284 if (Format.TotalWidth > Style.ColumnLimit && Columns > 1) in precomputeFormattingInfos()
/external/clang/unittests/Format/
DFormatTest.cpp56 FormatStyle getLLVMStyleWithColumns(unsigned ColumnLimit) { in getLLVMStyleWithColumns() argument
58 Style.ColumnLimit = ColumnLimit; in getLLVMStyleWithColumns()
62 FormatStyle getGoogleStyleWithColumns(unsigned ColumnLimit) { in getGoogleStyleWithColumns() argument
64 Style.ColumnLimit = ColumnLimit; in getGoogleStyleWithColumns()
338 AllowsMergedIf.ColumnLimit = 14; in TEST_F()
344 AllowsMergedIf.ColumnLimit = 13; in TEST_F()
804 Style.ColumnLimit = 21; in TEST_F()
3271 Style.ColumnLimit = 45; in TEST_F()
3544 Style.ColumnLimit = 60; in TEST_F()
3687 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()
451 Style.ColumnLimit = 11; in TEST_F()
/external/llvm-project/clang/lib/Tooling/Refactoring/
DAtomicChange.cpp89 bool violatesColumnLimit(llvm::StringRef Code, unsigned ColumnLimit, in violatesColumnLimit() argument
101 if (Line.size() > ColumnLimit) in violatesColumnLimit()
107 getRangesForFormating(llvm::StringRef Code, unsigned ColumnLimit, in getRangesForFormating() argument
131 violatesColumnLimit(Code, ColumnLimit, Start, End)) in getRangesForFormating()
356 *ChangedCode, Spec.Style.ColumnLimit, Spec.Format, AllReplaces); in applyAtomicChanges()
/external/llvm-project/compiler-rt/test/
D.clang-format2 ColumnLimit: 0

1234