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
LibClang::UnsavedFiles Class Reference

Set of in-memory buffers storing up-to-date contents for unsaved files. More...

#include <unsavedFiles.hxx>

Public Member Functions

void add (const std::string sourcePath, const std::string bufferPath)
 Store updated content for a source file.
unsigned int size () const
 Get the size of the unsaved files set.
CXUnsavedFile * begin ()
 Get a C-like array of unsaved files.

Detailed Description

Set of in-memory buffers storing up-to-date contents for unsaved files.

This class essentially is a vector of libclang's CXUnsavedFile buffers.

Member Function Documentation

void LibClang::UnsavedFiles::add ( const std::string  sourcePath,
const std::string  bufferPath 
)
inline

Store updated content for a source file.

Add an unsaved file to the list, associating it with updated contents read from a temporary filesystem path (potentially a pipe or in-memory filesystem).

Parameters
sourcePathpath to the source file
bufferPathpath to the up-to-date contents
CXUnsavedFile* LibClang::UnsavedFiles::begin ( )
inline

Get a C-like array of unsaved files.

Returns
C pointer to the first unsaved file
unsigned int LibClang::UnsavedFiles::size ( ) const
inline

Get the size of the unsaved files set.

Returns
number of unsaved files

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