resolveType: Create high-level, aggregate of translation unit nodes

Description Usage Arguments Author(s) References

Description

This function converts information in a translation unit node into a higher-level, aggregate description of the associated data structure, class, routine, variable declaration.

Usage

1
resolveType(node, nodes, classDefs = DefinitionContainer(nodes), ...)

Arguments

node

the translation unit node from which to compute the aggregate information.

nodes

the entire array of nodes returned from parseTU. This is used to jump to other nodes not directly linked to node and resolve auxillary types in this function

classDefs

This is intended to be a place where previously resolved types are stored and can be referenced without having to resolve them again each time they are encountered. As such, it is a library of previously resolved types. It is also used to store information about what nodes are currently being processed so that infinite loops are avoided such as those that arise when a structure has a field that is a reference to the same data type as being defined, e.g struct _A { struct _A *next;}

...

additional parameters for methods to define.

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

References

http://www.omegahat.org/RGccTranslationUnit


omegahat/RGCCTranslationUnit documentation built on May 24, 2019, 1:53 p.m.