summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-05-14 23:14:37 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-05-14 23:14:37 +0000
commitf6d49c36b2d23e468654cc9d307c865e5f9621c5 (patch)
tree50481c92328c21ade2d963a83a47d1868d09c993 /clang/include/clang-c
parentbecce11112f65f0de12ece4fa6fe6435f72b7d3e (diff)
downloadbcm5719-llvm-f6d49c36b2d23e468654cc9d307c865e5f9621c5.tar.gz
bcm5719-llvm-f6d49c36b2d23e468654cc9d307c865e5f9621c5.zip
[liblang] Introduce clang_getModuleForFile, which given a CXFile header file, returns the module that contains it, if one exists.
llvm-svn: 208822
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Index.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 87b1f432fa5..f8cbb9be6c6 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 26
+#define CINDEX_VERSION_MINOR 27
#define CINDEX_VERSION_ENCODE(major, minor) ( \
((major) * 10000) \
@@ -3587,6 +3587,12 @@ typedef void *CXModule;
CINDEX_LINKAGE CXModule clang_Cursor_getModule(CXCursor C);
/**
+ * \brief Given a CXFile header file, return the module that contains it, if one
+ * exists.
+ */
+CINDEX_LINKAGE CXModule clang_getModuleForFile(CXTranslationUnit, CXFile);
+
+/**
* \param Module a module object.
*
* \returns the module file where the provided module object came from.
OpenPOWER on IntegriCloud