logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Clang::Cursor - Clang cursor class

Author

       Alessandro Ghedini <alexbio@cpan.org>

Description

       A "Clang::Cursor" represents an element in the abstract syntax tree of a translation unit.

Methods

kind()
       Retrieve the Clang::CursorKind of the given cursor.

   type()
       Retrieve the Clang::Type of the entity referenced by the given cursor.

   spelling()
       Retrieve the name for the entity referenced by the given cursor.

   num_arguments()
       Retrieve the number of arguments referenced by the given cursor.

   displayname()
       Return the display name for the entity referenced by the given cursor.

   children()
       Retrieve a list of the children of the given cursor. The children are "Clang::Cursor" objects too.

   is_pure_virtual()
       Determine whether the given cursor kind represents a pure virtual method.

   is_virtual()
       Determine whether the given cursor kind represents a virtual method.

   location()
       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.

   access_specifier()
       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.

Name

       Clang::Cursor - Clang cursor class

Version

       version 0.09

See Also