diff options
author | Stefanus Du Toit <stefanus.du.toit@intel.com> | 2013-08-08 17:48:14 +0000 |
---|---|---|
committer | Stefanus Du Toit <stefanus.du.toit@intel.com> | 2013-08-08 17:48:14 +0000 |
commit | db51c630ad491b41531a3788b2db4585adc6ffcd (patch) | |
tree | 1e4204143ea03da938ad25f2b51d1d7bb06d442f /clang/include/clang-c | |
parent | 3a9fa9ed0fa8697ba2dbcd44a4901ca3c3050d57 (diff) | |
download | bcm5719-llvm-db51c630ad491b41531a3788b2db4585adc6ffcd.tar.gz bcm5719-llvm-db51c630ad491b41531a3788b2db4585adc6ffcd.zip |
Add clang_Location_isFromMainFile() to libclang.
Also bump the minor version number and update libclang.exports.
Reviewed by: Dmitri Gribenko, Doug Gregor
llvm-svn: 187994
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 1adaa486158..51b1a8c2eef 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 19 +#define CINDEX_VERSION_MINOR 20 #define CINDEX_VERSION_ENCODE(major, minor) ( \ ((major) * 10000) \ @@ -414,6 +414,12 @@ CINDEX_LINKAGE CXSourceLocation clang_getLocationForOffset(CXTranslationUnit tu, CINDEX_LINKAGE int clang_Location_isInSystemHeader(CXSourceLocation location); /** + * \brief Returns non-zero if the given source location is in the main file of + * the corresponding translation unit. + */ +CINDEX_LINKAGE int clang_Location_isFromMainFile(CXSourceLocation location); + +/** * \brief Retrieve a NULL (invalid) source range. */ CINDEX_LINKAGE CXSourceRange clang_getNullRange(void); |