clang-tags
C/C++ source code indexing tool based on libclang
 All Classes Functions Variables Typedefs Groups Pages
Classes | Public Member Functions | List of all members
LibClang::Index Class Reference

Set of translation units. More...

#include <index.hxx>

Classes

struct  Index_

Public Member Functions

 Index ()
 default constructor
TranslationUnit parse (int argc, char const *const *const argv) const
 Create a translation unit from a command-line.
TranslationUnit parse (const std::vector< std::string > &args) const
 Create a translation unit from a command-line.

Detailed Description

Set of translation units.

This is a proxy for libclang's CXIndex type

Member Function Documentation

TranslationUnit LibClang::Index::parse ( int  argc,
char const *const *const  argv 
) const

Create a translation unit from a command-line.

Return the translation unit for a given source file and the provided command-line arguments which would be passed to the compiler.

Parameters
argcThe number of command-line arguments
argvA C-style array of command-line arguments
Returns
The corresponfing TranslationUnit object
TranslationUnit LibClang::Index::parse ( const std::vector< std::string > &  args) const

Create a translation unit from a command-line.

Return the translation unit for a given source file and the provided command-line arguments which would be passed to the compiler.

Parameters
argsA vector of command-line arguments
Returns
The corresponfing TranslationUnit object

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