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)

Detailed Description

Record the location of a macro definition.

Definition at line 137 of file PreprocessingRecord.h.


Constructor & Destructor Documentation

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

Definition at line 142 of file PreprocessingRecord.h.


Member Function Documentation

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

Reimplemented from clang::PreprocessingDirective.

Definition at line 152 of file PreprocessingRecord.h.

References clang::PreprocessedEntity::getKind().

Retrieve the location of the macro name in the definition.

Definition at line 149 of file PreprocessingRecord.h.

Referenced by clang::index::generateUSRForMacro().

Retrieve the name of the macro being defined.

Definition at line 146 of file PreprocessingRecord.h.

Referenced by clang::index::generateUSRForMacro().


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