<div dir="ltr">It's not obvious to me that this is actually appropriate as-is. Sema::CorrectTypo is a very complicated routine, and I don't think you're hooking it at the right level.  What you want isn't to completely take over typo correction; you want the ability to add typo correction candidates that aren't otherwise visible.  A much more focused callback would be both easier to implement correctly and give better results in cases where the builtin typo correction could come up with a better candidate.<div>
<br></div><div>-Eli</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 12, 2013 at 9:58 AM, Luke Zarko <span dir="ltr"><<a href="mailto:zarko@google.com" target="_blank">zarko@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ping; still looking for a reviewer. The patch still applies without problems.<br>
<br>
<a href="http://llvm-reviews.chandlerc.com/D1211" target="_blank">http://llvm-reviews.chandlerc.com/D1211</a><br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Aug 8, 2013 at 9:23 AM, Luke Zarko <<a href="mailto:zarko@google.com">zarko@google.com</a>> wrote:<br>
> Ping; still looking for someone familiar with typo<br>
> correction/unittests/ExternalSemaSource.<br>
><br>
> On Sat, Aug 3, 2013 at 6:22 PM, Luke Zarko <<a href="mailto:zarko@google.com">zarko@google.com</a>> wrote:<br>
>> Ping. Looking for someone familiar with typo<br>
>> correction/unittests/ExternalSemaSource.<br>
>><br>
>> On Tue, Jul 30, 2013 at 3:41 PM, Luke Zarko <<a href="mailto:zarko@google.com">zarko@google.com</a>> wrote:<br>
>>>   Ping/making sure that this still applies cleanly.<br>
>>><br>
>>>   To clarify, the difference between this and typo correction into PCH is that the calls for the latter are designed for a closed context ('fill a vector with all the namespaces you know about and return it to me'), whereas the former is designed for an open context ('I'll give you a qualified name and you tell me if it's something that exists').<br>

>>><br>
>>> Hi jdennett,<br>
>>><br>
>>> <a href="http://llvm-reviews.chandlerc.com/D1211" target="_blank">http://llvm-reviews.chandlerc.com/D1211</a><br>
>>><br>
>>> CHANGE SINCE LAST DIFF<br>
>>>   <a href="http://llvm-reviews.chandlerc.com/D1211?vs=3003&id=3083#toc" target="_blank">http://llvm-reviews.chandlerc.com/D1211?vs=3003&id=3083#toc</a><br>
>>><br>
>>> Files:<br>
>>>   include/clang/Sema/ExternalSemaSource.h<br>
>>>   include/clang/Sema/MultiplexExternalSemaSource.h<br>
>>>   lib/Sema/MultiplexExternalSemaSource.cpp<br>
>>>   lib/Sema/SemaLookup.cpp<br>
>>>   unittests/CMakeLists.txt<br>
>>>   unittests/Makefile<br>
>>>   unittests/Sema/CMakeLists.txt<br>
>>>   unittests/Sema/ExternalSemaSourceTest.cpp<br>
>>>   unittests/Sema/Makefile<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br></div>