Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Attributes
CppImport::MacroDefinitions Class Reference

stores the raw macro definition (not MetaDefinition) information provided by PPCallback for a translation unit. More...

Public Member Functions

 MacroDefinitions (ClangHelpers &clang)
 
void addMacroDefinition (const QString &name, const clang::MacroDirective *md)
 
void clear ()
 
QString definitionName (const clang::MacroDirective *md) const
 
bool isPartialBegin (const clang::MacroDirective *md) const
 return whether md defines a begin incomplete macro. More...
 
bool isPartialEnd (const clang::MacroDirective *md) const
 return whether md defines an end incomplete macro. More...
 
QString signature (const clang::MacroDirective *md) const
 

Private Attributes

ClangHelpersclang_
 
QHash< const clang::MacroDirective *, QString > definitions_
 
QHash< QString, QString > directoryToNamespaceMap_
 

Detailed Description

stores the raw macro definition (not MetaDefinition) information provided by PPCallback for a translation unit.

Constructor & Destructor Documentation

◆ MacroDefinitions()

CppImport::MacroDefinitions::MacroDefinitions ( ClangHelpers clang)

Member Function Documentation

◆ addMacroDefinition()

void CppImport::MacroDefinitions::addMacroDefinition ( const QString &  name,
const clang::MacroDirective *  md 
)
inline

◆ clear()

void CppImport::MacroDefinitions::clear ( )
inline

◆ definitionName()

QString CppImport::MacroDefinitions::definitionName ( const clang::MacroDirective *  md) const

◆ isPartialBegin()

bool CppImport::MacroDefinitions::isPartialBegin ( const clang::MacroDirective *  md) const
inline

return whether md defines a begin incomplete macro.

◆ isPartialEnd()

bool CppImport::MacroDefinitions::isPartialEnd ( const clang::MacroDirective *  md) const
inline

return whether md defines an end incomplete macro.

◆ signature()

QString CppImport::MacroDefinitions::signature ( const clang::MacroDirective *  md) const

Member Data Documentation

◆ clang_

ClangHelpers& CppImport::MacroDefinitions::clang_
private

◆ definitions_

QHash<const clang::MacroDirective*, QString> CppImport::MacroDefinitions::definitions_
private

◆ directoryToNamespaceMap_

QHash<QString, QString> CppImport::MacroDefinitions::directoryToNamespaceMap_
private