|
clang 22.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 983 of file FormatToken.h.
|
inline |
Definition at line 985 of file FormatToken.h.
References CommaFound(), and FormatToken().
Referenced by CommaFound().
|
inlineoverridevirtual |
Adds Token as the next comma to the CommaSeparated list.
Reimplemented from clang::TokenRole.
Definition at line 997 of file FormatToken.h.
References CommaSeparatedList(), false, clang::TokenRole::Style, and clang::TokenRole::TokenRole().
Referenced by CommaSeparatedList().
|
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 100 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 160 of file FormatToken.cpp.
|
inlineoverridevirtual |
Reimplemented from clang::TokenRole.
Definition at line 1001 of file FormatToken.h.
References formatAfterToken().
|
overridevirtual |
After the TokenAnnotator has finished annotating all the tokens, this function precomputes required information for formatting.
Reimplemented from clang::TokenRole.
Definition at line 178 of file FormatToken.cpp.
References clang::format::CodePointsBetween(), clang::Column, FormatToken(), clang::Token::is(), clang::TokenRole::Style, and UINT_MAX.