clang API Documentation
A directive for a defined macro or a macro imported from a module. More...
#include <MacroInfo.h>


Public Member Functions | |
| DefMacroDirective (MacroInfo *MI) | |
| DefMacroDirective (MacroInfo *MI, SourceLocation Loc, unsigned ImportedFromModuleID=0, ArrayRef< unsigned > Overrides=None) | |
| const MacroInfo * | getInfo () const |
| The data for the macro definition. | |
| MacroInfo * | getInfo () |
| 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 *) |
A directive for a defined macro or a macro imported from a module.
Definition at line 486 of file MacroInfo.h.
| clang::DefMacroDirective::DefMacroDirective | ( | MacroInfo * | MI | ) | [inline, explicit] |
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.
| 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().
| MacroInfo* clang::DefMacroDirective::getInfo | ( | ) | [inline] |
Definition at line 505 of file MacroInfo.h.
| bool clang::DefMacroDirective::isAmbiguous | ( | ) | const [inline] |
Determine whether this macro definition is ambiguous with other macro definitions.
Definition at line 509 of file MacroInfo.h.
References clang::MacroDirective::IsAmbiguous.
| void clang::DefMacroDirective::setAmbiguous | ( | bool | Val | ) | [inline] |
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().