diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-04-12 17:06:51 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-04-12 17:06:51 +0000 |
commit | 4522f63e00fa6f1276b1d29763a9a4f46f46b6a1 (patch) | |
tree | 346cb5a5387646b55d1df6a07a18209567d2f73d /include/clang-c | |
parent | 3bbffd549c76dfeb3c8d7c73860736a6523cde92 (diff) |
[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!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c')
-rw-r--r-- | include/clang-c/Index.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h index 42641df110..3da42ab6b5 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 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); |