clang  6.0.0svn
Public Member Functions | List of all members
clang::VAOptExpansionContext Class Reference

A class for tracking whether we're inside a VA_OPT during a traversal of the tokens of a macro during macro expansion. More...

#include "clang/Lex/VariadicMacroSupport.h"

Inheritance diagram for clang::VAOptExpansionContext:
Inheritance graph
[legend]
Collaboration diagram for clang::VAOptExpansionContext:
Collaboration graph
[legend]

Public Member Functions

 VAOptExpansionContext (Preprocessor &PP)
 
void reset ()
 
const TokengetEOFTok () const
 
void sawHashOrHashAtBefore (const bool HasLeadingSpace, const bool IsHashAt)
 
bool hasCharifyBefore () const
 
bool hasStringifyOrCharifyBefore () const
 
unsigned int getNumberOfTokensPriorToVAOpt () const
 
bool getLeadingSpaceForStringifiedToken () const
 
void sawVAOptFollowedByOpeningParens (const SourceLocation VAOptLoc, const unsigned int NumPriorTokens)
 
SourceLocation getVAOptLoc () const
 

Detailed Description

A class for tracking whether we're inside a VA_OPT during a traversal of the tokens of a macro during macro expansion.

Definition at line 121 of file VariadicMacroSupport.h.

Constructor & Destructor Documentation

◆ VAOptExpansionContext()

clang::VAOptExpansionContext::VAOptExpansionContext ( Preprocessor PP)
inline

Member Function Documentation

◆ getEOFTok()

const Token& clang::VAOptExpansionContext::getEOFTok ( ) const
inline

Definition at line 168 of file VariadicMacroSupport.h.

Referenced by clang::TokenLexer::Init().

◆ getLeadingSpaceForStringifiedToken()

bool clang::VAOptExpansionContext::getLeadingSpaceForStringifiedToken ( ) const
inline

Definition at line 195 of file VariadicMacroSupport.h.

Referenced by clang::TokenLexer::Init().

◆ getNumberOfTokensPriorToVAOpt()

unsigned int clang::VAOptExpansionContext::getNumberOfTokensPriorToVAOpt ( ) const
inline

Definition at line 189 of file VariadicMacroSupport.h.

Referenced by clang::TokenLexer::Init().

◆ getVAOptLoc()

SourceLocation clang::VAOptExpansionContext::getVAOptLoc ( ) const
inline

◆ hasCharifyBefore()

bool clang::VAOptExpansionContext::hasCharifyBefore ( ) const
inline

Definition at line 180 of file VariadicMacroSupport.h.

Referenced by clang::TokenLexer::Init().

◆ hasStringifyOrCharifyBefore()

bool clang::VAOptExpansionContext::hasStringifyOrCharifyBefore ( ) const
inline

Definition at line 185 of file VariadicMacroSupport.h.

◆ reset()

void clang::VAOptExpansionContext::reset ( )
inline

Definition at line 160 of file VariadicMacroSupport.h.

◆ sawHashOrHashAtBefore()

void clang::VAOptExpansionContext::sawHashOrHashAtBefore ( const bool  HasLeadingSpace,
const bool  IsHashAt 
)
inline

Definition at line 170 of file VariadicMacroSupport.h.

◆ sawVAOptFollowedByOpeningParens()

void clang::VAOptExpansionContext::sawVAOptFollowedByOpeningParens ( const SourceLocation  VAOptLoc,
const unsigned int  NumPriorTokens 
)
inline

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