clang 20.0.0git
Public Member Functions | List of all members
clang::format::FormatTokenSource Class Referenceabstract

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

Inheritance diagram for clang::format::FormatTokenSource:
Inheritance graph
[legend]

Public Member Functions

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 29 of file FormatTokenSource.h.

Constructor & Destructor Documentation

◆ ~FormatTokenSource()

virtual clang::format::FormatTokenSource::~FormatTokenSource ( )
inlinevirtual

Definition at line 31 of file FormatTokenSource.h.

Member Function Documentation

◆ getNextNonComment()

FormatToken * clang::format::FormatTokenSource::getNextNonComment ( )
inline

Definition at line 76 of file FormatTokenSource.h.

References getNextToken(), and clang::format::FormatToken::is().

◆ getNextToken()

virtual FormatToken * clang::format::FormatTokenSource::getNextToken ( )
pure virtual

◆ getPosition()

virtual unsigned clang::format::FormatTokenSource::getPosition ( )
pure virtual

◆ getPreviousToken()

virtual FormatToken * clang::format::FormatTokenSource::getPreviousToken ( )
pure virtual

◆ insertTokens()

virtual FormatToken * clang::format::FormatTokenSource::insertTokens ( ArrayRef< FormatToken * >  Tokens)
pure virtual

◆ isEOF()

virtual bool clang::format::FormatTokenSource::isEOF ( )
pure virtual

◆ peekNextToken()

virtual FormatToken * clang::format::FormatTokenSource::peekNextToken ( bool  SkipComment = false)
pure virtual

◆ setPosition()

virtual FormatToken * clang::format::FormatTokenSource::setPosition ( unsigned  Position)
pure virtual

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