summaryrefslogtreecommitdiffstats
path: root/clang/include
diff options
context:
space:
mode:
Diffstat (limited to 'clang/include')
-rw-r--r--clang/include/clang-c/Index.h13
-rw-r--r--clang/include/clang/Basic/Version.h2
2 files changed, 14 insertions, 1 deletions
diff --git a/clang/include/clang-c/Index.h b/clang/include/clang-c/Index.h
index 68028de7e7d..2a9dd0f5a18 100644
--- a/clang/include/clang-c/Index.h
+++ b/clang/include/clang-c/Index.h
@@ -1238,6 +1238,19 @@ void clang_disposeCodeCompleteResults(CXCodeCompleteResults *Results);
* @}
*/
+
+/**
+ * \defgroup CINDEX_MISC Miscellaneous utility functions
+ *
+ * @{
+ */
+
+CINDEX_LINKAGE const char *clang_getClangVersion();
+
+/**
+ * @}
+ */
+
/**
* @}
*/
diff --git a/clang/include/clang/Basic/Version.h b/clang/include/clang/Basic/Version.h
index b9441f6e858..7e856e9a995 100644
--- a/clang/include/clang/Basic/Version.h
+++ b/clang/include/clang/Basic/Version.h
@@ -65,7 +65,7 @@ namespace clang {
/// \brief Retrieves a string representing the complete clang version,
/// which includes the clang version number, the repository version,
/// and the vendor tag.
- llvm::StringRef getClangFullVendorVersion();
+ const char *getClangFullVendorVersion();
}
#endif // LLVM_CLANG_BASIC_VERSION_H
OpenPOWER on IntegriCloud