getQualifiers | R Documentation |
This function allows us to query a cursor's annotations
such as const
.
getQualifiers(cur)
cur |
the |
A named logical vector, currently with elements nameds static
and const
.
Duncan Temple Lang
libclang http://clang.llvm.org/doxygen/group__CINDEX.html
parseTU
f = system.file("exampleCode", "const.c", package = "RCIndex")
tu = createTU(f)
top = as(tu, "CXCursor")
getQualifiers(top[[1]][[1]]) # const char * x
getQualifiers(top[[1]][[1]]) # const char * x
getQualifiers(top[[2]][[1]]) # const char * const x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.