struct PPConditionalInfo

Declaration

struct PPConditionalInfo { /* full declaration omitted */ };

Description

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

Declared at: clang/include/clang/Lex/Token.h:314

Member Variables

public clang::SourceLocation IfLoc
Location where the conditional started.
public bool WasSkipping
True if this was contained in a skipping directive, e.g., in a "\#if 0" block.
public bool FoundNonSkip
True if we have emitted tokens already, and now we're in an # else block or something. Only useful in Skipping blocks.
public bool FoundElse
True if we've seen a # else in this block. If so, # elif/ # else directives are not allowed.