aboutsummaryrefslogtreecommitdiff
path: root/include/clang-c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-26 22:47:49 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-26 22:47:49 +0000
commite858e667c14ce4a9df5a4bbae770a0a3a3c8723e (patch)
treec90137a5944cf218d836524ad4b99018c5009269 /include/clang-c
parent888d34566a4de6097896863a2f6660ed1537ddb9 (diff)
[libclang] Introduce clang_Module_getASTFile function that returns the module file where a module object came from.
rdar://13743084 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang-c')
-rw-r--r--include/clang-c/Index.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/clang-c/Index.h b/include/clang-c/Index.h
index 37072a7658..d8c37ebd70 100644
--- a/include/clang-c/Index.h
+++ b/include/clang-c/Index.h
@@ -3467,6 +3467,13 @@ CINDEX_LINKAGE CXModule clang_Cursor_getModule(CXCursor C);
/**
* \param Module a module object.
*
+ * \returns the module file where the provided module object came from.
+ */
+CINDEX_LINKAGE CXFile clang_Module_getASTFile(CXModule Module);
+
+/**
+ * \param Module a module object.
+ *
* \returns the parent of a sub-module or NULL if the given module is top-level,
* e.g. for 'std.vector' it will return the 'std' module.
*/