clang API Documentation

Public Attributes
clang::PPConditionalInfo Struct Reference

#include <Token.h>

Collaboration diagram for clang::PPConditionalInfo:
Collaboration graph
[legend]

List of all members.

Public Attributes

SourceLocation IfLoc
bool WasSkipping
bool FoundNonSkip
bool FoundElse

Detailed Description

PPConditionalInfo - Information about the conditional stack (if directives) currently active.

Definition at line 270 of file Token.h.


Member Data Documentation

FoundElse - True if we've seen a #else in this block. If so, #elif/#else directives are not allowed.

Definition at line 285 of file Token.h.

Referenced by clang::PreprocessorLexer::pushConditionalLevel().

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 281 of file Token.h.

Referenced by clang::PreprocessorLexer::pushConditionalLevel().

IfLoc - Location where the conditional started.

Definition at line 273 of file Token.h.

Referenced by clang::PreprocessorLexer::pushConditionalLevel().

WasSkipping - True if this was contained in a skipping directive, e.g. in a "#if 0" block.

Definition at line 277 of file Token.h.

Referenced by clang::PreprocessorLexer::pushConditionalLevel().


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