clang 20.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 |
bool | isVAOptToken (const Token &T) const |
bool | isInVAOpt () const |
Returns true if we have seen the VA_OPT and '(' but before having seen the matching ')'. | |
bool | sawClosingParen () |
Call this function each time an rparen is seen. | |
void | sawOpeningParen (SourceLocation LParenLoc) |
Call this function each time an lparen is seen. | |
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 118 of file VariadicMacroSupport.h.
|
inline |
Definition at line 156 of file VariadicMacroSupport.h.
References clang::Token::setKind(), and clang::Token::startToken().
|
inline |
Definition at line 191 of file VariadicMacroSupport.h.
|
inline |
Definition at line 196 of file VariadicMacroSupport.h.
|
inline |
Definition at line 174 of file VariadicMacroSupport.h.
|
inline |
Definition at line 217 of file VariadicMacroSupport.h.
Definition at line 211 of file VariadicMacroSupport.h.
|
inline |
Definition at line 234 of file VariadicMacroSupport.h.
References clang::SourceLocation::isValid().
|
inline |
Definition at line 202 of file VariadicMacroSupport.h.
Referenced by hasStringifyOrCharifyBefore().
|
inline |
Definition at line 184 of file VariadicMacroSupport.h.
|
inline |
Definition at line 185 of file VariadicMacroSupport.h.
References clang::VAOptDefinitionContext::isAtTopLevel().
|
inline |
Definition at line 207 of file VariadicMacroSupport.h.
References hasCharifyBefore().
|
inline |
Returns true if we have seen the VA_OPT and '(' but before having seen the matching ')'.
Definition at line 83 of file VariadicMacroSupport.h.
Definition at line 77 of file VariadicMacroSupport.h.
|
inline |
Definition at line 164 of file VariadicMacroSupport.h.
|
inline |
Call this function each time an rparen is seen.
It returns true only if the rparen that was just seen was the eventual (non-nested) closing paren for VAOPT, and ejects us out of the VAOPT context.
Definition at line 100 of file VariadicMacroSupport.h.
|
inline |
Definition at line 176 of file VariadicMacroSupport.h.
|
inline |
Call this function each time an lparen is seen.
Definition at line 107 of file VariadicMacroSupport.h.
|
inline |
Definition at line 223 of file VariadicMacroSupport.h.
References clang::SourceLocation::isFileID(), and clang::VAOptDefinitionContext::sawVAOptFollowedByOpeningParens().