creates and stores all MacroExpansions for a translation unit.
More...
creates and stores all MacroExpansions for a translation unit.
◆ NodeOriginType
used to change the origin criterium for what nodes are returned by method topLevelNodes.
Enumerator |
---|
Transitive | return all nodes created directly by expansion or by one of its child expansions.
|
Direct | return only the nodes created directly by expansion.
|
◆ MacroExpansions()
◆ addMacroExpansion()
void CppImport::MacroExpansions::addMacroExpansion |
( |
clang::SourceRange |
sourceRange, |
|
|
const clang::MacroDirective * |
macroDirective, |
|
|
const clang::MacroArgs * |
macroArguments |
|
) |
| |
◆ clear()
void CppImport::MacroExpansions::clear |
( |
| ) |
|
◆ expansion()
MacroExpansion * CppImport::MacroExpansions::expansion |
( |
clang::SourceLocation |
loc | ) |
const |
|
private |
return the top most expansion registered for loc.
◆ expansions() [1/2]
QList< MacroExpansion * > CppImport::MacroExpansions::expansions |
( |
| ) |
const |
|
inline |
◆ expansions() [2/2]
return all expansions that node is a part of.
◆ immediateExpansion()
MacroExpansion * CppImport::MacroExpansions::immediateExpansion |
( |
clang::SourceLocation |
loc | ) |
const |
◆ topLevelExpansions()
QList< MacroExpansion * > CppImport::MacroExpansions::topLevelExpansions |
( |
| ) |
const |
return all registered expansions that are not children of other expansions.
◆ topLevelNodes()
return all top level nodes of expansion matching the origin criterium.
◆ clang_
◆ currentXMacroParent
◆ expansionCache_
◆ expansions_
◆ macroDefinitions_