clang API Documentation

Public Member Functions | Static Public Member Functions
clang::MacroExpansion Class Reference

Records the location of a macro expansion. More...

#include <PreprocessingRecord.h>

Inheritance diagram for clang::MacroExpansion:
Inheritance graph
[legend]
Collaboration diagram for clang::MacroExpansion:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MacroExpansion (IdentifierInfo *BuiltinName, SourceRange Range)
 MacroExpansion (MacroDefinition *Definition, SourceRange Range)
bool isBuiltinMacro () const
 True if it is a builtin macro.
const IdentifierInfogetName () const
 The name of the macro being expanded.
MacroDefinitiongetDefinition () const
 The definition of the macro being expanded. May return null if this is a builtin macro.

Static Public Member Functions

static bool classof (const PreprocessedEntity *PE)
static bool classof (const MacroExpansion *)

Detailed Description

Records the location of a macro expansion.

Definition at line 162 of file PreprocessingRecord.h.


Constructor & Destructor Documentation

clang::MacroExpansion::MacroExpansion ( IdentifierInfo BuiltinName,
SourceRange  Range 
) [inline]

Definition at line 168 of file PreprocessingRecord.h.

clang::MacroExpansion::MacroExpansion ( MacroDefinition Definition,
SourceRange  Range 
) [inline]

Definition at line 172 of file PreprocessingRecord.h.


Member Function Documentation

static bool clang::MacroExpansion::classof ( const PreprocessedEntity PE) [inline, static]

Reimplemented from clang::PreprocessedEntity.

Definition at line 193 of file PreprocessingRecord.h.

References clang::PreprocessedEntity::getKind().

static bool clang::MacroExpansion::classof ( const MacroExpansion ) [inline, static]

Definition at line 196 of file PreprocessingRecord.h.

MacroDefinition* clang::MacroExpansion::getDefinition ( ) const [inline]

The definition of the macro being expanded. May return null if this is a builtin macro.

Definition at line 188 of file PreprocessingRecord.h.

const IdentifierInfo* clang::MacroExpansion::getName ( ) const [inline]

The name of the macro being expanded.

Definition at line 180 of file PreprocessingRecord.h.

References getDefinition(), and clang::IdentifierInfo::getName().

bool clang::MacroExpansion::isBuiltinMacro ( ) const [inline]

True if it is a builtin macro.

Definition at line 177 of file PreprocessingRecord.h.


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