<div>I'm looking at a test failure of c-index-api-test.m on Windows, and I've run into a problem I don't know how to easily fix.</div>
<div> </div>
<div>In the function Selector::getAsString function in IdentifierTable.cpp at line 330:</div>
<div> </div>
<div>    return II->getName().str() + ":";<br><br clear="all">On Windows, at least, this isn't working as expected.  I think it's because a tempory string created gets destructed before the return completes, causing the resulting string pointer to point to garbage, resulting in garbage for the identifier name in the index output.</div>

<div></div>
<div> </div>
<div>If someone more knowlegeable about it could take a look at it, I'd appreciate it.</div>
<div> </div>
<div>Note that if you need to run it on windows, you'll need some CIndex changes I'm working on, but haven't completed yet, so let me know if you need them.</div>
<div> </div>
<div>-John</div>
<div><br>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com">John.Thompson.JTSoftware@gmail.com</a><br><br></div>