clang-tags
C/C++ source code indexing tool based on libclang
 All Classes Functions Variables Typedefs Groups Pages
Public Member Functions | List of all members
FindDefinition Class Reference
Inheritance diagram for FindDefinition:
Inheritance graph
[legend]
Collaboration diagram for FindDefinition:
Collaboration graph
[legend]

Public Member Functions

 FindDefinition (const LibClang::SourceLocation &targetLocation, std::ostream &cout)
CXChildVisitResult visit (LibClang::Cursor cursor, LibClang::Cursor parent)
 visit a cursor in the AST and decide what to do next
- Public Member Functions inherited from LibClang::Visitor< FindDefinition >
unsigned int visitChildren (const Cursor &top)
 visit an AST

Member Function Documentation

CXChildVisitResult FindDefinition::visit ( LibClang::Cursor  cursor,
LibClang::Cursor  parent 
)
inlinevirtual

visit a cursor in the AST and decide what to do next

This method visits a Cursor in the AST, and returns a code indicating which action should be taken next:

  • CXChildVisit_Recurse: continue recursively visiting the AST
  • CXChildVisit_Continue: continue visiting the AST, but don't recurse into the current cursors children
  • CXChildVisit_Break: stop traversing the AST
Parameters
cursor
parent
Returns
a code indicating what to do next

Implements LibClang::Visitor< FindDefinition >.


The documentation for this class was generated from the following file: