clang 22.0.0git
clang::format::IndexedTokenSource Class Reference

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Format/FormatTokenSource.h"

Inheritance diagram for clang::format::IndexedTokenSource:
[legend]

Public Member Functions

 IndexedTokenSource (ArrayRef< FormatToken * > Tokens)
FormatTokengetNextToken () override
FormatTokengetPreviousToken () override
FormatTokenpeekNextToken (bool SkipComment=false) override
bool isEOF () override
unsigned getPosition () override
FormatTokensetPosition (unsigned P) override
FormatTokeninsertTokens (ArrayRef< FormatToken * > New) override
void reset ()
Public Member Functions inherited from clang::format::FormatTokenSource
virtual ~FormatTokenSource ()
FormatTokengetNextNonComment ()

Detailed Description

Definition at line 86 of file FormatTokenSource.h.

Constructor & Destructor Documentation

◆ IndexedTokenSource()

clang::format::IndexedTokenSource::IndexedTokenSource ( ArrayRef< FormatToken * > Tokens)
inline

Definition at line 88 of file FormatTokenSource.h.

Member Function Documentation

◆ getNextToken()

FormatToken * clang::format::IndexedTokenSource::getNextToken ( )
inlineoverridevirtual

Implements clang::format::FormatTokenSource.

Definition at line 91 of file FormatTokenSource.h.

References isEOF().

◆ getPosition()

unsigned clang::format::IndexedTokenSource::getPosition ( )
inlineoverridevirtual

Implements clang::format::FormatTokenSource.

Definition at line 130 of file FormatTokenSource.h.

◆ getPreviousToken()

FormatToken * clang::format::IndexedTokenSource::getPreviousToken ( )
inlineoverridevirtual

Implements clang::format::FormatTokenSource.

Definition at line 107 of file FormatTokenSource.h.

References isNot().

◆ insertTokens()

FormatToken * clang::format::IndexedTokenSource::insertTokens ( ArrayRef< FormatToken * > New)
inlineoverridevirtual

Implements clang::format::FormatTokenSource.

Definition at line 142 of file FormatTokenSource.h.

References New, and Next.

◆ isEOF()

bool clang::format::IndexedTokenSource::isEOF ( )
inlineoverridevirtual

Implements clang::format::FormatTokenSource.

Definition at line 126 of file FormatTokenSource.h.

References false.

Referenced by getNextToken(), and peekNextToken().

◆ peekNextToken()

FormatToken * clang::format::IndexedTokenSource::peekNextToken ( bool SkipComment = false)
inlineoverridevirtual

Implements clang::format::FormatTokenSource.

Definition at line 112 of file FormatTokenSource.h.

References is(), isEOF(), and Next.

◆ reset()

void clang::format::IndexedTokenSource::reset ( )
inline

Definition at line 163 of file FormatTokenSource.h.

Referenced by clang::format::UnwrappedLineParser::parse().

◆ setPosition()

FormatToken * clang::format::IndexedTokenSource::setPosition ( unsigned P)
inlineoverridevirtual

Implements clang::format::FormatTokenSource.

Definition at line 136 of file FormatTokenSource.h.


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