collectGlobalNames

The collectGlobalTypes function scans the whole AST of the translation unit and produces a set of the type names in global scope.

The type names are required for the parsing of C code (e.g. macro definition bodies), as C grammar isn't context free.

void
collectGlobalNames
(
TranslationUnit translUnit
,
ref Cursor[string] types
,
ref Cursor[string] consts
)

Meta