• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/clang/lib/Format/

Lines Matching refs:State

70   /// Returns \c true, if a line break after \p State is allowed.
71 bool canBreak(const LineState &State);
73 /// Returns \c true, if a line break after \p State is mandatory.
74 bool mustBreak(const LineState &State);
76 /// Appends the next token to \p State and updates information
84 unsigned addTokenToState(LineState &State, bool Newline, bool DryRun,
89 unsigned getColumnLimit(const LineState &State) const;
92 /// Mark the next token as consumed in \p State and modify its stacks
94 unsigned moveStateToNextToken(LineState &State, bool DryRun, bool Newline);
96 /// Update 'State' according to the next token's fake left parentheses.
97 void moveStatePastFakeLParens(LineState &State, bool Newline);
98 /// Update 'State' according to the next token's fake r_parens.
99 void moveStatePastFakeRParens(LineState &State);
101 /// Update 'State' according to the next token being one of "(<{[".
102 void moveStatePastScopeOpener(LineState &State, bool Newline);
103 /// Update 'State' according to the next token being one of ")>}]".
104 void moveStatePastScopeCloser(LineState &State);
105 /// Update 'State' with the next token opening a nested block.
106 void moveStateToNewBlock(LineState &State);
112 LineState &State,
118 unsigned handleEndOfLine(const FormatToken &Current, LineState &State,
124 const LineState &State);
145 LineState &State,
152 createBreakableToken(const FormatToken &Current, LineState &State,
155 /// Appends the next token to \p State and updates information
162 void addTokenOnCurrentLine(LineState &State, bool DryRun,
165 /// Appends the next token to \p State and updates information
172 unsigned addTokenOnNewLine(LineState &State, bool DryRun);
175 unsigned getNewLineColumn(const LineState &State);
177 /// Adds a multiline token to the \p State.
182 unsigned addMultilineToken(const FormatToken &Current, LineState &State);
189 bool nextIsMultilineString(const LineState &State);