Lines Matching +full:current +full:- +full:limit
1 //===--- ContinuationIndenter.h - Format C++ code ---------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 //===----------------------------------------------------------------------===//
64 // FIXME: canBreak and mustBreak aren't strictly indentation-related. Find a
75 /// Puts the token on the current line if \p Newline is \c false and adds a
83 /// Get the column limit for this line. This is the style's column
84 /// limit, potentially reduced for preprocessor definitions.
107 unsigned reformatRawStringLiteral(const FormatToken &Current,
112 /// If the current token is at the end of the current line, handle
114 unsigned handleEndOfLine(const FormatToken &Current, LineState &State,
117 /// If \p Current is a raw string that is configured to be reformatted,
119 std::optional<FormatStyle> getRawStringStyle(const FormatToken &Current,
122 /// If the current token sticks out over the end of the line, break
126 /// when tokens are broken or lines exceed the column limit, and exceeded
128 /// column limit.
131 /// and column limit violation in all lines except for the last one. The
132 /// penalty for the column limit violation in the last line (and in single
136 /// protruding the column limit; if true, lines will be split strictly within
137 /// the column limit where possible; if false, words are allowed to protrude
138 /// over the column limit as long as the penalty is less than the penalty
140 std::pair<unsigned, bool> breakProtrudingToken(const FormatToken &Current,
145 /// Returns the \c BreakableToken starting at \p Current, or nullptr
146 /// if the current token cannot be broken.
148 createBreakableToken(const FormatToken &Current, LineState &State,
154 /// Puts the token on the current line.
178 unsigned addMultilineToken(const FormatToken &Current, LineState &State);
184 /// by clang-format and string literals with escaped newlines.
246 /// The start of the most recent function in a builder-type call.
302 /// \c true if this \c ParenState already contains a line-break.
305 /// that clang-format prefers similar breaks, i.e. breaks in the same
310 /// builder-type call on one line.
320 /// \c true if at least one selector name was found in the current
337 /// \c true if the current \c ParenState represents an Objective-C
343 /// \brief true if the current \c ParenState represents the false branch of
344 /// a chained conditional expression (e.g. else-if)
408 /// The current state when indenting a unwrapped line.
412 /// The number of used columns in the current line.
424 /// The lowest \c NestingLevel on the current line.
440 /// In long and deeply nested unwrapped lines, the current algorithm can