clang
10.0.0git
|
A class for tracking whether we're inside a VA_OPT during a traversal of the tokens of a variadic macro definition. More...
#include "clang/Lex/VariadicMacroSupport.h"
Public Member Functions | |
VAOptDefinitionContext (Preprocessor &PP) | |
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 ')'. More... | |
void | sawVAOptFollowedByOpeningParens (const SourceLocation LParenLoc) |
Call this function as soon as you see VA_OPT and '('. More... | |
SourceLocation | getUnmatchedOpeningParenLoc () const |
bool | sawClosingParen () |
Call this function each time an rparen is seen. More... | |
void | sawOpeningParen (SourceLocation LParenLoc) |
Call this function each time an lparen is seen. More... | |
bool | isAtTopLevel () const |
Are we at the top level within the VA_OPT? More... | |
A class for tracking whether we're inside a VA_OPT during a traversal of the tokens of a variadic macro definition.
Definition at line 70 of file VariadicMacroSupport.h.
|
inline |
Definition at line 78 of file VariadicMacroSupport.h.
|
inline |
Definition at line 96 of file VariadicMacroSupport.h.
Referenced by isConfigurationPattern().
|
inline |
Are we at the top level within the VA_OPT?
Definition at line 117 of file VariadicMacroSupport.h.
|
inline |
Returns true if we have seen the VA_OPT and '(' but before having seen the matching ')'.
Definition at line 87 of file VariadicMacroSupport.h.
Referenced by clang::VAOptExpansionContext::getVAOptLoc(), clang::TokenLexer::Init(), and isConfigurationPattern().
Definition at line 81 of file VariadicMacroSupport.h.
References clang::Token::getIdentifierInfo().
Referenced by clang::VAOptExpansionContext::getVAOptLoc(), clang::TokenLexer::Init(), and isConfigurationPattern().
|
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 104 of file VariadicMacroSupport.h.
Referenced by clang::VAOptExpansionContext::getVAOptLoc(), clang::TokenLexer::Init(), and isConfigurationPattern().
|
inline |
Call this function each time an lparen is seen.
Definition at line 111 of file VariadicMacroSupport.h.
Referenced by clang::VAOptExpansionContext::getVAOptLoc(), clang::TokenLexer::Init(), and isConfigurationPattern().
|
inline |
Call this function as soon as you see VA_OPT and '('.
Definition at line 90 of file VariadicMacroSupport.h.
Referenced by isConfigurationPattern(), and clang::VAOptExpansionContext::sawVAOptFollowedByOpeningParens().