Documentation ¶
Overview ¶
Package transpiler handles the conversion between the Clang AST and the Go AST.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllocationSizeNode ¶
GetAllocationSizeNode returns the node that, if evaluated, would return the size (in bytes) of a memory allocation operation. For example:
(int *)malloc(sizeof(int))
Would return the node that represents the "sizeof(int)".
If the node does not represent an allocation operation (such as calling malloc, calloc, realloc, etc.) then nil is returned.
In the case of calloc() it will return a new BinaryExpr that multiplies both arguments.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.