clang_getFileContents

Retrieve the buffer associated with the given file.

\param tu the translation unit

\param file the file for which to retrieve the buffer.

\param size out if non-NULL, will be set to the size of the buffer.

\returns a pointer to the buffer in memory that holds the contents of \p file, or a NULL pointer when the file is not loaded.

extern (C)
const(char)*
clang_getFileContents

Meta