clang-tags
C/C++ source code indexing tool based on libclang
|
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. |
Set of in-memory buffers storing up-to-date contents for unsaved files.
This class essentially is a vector of libclang's CXUnsavedFile
buffers.
|
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).
sourcePath | path to the source file |
bufferPath | path to the up-to-date contents |
|
inline |
Get a C-like array of unsaved files.
|
inline |
Get the size of the unsaved files set.