summaryrefslogtreecommitdiff
path: root/include/clang-c
diff options
context:
space:
mode:
authorStefanus Du Toit <stefanus.du.toit@intel.com>2013-08-08 17:48:14 +0000
committerStefanus Du Toit <stefanus.du.toit@intel.com>2013-08-08 17:48:14 +0000
commitad0d5707463cd7875e1ffd50dacd3f900d185aa1 (patch)
treea0000d36a12796f4fe0256925f82e999bd2c21a7 /include/clang-c
parentf3db6835d15c9d0f6345d78c1569e730dfdbb93e (diff)
downloadclang-ad0d5707463cd7875e1ffd50dacd3f900d185aa1.tar.gz
clang-ad0d5707463cd7875e1ffd50dacd3f900d185aa1.tar.bz2
clang-ad0d5707463cd7875e1ffd50dacd3f900d185aa1.tar.xz
Add clang_Location_isFromMainFile() to libclang.
Also bump the minor version number and update libclang.exports. Reviewed by: Dmitri Gribenko, Doug Gregor git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c')
-rw-r--r--include/clang-c/Index.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h
index 1adaa48615..51b1a8c2ee 100644
--- a/include/clang-c/Index.h
+++ b/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);