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
Indexer Class Reference
Inheritance diagram for Indexer:
Inheritance graph
[legend]
Collaboration diagram for Indexer:
Collaboration graph
[legend]

Public Member Functions

 Indexer (const std::string &fileName, const std::vector< std::string > &exclude, Storage &storage, 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< Indexer >
unsigned int visitChildren (const Cursor &top)
 visit an AST

Member Function Documentation

CXChildVisitResult Indexer::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< Indexer >.


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