clang API Documentation

Typedefs | Functions
Remapping functions
libclang: C Interface to Clang
Collaboration diagram for Remapping functions:

Typedefs

typedef void * CXRemapping
 A remapping of original source files and their translated files.

Functions

CINDEX_LINKAGE CXRemapping clang_getRemappings (const char *path)
 Retrieve a remapping.
CINDEX_LINKAGE CXRemapping clang_getRemappingsFromFileList (const char **filePaths, unsigned numFiles)
 Retrieve a remapping.
CINDEX_LINKAGE unsigned clang_remap_getNumFiles (CXRemapping)
 Determine the number of remappings.
CINDEX_LINKAGE void clang_remap_getFilenames (CXRemapping, unsigned index, CXString *original, CXString *transformed)
 Get the original and the associated filename from the remapping.
CINDEX_LINKAGE void clang_remap_dispose (CXRemapping)
 Dispose the remapping.

Typedef Documentation

typedef void* CXRemapping

A remapping of original source files and their translated files.

Definition at line 4983 of file Index.h.


Function Documentation

Retrieve a remapping.

Parameters:
paththe path that contains metadata about remappings.
Returns:
the requested remapping. This remapping must be freed via a call to clang_remap_dispose(). Can return NULL if an error occurred.
CINDEX_LINKAGE CXRemapping clang_getRemappingsFromFileList ( const char **  filePaths,
unsigned  numFiles 
)

Retrieve a remapping.

Parameters:
filePathspointer to an array of file paths containing remapping info.
numFilesnumber of file paths.
Returns:
the requested remapping. This remapping must be freed via a call to clang_remap_dispose(). Can return NULL if an error occurred.

Dispose the remapping.

CINDEX_LINKAGE void clang_remap_getFilenames ( CXRemapping  ,
unsigned  index,
CXString original,
CXString transformed 
)

Get the original and the associated filename from the remapping.

Parameters:
originalIf non-NULL, will be set to the original filename.
transformedIf non-NULL, will be set to the filename that the original is associated with.

Determine the number of remappings.