class MacroDefinitionRecord
Declaration
class MacroDefinitionRecord : public PreprocessingDirective { /* full declaration omitted */ };
Description
Record the location of a macro definition.
Declared at: clang/include/clang/Lex/PreprocessingRecord.h:147
Inherits from: PreprocessingDirective
Member Variables
- private const clang::IdentifierInfo* Name
- The name of the macro being defined.
Method Overview
- public MacroDefinitionRecord(const clang::IdentifierInfo * Name, clang::SourceRange Range)
- public static bool classof(const clang::PreprocessedEntity * PE)
- public clang::SourceLocation getLocation() const
- public const clang::IdentifierInfo * getName() const
Inherited from PreprocessingDirective:
Inherited from PreprocessedEntity:
Methods
¶MacroDefinitionRecord(
const clang::IdentifierInfo* Name,
clang::SourceRange Range)
MacroDefinitionRecord(
const clang::IdentifierInfo* Name,
clang::SourceRange Range)
Declared at: clang/include/clang/Lex/PreprocessingRecord.h:152
Parameters
- const clang::IdentifierInfo* Name
- clang::SourceRange Range
¶static bool classof(
const clang::PreprocessedEntity* PE)
static bool classof(
const clang::PreprocessedEntity* PE)
Declared at: clang/include/clang/Lex/PreprocessingRecord.h:163
Parameters
- const clang::PreprocessedEntity* PE
¶clang::SourceLocation getLocation() const
clang::SourceLocation getLocation() const
Description
Retrieve the location of the macro name in the definition.
Declared at: clang/include/clang/Lex/PreprocessingRecord.h:160
¶const clang::IdentifierInfo* getName() const
const clang::IdentifierInfo* getName() const
Description
Retrieve the name of the macro being defined.
Declared at: clang/include/clang/Lex/PreprocessingRecord.h:157