clang: clang::TokenRole Class Reference (original) (raw)

#include "[/work/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Format/FormatToken.h](FormatToken%5F8h%5Fsource.html)"

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.
virtual unsigned formatFromToken (LineState &State, ContinuationIndenter *Indenter, bool DryRun)
Apply the special formatting that the given role demands.
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.
virtual void CommaFound (const FormatToken *Token)
Notifies the Role that a comma was found.
virtual const FormatToken * lastComma ()
Protected Attributes
const FormatStyle & Style

Definition at line 945 of file FormatToken.h.

clang::TokenRole::TokenRole ( const FormatStyle & Style) inline

~TokenRole()

clang::format::TokenRole::~TokenRole ( ) virtual

CommaFound()

virtual void clang::TokenRole::CommaFound ( const FormatToken * Token) inlinevirtual

formatAfterToken()

virtual unsigned clang::TokenRole::formatAfterToken ( LineState & State, ContinuationIndenter * Indenter, bool DryRun ) inlinevirtual

Same as formatFromToken, but assumes that the first token has already been set thereby deciding on the first line break.

Reimplemented in clang::CommaSeparatedList.

Definition at line 968 of file FormatToken.h.

formatFromToken()

virtual unsigned clang::TokenRole::formatFromToken ( LineState & State, ContinuationIndenter * Indenter, bool DryRun ) inlinevirtual

lastComma()

virtual const FormatToken * clang::TokenRole::lastComma ( ) inlinevirtual

precomputeFormattingInfos()

void clang::format::TokenRole::precomputeFormattingInfos ( const FormatToken * Token) virtual

Style

const FormatStyle& clang::TokenRole::Style protected

The documentation for this class was generated from the following files: