clang 20.0.0git
Public Member Functions | List of all members
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:
Inheritance graph
[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 ()
 
virtual FormatTokengetNextToken ()=0
 
virtual FormatTokengetPreviousToken ()=0
 
virtual FormatTokenpeekNextToken (bool SkipComment=false)=0
 
virtual bool isEOF ()=0
 
virtual unsigned getPosition ()=0
 
virtual FormatTokensetPosition (unsigned Position)=0
 
virtual FormatTokeninsertTokens (ArrayRef< FormatToken * > Tokens)=0
 
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.

◆ insertTokens()

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

Implements clang::format::FormatTokenSource.

Definition at line 142 of file FormatTokenSource.h.

References E.

◆ 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 isEOF().

◆ 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.

References P.


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