clang 19.0.0git
Public Member Functions | List of all members
clang::format::ScopedMacroState Class Reference

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

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

Public Member Functions

 ScopedMacroState (UnwrappedLine &Line, FormatTokenSource *&TokenSource, FormatToken *&ResetToken)
 
 ~ScopedMacroState () override
 
FormatTokengetNextToken () override
 
FormatTokengetPreviousToken () override
 
FormatTokenpeekNextToken (bool SkipComment) override
 
bool isEOF () override
 
unsigned getPosition () override
 
FormatTokensetPosition (unsigned Position) override
 
FormatTokeninsertTokens (ArrayRef< FormatToken * > Tokens) override
 
- 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
 

Detailed Description

Definition at line 185 of file FormatTokenSource.h.

Constructor & Destructor Documentation

◆ ScopedMacroState()

clang::format::ScopedMacroState::ScopedMacroState ( UnwrappedLine Line,
FormatTokenSource *&  TokenSource,
FormatToken *&  ResetToken 
)
inline

◆ ~ScopedMacroState()

clang::format::ScopedMacroState::~ScopedMacroState ( )
inlineoverride

Member Function Documentation

◆ getNextToken()

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

◆ getPosition()

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

◆ getPreviousToken()

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

◆ insertTokens()

FormatToken * clang::format::ScopedMacroState::insertTokens ( ArrayRef< FormatToken * >  Tokens)
inlineoverridevirtual

Implements clang::format::FormatTokenSource.

Definition at line 239 of file FormatTokenSource.h.

◆ isEOF()

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

◆ peekNextToken()

FormatToken * clang::format::ScopedMacroState::peekNextToken ( bool  SkipComment)
inlineoverridevirtual

◆ setPosition()

FormatToken * clang::format::ScopedMacroState::setPosition ( unsigned  Position)
inlineoverridevirtual

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