|
clang 24.0.0git
|
#include "/work/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Format/FormatToken.h"
Public Member Functions | |
| CommaSeparatedList (const FormatStyle &Style) | |
| void | precomputeFormattingInfos (const FormatToken *Token) override |
After the TokenAnnotator has finished annotating all the tokens, this function precomputes required information for formatting. | |
| unsigned | formatAfterToken (LineState &State, ContinuationIndenter *Indenter, bool DryRun) override |
Same as formatFromToken, but assumes that the first token has already been set thereby deciding on the first line break. | |
| unsigned | formatFromToken (LineState &State, ContinuationIndenter *Indenter, bool DryRun) override |
| Apply the special formatting that the given role demands. | |
| void | CommaFound (const FormatToken *Token) override |
Adds Token as the next comma to the CommaSeparated list. | |
| const FormatToken * | lastComma () override |
| Public Member Functions inherited from clang::TokenRole | |
| TokenRole (const FormatStyle &Style) | |
| virtual | ~TokenRole () |
Additional Inherited Members | |
| Protected Attributes inherited from clang::TokenRole | |
| const FormatStyle & | Style |
Definition at line 1046 of file FormatToken.h.
|
inline |
Definition at line 1048 of file FormatToken.h.
|
inlineoverridevirtual |
Adds Token as the next comma to the CommaSeparated list.
Reimplemented from clang::TokenRole.
Definition at line 1060 of file FormatToken.h.
|
overridevirtual |
Same as formatFromToken, but assumes that the first token has already been set thereby deciding on the first line break.
Reimplemented from clang::TokenRole.
Definition at line 111 of file FormatToken.cpp.
References clang::format::BK_Block, clang::Column, FormatToken(), and clang::TokenRole::Style.
Referenced by lastComma().
|
overridevirtual |
Apply the special formatting that the given role demands.
Assumes that the token having this role is already formatted.
Continues formatting from State leaving indentation to Indenter and returns the total penalty that this formatting incurs.
Reimplemented from clang::TokenRole.
Definition at line 171 of file FormatToken.cpp.
|
inlineoverridevirtual |
Reimplemented from clang::TokenRole.
Definition at line 1064 of file FormatToken.h.
References formatAfterToken(), FormatToken(), and precomputeFormattingInfos().
|
overridevirtual |
After the TokenAnnotator has finished annotating all the tokens, this function precomputes required information for formatting.
Reimplemented from clang::TokenRole.
Definition at line 189 of file FormatToken.cpp.
References FormatStyle::BLS_Block, FormatStyle::BPAS_OnePerLine, clang::format::CodePointsBetween(), clang::Column, FormatToken(), clang::Token::is(), clang::Token::isNoneOf(), clang::TokenRole::Style, and UINT_MAX.
Referenced by lastComma().