SageBuilder::buildOpaqueType
Build an opaque type with a name, useful when a type's details are unknown during transformation, especially for a runtime library's internal type. Must provide scope here. Some types are not known during translation but nevertheless are needed. For example, some internal types from a runtime library. To work around this problem: this function prepends a hidden typedef declaration into scope 'typedef int OpaqueTypeName;' The translationāgenerated code is expected to include the runtime library's headers to have the real type declarations.
Synopsis
Declared in <SageIII/sageInterface/sageBuilder.h>
[[visibility]]
SgType*
buildOpaqueType(
std::string const type_name,
SgScopeStatement* scope);
Return Value
This class represents the base class for all types.
Parameters
Name |
Description |
scope |
This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.). |
Created with MrDocs