clang API Documentation

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

A directive for a defined macro or a macro imported from a module. More...

#include <MacroInfo.h>

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

List of all members.

Public Member Functions

 DefMacroDirective (MacroInfo *MI)
 DefMacroDirective (MacroInfo *MI, SourceLocation Loc, unsigned ImportedFromModuleID=0, ArrayRef< unsigned > Overrides=None)
const MacroInfogetInfo () const
 The data for the macro definition.
MacroInfogetInfo ()
bool isAmbiguous () const
 Determine whether this macro definition is ambiguous with other macro definitions.
void setAmbiguous (bool Val)
 Set whether this macro definition is ambiguous.

Static Public Member Functions

static bool classof (const MacroDirective *MD)
static bool classof (const DefMacroDirective *)

Detailed Description

A directive for a defined macro or a macro imported from a module.

Definition at line 486 of file MacroInfo.h.


Constructor & Destructor Documentation

Definition at line 490 of file MacroInfo.h.

clang::DefMacroDirective::DefMacroDirective ( MacroInfo MI,
SourceLocation  Loc,
unsigned  ImportedFromModuleID = 0,
ArrayRef< unsigned Overrides = None 
) [inline]

Definition at line 495 of file MacroInfo.h.


Member Function Documentation

static bool clang::DefMacroDirective::classof ( const MacroDirective MD) [inline, static]

Reimplemented from clang::MacroDirective.

Definition at line 514 of file MacroInfo.h.

References clang::MacroDirective::getKind(), and clang::MacroDirective::MD_Define.

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

Definition at line 517 of file MacroInfo.h.

const MacroInfo* clang::DefMacroDirective::getInfo ( ) const [inline]

The data for the macro definition.

Definition at line 504 of file MacroInfo.h.

Referenced by clang::ASTReader::installImportedMacro().

Definition at line 505 of file MacroInfo.h.

Determine whether this macro definition is ambiguous with other macro definitions.

Definition at line 509 of file MacroInfo.h.

References clang::MacroDirective::IsAmbiguous.

Set whether this macro definition is ambiguous.

Definition at line 512 of file MacroInfo.h.

References clang::MacroDirective::IsAmbiguous.

Referenced by clang::ASTReader::installImportedMacro(), and clang::ASTReader::installPCHMacroDirectives().


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