diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-08-16 00:26:19 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-08-16 00:26:19 +0000 |
| commit | ac3997eb52022555af90d9be49e7e7fa4afa2672 (patch) | |
| tree | 540660dd5f27bcb9f2294ceab2f3aa8b4148f6b1 /clang/include/clang-c | |
| parent | 41a55ad0a5c71af70dfe8b7a4f934e2063a52f06 (diff) | |
| download | bcm5719-llvm-ac3997eb52022555af90d9be49e7e7fa4afa2672.tar.gz bcm5719-llvm-ac3997eb52022555af90d9be49e7e7fa4afa2672.zip | |
[libclang] Introduce clang_File_isEqual for comparing CXFile handles.
llvm-svn: 215796
Diffstat (limited to 'clang/include/clang-c')
| -rw-r--r-- | clang/include/clang-c/Index.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h index 8b2d3782d35..7b8d4cf934c 100644 --- a/clang/include/clang-c/Index.h +++ b/clang/include/clang-c/Index.h @@ -32,7 +32,7 @@ * compatible, thus CINDEX_VERSION_MAJOR is expected to remain stable. */ #define CINDEX_VERSION_MAJOR 0 -#define CINDEX_VERSION_MINOR 27 +#define CINDEX_VERSION_MINOR 28 #define CINDEX_VERSION_ENCODE(major, minor) ( \ ((major) * 10000) \ @@ -336,6 +336,12 @@ CINDEX_LINKAGE CXFile clang_getFile(CXTranslationUnit tu, const char *file_name); /** + * \brief Returns non-zero if the \c file1 and \c file2 point to the same file, + * or they are both NULL. + */ +CINDEX_LINKAGE int clang_File_isEqual(CXFile file1, CXFile file2); + +/** * @} */ |

