clang
10.0.0git
|
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"
Public Member Functions | |
VAOptExpansionContext (Preprocessor &PP) | |
void | reset () |
const Token & | getEOFTok () const |
void | sawHashOrHashAtBefore (const bool HasLeadingSpace, const bool IsHashAt) |
void | hasPlaceholderAfterHashhashAtStart () |
void | hasPlaceholderBeforeRParen () |
bool | beginsWithPlaceholder () const |
bool | endsWithPlaceholder () const |
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 |
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 122 of file VariadicMacroSupport.h.
|
inline |
Definition at line 155 of file VariadicMacroSupport.h.
References clang::comments::tok::eof, clang::Token::setKind(), and clang::Token::startToken().
|
inline |
Definition at line 190 of file VariadicMacroSupport.h.
Referenced by clang::TokenLexer::Init().
|
inline |
Definition at line 195 of file VariadicMacroSupport.h.
Referenced by clang::TokenLexer::Init().
|
inline |
Definition at line 173 of file VariadicMacroSupport.h.
Referenced by clang::TokenLexer::Init().
|
inline |
Definition at line 216 of file VariadicMacroSupport.h.
Referenced by clang::TokenLexer::Init().
|
inline |
Definition at line 210 of file VariadicMacroSupport.h.
Referenced by clang::TokenLexer::Init().
|
inline |
Definition at line 233 of file VariadicMacroSupport.h.
References clang::VAOptDefinitionContext::isInVAOpt(), clang::SourceLocation::isValid(), clang::VAOptDefinitionContext::isVAOptToken(), clang::VAOptDefinitionContext::sawClosingParen(), and clang::VAOptDefinitionContext::sawOpeningParen().
Referenced by clang::TokenLexer::Init().
|
inline |
Definition at line 201 of file VariadicMacroSupport.h.
Referenced by clang::TokenLexer::Init().
|
inline |
Definition at line 183 of file VariadicMacroSupport.h.
Referenced by clang::TokenLexer::Init().
|
inline |
Definition at line 184 of file VariadicMacroSupport.h.
Referenced by clang::TokenLexer::Init().
|
inline |
Definition at line 206 of file VariadicMacroSupport.h.
Referenced by clang::TokenLexer::Init().
|
inline |
Definition at line 163 of file VariadicMacroSupport.h.
Referenced by clang::TokenLexer::Init().
|
inline |
Definition at line 175 of file VariadicMacroSupport.h.
Referenced by clang::TokenLexer::Init().
|
inline |
Definition at line 222 of file VariadicMacroSupport.h.
References clang::SourceLocation::isFileID(), and clang::VAOptDefinitionContext::sawVAOptFollowedByOpeningParens().
Referenced by clang::TokenLexer::Init().