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)

Detailed Description

Records the location of a macro expansion.

Definition at line 158 of file PreprocessingRecord.h.


Constructor & Destructor Documentation

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

Definition at line 164 of file PreprocessingRecord.h.

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

Definition at line 168 of file PreprocessingRecord.h.


Member Function Documentation

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

Definition at line 189 of file PreprocessingRecord.h.

References clang::PreprocessedEntity::getKind().

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

Definition at line 184 of file PreprocessingRecord.h.

The name of the macro being expanded.

Definition at line 176 of file PreprocessingRecord.h.

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

True if it is a builtin macro.

Definition at line 173 of file PreprocessingRecord.h.


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