[cfe-dev] Make namespace typo correction always deterministic

Kaelyn Uhrain rikka at google.com
Tue Jun 28 15:11:46 PDT 2011


Without this patch, if there are two different but valid namespace
qualifiers for reaching the same decl, which one was used was determined by
the (undefined) order the namespaces were checked for the identifer. This
patch adds a simple heuristic that keeps whichever version would come first
lexicographically.

Cheers,
Kaelyn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110628/7fe1a00d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ns-stability-fix.diff
Type: text/x-diff
Size: 737 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110628/7fe1a00d/attachment.diff>


More information about the cfe-dev mailing list