[cfe-dev] CIndex changes
John Thompson
john.thompson.jtsoftware at gmail.com
Tue Oct 27 14:51:31 PDT 2009
Thanks, Ted.
> I'm sorry I've been disconnected from this. What particular code were you
> looking at that returned a 'const char*' that referred to the buffer
> associated with a temporary std::string?
>
It's in clang_getTranslationUnitSpelling, clang_getDeclSpelling, and
clang_getCursorSpelling. The enclosed patch with my hacky work-around will
show the specific places.
I also moved getLocationFromCursor to fix a VC++ message about the return
type not being permitted inside an extern "C" {} block.
-John
--
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091027/99267eda/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cindex_strings.patch
Type: application/octet-stream
Size: 7663 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091027/99267eda/attachment.obj>
More information about the cfe-dev
mailing list