getFileName | R Documentation |
These functions operate on CXCursor objects and allow us to query the type and content of the generic cursor.
A CXCursor object is a reference to a C data structure.
While it is an opaque data type, we can treat it as a list
to access some of its attributes/elements.
The $
operator applied to a CXCursor
allows us to access the "kind", "type", "language",
"linkage", and "cxxSpecifier".
getFileName(x, ...)
getFileTime(SFile)
x , SFile |
a |
... |
additional arguments for methods |
A string (character vector of length 1) giving the name of the file.
Duncan Temple Lang
libclang http://clang.llvm.org/doxygen/group__CINDEX.html
getLocation
f = system.file("exampleCode", "fib.c", package = "RCIndex")
tu = createTU(f)
getFileName(tu)
getFileName(as(tu, "CXCursor"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.