clang: clang::VisibilityMacroDirective Class Reference (original) (raw)
A directive for setting the module visibility of a macro. More...
#include "[clang/Lex/MacroInfo.h](MacroInfo%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| VisibilityMacroDirective (SourceLocation Loc, bool Public) | |
| bool | isPublic () const |
| Determine whether this macro is part of the public API of its module. | |
| Public Member Functions inherited from clang::MacroDirective | |
| Kind | getKind () const |
| SourceLocation | getLocation () const |
| void | setPrevious (MacroDirective *Prev) |
| Set previous definition of the macro with the same name. | |
| const MacroDirective * | getPrevious () const |
| Get previous definition of the macro with the same name. | |
| MacroDirective * | getPrevious () |
| Get previous definition of the macro with the same name. | |
| bool | isFromPCH () const |
| Return true if the macro directive was loaded from a PCH file. | |
| 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. | |
| const DefInfo | getDefinition () const |
| bool | isDefined () const |
| const MacroInfo * | getMacroInfo () const |
| MacroInfo * | getMacroInfo () |
| const DefInfo | findDirectiveAtLoc (SourceLocation L, const SourceManager &SM) const |
| Find macro definition active in the specified source location. | |
| void | dump () const |
| Additional Inherited Members | |
|---|---|
| Public Types inherited from clang::MacroDirective | |
| enum | Kind { MD_Define, MD_Undefine, MD_Visibility } |
| Protected Member Functions inherited from clang::MacroDirective | |
| MacroDirective (Kind K, SourceLocation Loc) | |
| Protected Attributes inherited from clang::MacroDirective | |
| MacroDirective * | Previous = nullptr |
| Previous macro directive for the same identifier, or nullptr. | |
| SourceLocation | Loc |
| unsigned | MDKind: 2 |
| [MacroDirective](classclang%5F1%5F1MacroDirective.html "Encapsulates changes to the "macros namespace" (the location where the macro name became active,...") kind. | |
| unsigned | IsFromPCH: 1 |
| True if the macro directive was loaded from a PCH file. | |
| unsigned | IsPublic: 1 |
| Whether the macro has public visibility (when described in a module). |
A directive for setting the module visibility of a macro.
Definition at line 470 of file MacroInfo.h.
| clang::VisibilityMacroDirective::VisibilityMacroDirective ( SourceLocation Loc, bool Public ) | inlineexplicit |
|---|
◆ classof() [1/2]
◆ classof() [2/2]
◆ isPublic()
| bool clang::VisibilityMacroDirective::isPublic ( ) const | inline |
|---|
The documentation for this class was generated from the following file:
- include/clang/Lex/MacroInfo.h