clang 20.0.0git
|
Information about the conditional stack (#if directives) currently active. More...
#include "clang/Lex/Token.h"
Public Attributes | |
SourceLocation | IfLoc |
Location where the conditional started. | |
bool | WasSkipping |
True if this was contained in a skipping directive, e.g., in a "\#if 0" block. | |
bool | FoundNonSkip |
True if we have emitted tokens already, and now we're in an #else block or something. | |
bool | FoundElse |
True if we've seen a #else in this block. | |
Information about the conditional stack (#if directives) currently active.
bool clang::PPConditionalInfo::FoundElse |
True if we've seen a #else in this block.
If so, #elif/#else directives are not allowed.
Definition at line 339 of file Token.h.
Referenced by clang::PreprocessorLexer::pushConditionalLevel().
bool clang::PPConditionalInfo::FoundNonSkip |
True if we have emitted tokens already, and now we're in an #else block or something.
Only useful in Skipping blocks.
Definition at line 335 of file Token.h.
Referenced by clang::PreprocessorLexer::pushConditionalLevel().
SourceLocation clang::PPConditionalInfo::IfLoc |
Location where the conditional started.
Definition at line 327 of file Token.h.
Referenced by clang::PreprocessorLexer::pushConditionalLevel().
bool clang::PPConditionalInfo::WasSkipping |
True if this was contained in a skipping directive, e.g., in a "\#if 0" block.
Definition at line 331 of file Token.h.
Referenced by clang::PreprocessorLexer::pushConditionalLevel().