children: Get the CXCursor children of a CXCursor object

View source: R/parseTU.R

childrenR Documentation

Get the CXCursor children of a CXCursor object

Description

A CXCursor object in the C parser is an object that can represent different types of elements in the parse tree such as statements, expressions, variables, function calls, etc. A cursor can have sub-children which provide the information about their parent. For example, a function call cursor would have the name of the function being called and the arguments in the call.

Usage

 
children(top, types = integer())
getChildren(x)

Arguments

top, x

the cursor or an object that can be coerced to a cursor, e.g. translation unit

types

the set of CXCursorKind values of the type of cursors we want.

Author(s)

Duncan Temple Lang

References

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

See Also

CXCursor-class


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