summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-12 17:06:51 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-12 17:06:51 +0000
commit25f7af1aeb2122befeda021a050d5fb7eb53c3ef (patch)
treed0fcb027c12629480758f30171b155821e405d1c /clang/include/clang-c
parentff10ed1706742ae15c1f4e697f70c346e9b8ed03 (diff)
downloadbcm5719-llvm-25f7af1aeb2122befeda021a050d5fb7eb53c3ef.tar.gz
bcm5719-llvm-25f7af1aeb2122befeda021a050d5fb7eb53c3ef.zip
[libclang] Introduce clang_Location_isInSystemHeader to check if a location resides in a system header.
This is a modified patch provided from MikoĊ‚aj Siedlarek! llvm-svn: 179384
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 42641df110e..3da42ab6b54 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 16
+#define CINDEX_VERSION_MINOR 17
#define CINDEX_VERSION_ENCODE(major, minor) ( \
((major) * 10000) \
@@ -409,6 +409,11 @@ CINDEX_LINKAGE CXSourceLocation clang_getLocationForOffset(CXTranslationUnit tu,
unsigned offset);
/**
+ * \brief Returns non-zero if the given source location is in a system header.
+ */
+CINDEX_LINKAGE int clang_Location_isInSystemHeader(CXSourceLocation location);
+
+/**
* \brief Retrieve a NULL (invalid) source range.
*/
CINDEX_LINKAGE CXSourceRange clang_getNullRange(void);
OpenPOWER on IntegriCloud