Ok, so I think updating the CXXScopeSpec in CorrectTypo is beyond my current clang-fu.  I've tried both<br><br>    if (SS && Result.getCorrectionSpecifier())<br>      SS->Adopt(NestedNameSpecifierLoc(Result.getCorrectionSpecifier(), NULL));<br>
<br>and<br><br>    if (SS && Result.getCorrectionSpecifier())<br>      SS->MakeTrivial(Context, Result.getCorrectionSpecifier(), SS->getRange());<br><br>just before returning the TypoCorrection from CorrectTypo @SemaLookup.cpp:3716 and both lead to a violent death; the former with a segfault within CXXScopeSpec::Adopt and the latter with an assertion failure about the source range in CXXScopeSpec::Extend (the same assertion is triggered if I replace SS->getRange() with SourceRange()).  Any ideas, suggestions, or comments?<br>
<br>And that isn't even touching the situations where CorrectTypo is called with a NULL CXXScopeSpec pointer in C++ code yet.  Sigh.<br><br>- Kaelyn<br><br><div class="gmail_quote">On Mon, Jun 20, 2011 at 10:14 AM, Kaelyn Uhrain <span dir="ltr"><<a href="mailto:rikka@google.com">rikka@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Managed to not reply to all... which is okay as the patch was against the clang git tree as of a couple weeks ago and recent changes causes a couple of minor merge conflicts.  Here's the patch based on the current git HEAD.<div>
<div></div><div class="h5"><br>
<br><div class="gmail_quote">On Mon, Jun 20, 2011 at 9:54 AM, Kaelyn Uhrain <span dir="ltr"><<a href="mailto:rikka@google.com" target="_blank">rikka@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Here ya go.  It has most of the smaller changes based on dgregor's most recent feedback.  It also makes CorrectTypo know when argument-dependent lookup is required and skips trying namespace qualifiers, which allows basic.lookup.argdep/p4.cpp to pass. The main pieces I'm still working on (within CorrectTypo at least) are improving the caching and updating the CXXScopeSpec if/when possible.  I also still need to remove the use of std::multimap, though you're welcome to benchmark it and alternatives. ;)<div>

<div></div><div><br>
<br><div class="gmail_quote">On Mon, Jun 20, 2011 at 9:37 AM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div class="gmail_quote">On Mon, Jun 20, 2011 at 9:35 AM, Kaelyn Uhrain <span dir="ltr"><<a href="mailto:rikka@google.com" target="_blank">rikka@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>Don't quite have it ready yet.  Being sick for much of last week didn't help...<br><br>I could post for submission my last patch + the smaller cleanups that I already have done and finish up the work as a second patch, so that folks can get started on the serialization, etc.</div>



</blockquote></div><br><div style="zoom:100%"></div></div><div>I'm just looking for a WIP patch that I can run with.</div>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>