dpp.expansion

Deals with expanding #include directives inline.

Members

Functions

canonicalCursors
from!"clang".Cursor[] canonicalCursors(from!"clang".TranslationUnit translationUnit)

In C there can be several declarations and one definition of a type. In D we can have only ever one of either. There might be multiple cursors in the translation unit that all refer to the same canonical type. Unfortunately, the canonical type is orthogonal to which cursor is the actual definition, so we prefer to find the definition if it exists, and if not, we take the canonical declaration so as to not repeat ourselves in D.

canonicalCursors
from!"clang".Cursor[] canonicalCursors(R cursors)

In C there can be several declarations and one definition of a type. In D we can have only ever one of either. There might be multiple cursors in the translation unit that all refer to the same canonical type. Unfortunately, the canonical type is orthogonal to which cursor is the actual definition, so we prefer to find the definition if it exists, and if not, we take the canonical declaration so as to not repeat ourselves in D.

expand
void expand(string translUnitFileName, from!"dpp.runtime.context".Context context, string[] includePaths, string file, size_t line)
getHeaderName
string getHeaderName(const(char)[] line, string inputFileName, string[] includePaths)
Undocumented in source. Be warned that the author may not have intended to support it.
getHeaderName
string getHeaderName(const(char)[] line)
Undocumented in source. Be warned that the author may not have intended to support it.
isCppHeader
bool isCppHeader(from!"dpp.runtime.options".Options options, string headerFileName)
Undocumented in source. Be warned that the author may not have intended to support it.
mergeCursors
from!"clang".Cursor mergeCursors(from!"clang".Cursor lhs, from!"clang".Cursor rhs)
Undocumented in source.
mergeLeaves
from!"clang".Cursor mergeLeaves(from!"clang".Cursor lhs, from!"clang".Cursor rhs)
Undocumented in source.
mergeNodes
from!"clang".Cursor mergeNodes(from!"clang".Cursor lhs, from!"clang".Cursor rhs)
Undocumented in source.
sameCursorForChunking
bool sameCursorForChunking(from!"clang".Cursor lhs, from!"clang".Cursor rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
sortCursors
bool sortCursors(from!"clang".Cursor lhs, from!"clang".Cursor rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
trueCursors
from!"clang".Cursor[] trueCursors(R cursors)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta