class DefMacroDirective

Declaration

class DefMacroDirective : public MacroDirective { /* full declaration omitted */ };

Description

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

Declared at: clang/include/clang/Lex/MacroInfo.h:430

Inherits from: MacroDirective

Member Variables

private clang::MacroInfo* Info

Inherited from MacroDirective:

protected Previous = nullptr
protected Loc
protected MDKind
protected IsFromPCH
protected IsPublic

Method Overview

  • public DefMacroDirective(clang::MacroInfo * MI, clang::SourceLocation Loc)
  • public DefMacroDirective(clang::MacroInfo * MI)
  • public static bool classof(const clang::MacroDirective * MD)
  • public static bool classof(const clang::DefMacroDirective *)
  • public const clang::MacroInfo * getInfo() const
  • public clang::MacroInfo * getInfo()

Inherited from MacroDirective:

Methods

DefMacroDirective(clang::MacroInfo* MI,
                  clang::SourceLocation Loc)

Declared at: clang/include/clang/Lex/MacroInfo.h:434

Parameters

clang::MacroInfo* MI
clang::SourceLocation Loc

DefMacroDirective(clang::MacroInfo* MI)

Declared at: clang/include/clang/Lex/MacroInfo.h:438

Parameters

clang::MacroInfo* MI

static bool classof(
    const clang::MacroDirective* MD)

Declared at: clang/include/clang/Lex/MacroInfo.h:445

Parameters

const clang::MacroDirective* MD

static bool classof(
    const clang::DefMacroDirective*)

Declared at: clang/include/clang/Lex/MacroInfo.h:449

Parameters

const clang::DefMacroDirective*

const clang::MacroInfo* getInfo() const

Description

The data for the macro definition.

Declared at: clang/include/clang/Lex/MacroInfo.h:442

clang::MacroInfo* getInfo()

Declared at: clang/include/clang/Lex/MacroInfo.h:443