Introduce CXString type and associated functions clang_getCString() and clang_disposeString().
This abstraction will help us manage string memory for complex names that cross the C++/C boundary (e.g. ObjC methods, selectors). This patch also uses it in clang_getTranslationUnitSpelling (which I'm not sure is necessary). Will investigate later...since the extra malloc() can't hurt (for now).
Patch by John Thompson.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86562 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/CIndex/CIndex.exports b/tools/CIndex/CIndex.exports
index 302324b..df94c6a 100644
--- a/tools/CIndex/CIndex.exports
+++ b/tools/CIndex/CIndex.exports
@@ -3,6 +3,7 @@
_clang_createTranslationUnit
_clang_createTranslationUnitFromSourceFile
_clang_disposeIndex
+_clang_disposeString
_clang_disposeTranslationUnit
_clang_getCompletionChunkCompletionString
_clang_getCompletionChunkKind
@@ -17,6 +18,7 @@
_clang_getCursorSource
_clang_getCursorSourceFile
_clang_getCursorSpelling
+_clang_getCString
_clang_getDeclColumn
_clang_getDeclLine
_clang_getDeclSource