clang
9.0.0
|
Classes | |
struct | CXFileUniqueID |
Uniquely identifies a CXFile, that refers to the same underlying file, across an indexing session. More... | |
Typedefs | |
typedef void * | CXFile |
A particular source file that is part of a translation unit. More... | |
Functions | |
CINDEX_LINKAGE CXString | clang_getFileName (CXFile SFile) |
Retrieve the complete file and path name of the given file. More... | |
CINDEX_LINKAGE time_t | clang_getFileTime (CXFile SFile) |
Retrieve the last modification time of the given file. More... | |
CINDEX_LINKAGE int | clang_getFileUniqueID (CXFile file, CXFileUniqueID *outID) |
Retrieve the unique ID for the given file . More... | |
CINDEX_LINKAGE unsigned | clang_isFileMultipleIncludeGuarded (CXTranslationUnit tu, CXFile file) |
Determine whether the given header is guarded against multiple inclusions, either with the conventional #ifndef/#define/#endif macro guards or with #pragma once. More... | |
CINDEX_LINKAGE CXFile | clang_getFile (CXTranslationUnit tu, const char *file_name) |
Retrieve a file handle within the given translation unit. More... | |
CINDEX_LINKAGE const char * | clang_getFileContents (CXTranslationUnit tu, CXFile file, size_t *size) |
Retrieve the buffer associated with the given file. More... | |
CINDEX_LINKAGE int | clang_File_isEqual (CXFile file1, CXFile file2) |
Returns non-zero if the file1 and file2 point to the same file, or they are both NULL. More... | |
CINDEX_LINKAGE CXString | clang_File_tryGetRealPathName (CXFile file) |
Returns the real path name of file . More... | |
typedef void* CXFile |
CINDEX_LINKAGE int clang_File_isEqual | ( | CXFile | file1, |
CXFile | file2 | ||
) |
Returns non-zero if the file1
and file2
point to the same file, or they are both NULL.
CINDEX_LINKAGE CXString clang_File_tryGetRealPathName | ( | CXFile | file | ) |
Returns the real path name of file
.
An empty string may be returned. Use clang_getFileName()
in that case.
CINDEX_LINKAGE CXFile clang_getFile | ( | CXTranslationUnit | tu, |
const char * | file_name | ||
) |
Retrieve a file handle within the given translation unit.
tu | the translation unit |
file_name | the name of the file. |
tu
, or a NULL file handle if the file was not a part of this translation unit. CINDEX_LINKAGE const char* clang_getFileContents | ( | CXTranslationUnit | tu, |
CXFile | file, | ||
size_t * | size | ||
) |
Retrieve the buffer associated with the given file.
tu | the translation unit |
file | the file for which to retrieve the buffer. |
size | [out] if non-NULL, will be set to the size of the buffer. |
file
, or a NULL pointer when the file is not loaded. CINDEX_LINKAGE CXString clang_getFileName | ( | CXFile | SFile | ) |
Retrieve the complete file and path name of the given file.
CINDEX_LINKAGE time_t clang_getFileTime | ( | CXFile | SFile | ) |
Retrieve the last modification time of the given file.
CINDEX_LINKAGE int clang_getFileUniqueID | ( | CXFile | file, |
CXFileUniqueID * | outID | ||
) |
Retrieve the unique ID for the given file
.
file | the file to get the ID for. |
outID | stores the returned CXFileUniqueID. |
CINDEX_LINKAGE unsigned clang_isFileMultipleIncludeGuarded | ( | CXTranslationUnit | tu, |
CXFile | file | ||
) |
Determine whether the given header is guarded against multiple inclusions, either with the conventional #ifndef/#define/#endif macro guards or with #pragma once.