Clang::Cursor - Clang cursor class
version 0.09
A Clang::Cursor represents an element in the abstract syntax tree of a translation unit.
Clang::Cursor
Retrieve the Clang::CursorKind of the given cursor.
Retrieve the Clang::Type of the entity referenced by the given cursor.
Retrieve the name for the entity referenced by the given cursor.
Retrieve the number of arguments referenced by the given cursor.
Return the display name for the entity referenced by the given cursor.
Retrieve a list of the children of the given cursor. The children are Clang::Cursor objects too.
Determine whether the given cursor kind represents a pure virtual method.
Determine whether the given cursor kind represents a virtual method.
Retrieve the location of the given cursor. This function returns five values: a string containing the source file name, an integer containing the initial line number, an integer containing the initial column number, an integer containing the final line number, and another integer containing the final column number.
Retrieve the access of the given cursor. This can return the following values: invalid, public, protected or private. Note that this only works for C++ code, it will return invalid for C functions.
invalid
public
protected
private
Alessandro Ghedini <alexbio@cpan.org>
Copyright 2012 Alessandro Ghedini.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Clang, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Clang
CPAN shell
perl -MCPAN -e shell install Clang
For more information on module installation, please visit the detailed CPAN module installation guide.