clang
9.0.0
|
#include "/work/llvm-www-releases/9.0.0/docsbuild/llvm.src/tools/clang/lib/Format/FormatToken.h"
Public Member Functions | |
TokenRole (const FormatStyle &Style) | |
virtual | ~TokenRole () |
virtual void | precomputeFormattingInfos (const FormatToken *Token) |
After the TokenAnnotator has finished annotating all the tokens, this function precomputes required information for formatting. More... | |
virtual unsigned | formatFromToken (LineState &State, ContinuationIndenter *Indenter, bool DryRun) |
Apply the special formatting that the given role demands. More... | |
virtual unsigned | formatAfterToken (LineState &State, ContinuationIndenter *Indenter, bool DryRun) |
Same as formatFromToken , but assumes that the first token has already been set thereby deciding on the first line break. More... | |
virtual void | CommaFound (const FormatToken *Token) |
Notifies the Role that a comma was found. More... | |
virtual const FormatToken * | lastComma () |
Protected Attributes | |
const FormatStyle & | Style |
Definition at line 576 of file FormatToken.h.
|
inline |
Definition at line 578 of file FormatToken.h.
|
virtual |
Definition at line 70 of file FormatToken.cpp.
|
inlinevirtual |
Notifies the Role
that a comma was found.
Reimplemented in clang::format::CommaSeparatedList.
Definition at line 606 of file FormatToken.h.
|
inlinevirtual |
Same as formatFromToken
, but assumes that the first token has already been set thereby deciding on the first line break.
Reimplemented in clang::format::CommaSeparatedList.
Definition at line 599 of file FormatToken.h.
|
inlinevirtual |
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 in clang::format::CommaSeparatedList.
Definition at line 591 of file FormatToken.h.
|
inlinevirtual |
Reimplemented in clang::format::CommaSeparatedList.
Definition at line 608 of file FormatToken.h.
|
virtual |
After the TokenAnnotator
has finished annotating all the tokens, this function precomputes required information for formatting.
Reimplemented in clang::format::CommaSeparatedList.
Definition at line 72 of file FormatToken.cpp.
|
protected |
Definition at line 611 of file FormatToken.h.