clang 23.0.0git
clang::MacroDirective::DefInfo Class Reference

#include "clang/Lex/MacroInfo.h"

Public Member Functions

 DefInfo ()=default
 DefInfo (DefMacroDirective *DefDirective, SourceLocation UndefLoc, bool isPublic)
const DefMacroDirectivegetDirective () const
DefMacroDirectivegetDirective ()
SourceLocation getLocation () const
MacroInfogetMacroInfo ()
const MacroInfogetMacroInfo () const
SourceLocation getUndefLocation () const
bool isUndefined () const
bool isPublic () const
bool isValid () const
bool isInvalid () const
 operator bool () const
DefInfo getPreviousDefinition ()
const DefInfo getPreviousDefinition () const

Detailed Description

Definition at line 365 of file MacroInfo.h.

Constructor & Destructor Documentation

◆ DefInfo() [1/2]

clang::MacroDirective::DefInfo::DefInfo ( )
default

◆ DefInfo() [2/2]

clang::MacroDirective::DefInfo::DefInfo ( DefMacroDirective * DefDirective,
SourceLocation UndefLoc,
bool isPublic )
inline

Definition at line 372 of file MacroInfo.h.

References isPublic().

Member Function Documentation

◆ getDirective() [1/2]

DefMacroDirective * clang::MacroDirective::DefInfo::getDirective ( )
inline

Definition at line 377 of file MacroInfo.h.

◆ getDirective() [2/2]

const DefMacroDirective * clang::MacroDirective::DefInfo::getDirective ( ) const
inline

Definition at line 376 of file MacroInfo.h.

Referenced by clang::Preprocessor::getMacroDefinitionAtLoc().

◆ getLocation()

SourceLocation clang::MacroDirective::DefInfo::getLocation ( ) const
inline

Definition at line 489 of file MacroInfo.h.

References isInvalid().

Referenced by clang::Preprocessor::getLastMacroWithSpelling().

◆ getMacroInfo() [1/2]

MacroInfo * clang::MacroDirective::DefInfo::getMacroInfo ( )
inline

◆ getMacroInfo() [2/2]

const MacroInfo * clang::MacroDirective::DefInfo::getMacroInfo ( ) const
inline

Definition at line 382 of file MacroInfo.h.

References DefInfo(), and getMacroInfo().

◆ getPreviousDefinition() [1/2]

MacroDirective::DefInfo clang::MacroDirective::DefInfo::getPreviousDefinition ( )
inline

Definition at line 502 of file MacroInfo.h.

References isInvalid().

Referenced by clang::MacroDirective::findDirectiveAtLoc(), and getPreviousDefinition().

◆ getPreviousDefinition() [2/2]

const DefInfo clang::MacroDirective::DefInfo::getPreviousDefinition ( ) const
inline

Definition at line 398 of file MacroInfo.h.

References DefInfo(), and getPreviousDefinition().

◆ getUndefLocation()

SourceLocation clang::MacroDirective::DefInfo::getUndefLocation ( ) const
inline

Definition at line 386 of file MacroInfo.h.

◆ isInvalid()

bool clang::MacroDirective::DefInfo::isInvalid ( ) const
inline

Definition at line 392 of file MacroInfo.h.

References isValid().

Referenced by getLocation().

◆ isPublic()

bool clang::MacroDirective::DefInfo::isPublic ( ) const
inline

Definition at line 389 of file MacroInfo.h.

Referenced by DefInfo().

◆ isUndefined()

bool clang::MacroDirective::DefInfo::isUndefined ( ) const
inline

Definition at line 387 of file MacroInfo.h.

◆ isValid()

bool clang::MacroDirective::DefInfo::isValid ( ) const
inline

Definition at line 391 of file MacroInfo.h.

Referenced by isInvalid(), and operator bool().

◆ operator bool()

clang::MacroDirective::DefInfo::operator bool ( ) const
inlineexplicit

Definition at line 394 of file MacroInfo.h.

References isValid().


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