clang
3.7.0
|
A directive for a defined macro or a macro imported from a module. More...
#include <MacroInfo.h>
Public Member Functions | |
DefMacroDirective (MacroInfo *MI, SourceLocation Loc) | |
DefMacroDirective (MacroInfo *MI) | |
const MacroInfo * | getInfo () const |
The data for the macro definition. More... | |
MacroInfo * | getInfo () |
![]() | |
Kind | getKind () const |
SourceLocation | getLocation () const |
void | setPrevious (MacroDirective *Prev) |
Set previous definition of the macro with the same name. More... | |
const MacroDirective * | getPrevious () const |
Get previous definition of the macro with the same name. More... | |
MacroDirective * | getPrevious () |
Get previous definition of the macro with the same name. More... | |
bool | isFromPCH () const |
Return true if the macro directive was loaded from a PCH file. More... | |
void | setIsFromPCH () |
DefInfo | getDefinition () |
Traverses the macro directives history and returns the next macro definition directive along with info about its undefined location (if there is one) and if it is public or private. More... | |
const DefInfo | getDefinition () const |
bool | isDefined () const |
const MacroInfo * | getMacroInfo () const |
MacroInfo * | getMacroInfo () |
const DefInfo | findDirectiveAtLoc (SourceLocation L, SourceManager &SM) const |
Find macro definition active in the specified source location. If this macro was not defined there, return NULL. More... | |
void | dump () const |
Static Public Member Functions | |
static bool | classof (const MacroDirective *MD) |
static bool | classof (const DefMacroDirective *) |
![]() | |
static bool | classof (const MacroDirective *) |
Additional Inherited Members | |
![]() | |
enum | Kind { MD_Define, MD_Undefine, MD_Visibility } |
![]() | |
MacroDirective (Kind K, SourceLocation Loc) | |
![]() | |
MacroDirective * | Previous |
Previous macro directive for the same identifier, or NULL. More... | |
SourceLocation | Loc |
unsigned | MDKind: 2 |
MacroDirective kind. More... | |
bool | IsFromPCH: 1 |
True if the macro directive was loaded from a PCH file. More... | |
bool | IsPublic: 1 |
Whether the macro has public visibility (when described in a module). More... | |
A directive for a defined macro or a macro imported from a module.
Definition at line 419 of file MacroInfo.h.
|
inline |
Definition at line 423 of file MacroInfo.h.
|
inlineexplicit |
Definition at line 427 of file MacroInfo.h.
|
inlinestatic |
Definition at line 434 of file MacroInfo.h.
References clang::MacroDirective::getKind(), and clang::MacroDirective::MD_Define.
|
inlinestatic |
Definition at line 437 of file MacroInfo.h.
|
inline |
The data for the macro definition.
Definition at line 431 of file MacroInfo.h.
|
inline |
Definition at line 432 of file MacroInfo.h.