getPointerInfo: Get information about a libclang pointer type

View source: R/pointerUtils.R

getPointerInfoR Documentation

Get information about a libclang pointer type

Description

These functions compute information about a pointer CXType.

Usage

getPointerInfo(type)
getPointerDepth(type, kind = getTypeKind(type))

Arguments

type

the CXType object being queried

kind

the kind of the type obtained by type$kind or getTypeKind(type)

Value

getPointerInfo returns a list with two elements:

depth

the number of indirections for the pointer to a non-pointer type, i.e. the number of * in the corresponding C declaration.

baseType

the type of the element ultimately being pointed to

Author(s)

Duncan Temple Lang

References

libclang http://clang.llvm.org/doxygen/group__CINDEX.html


omegahat/RClangSimple documentation built on April 25, 2024, 4:18 a.m.