clang API Documentation

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

Record the location of a macro definition. More...

#include <PreprocessingRecord.h>

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

List of all members.

Public Member Functions

 MacroDefinition (const IdentifierInfo *Name, SourceRange Range)
const IdentifierInfogetName () const
 Retrieve the name of the macro being defined.
SourceLocation getLocation () const
 Retrieve the location of the macro name in the definition.

Static Public Member Functions

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

Detailed Description

Record the location of a macro definition.

Definition at line 140 of file PreprocessingRecord.h.


Constructor & Destructor Documentation

clang::MacroDefinition::MacroDefinition ( const IdentifierInfo Name,
SourceRange  Range 
) [inline, explicit]

Definition at line 145 of file PreprocessingRecord.h.


Member Function Documentation

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

Reimplemented from clang::PreprocessingDirective.

Definition at line 155 of file PreprocessingRecord.h.

References clang::PreprocessedEntity::getKind().

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

Definition at line 158 of file PreprocessingRecord.h.

SourceLocation clang::MacroDefinition::getLocation ( ) const [inline]

Retrieve the location of the macro name in the definition.

Definition at line 152 of file PreprocessingRecord.h.

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

Retrieve the name of the macro being defined.

Definition at line 149 of file PreprocessingRecord.h.


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