https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106648

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #53478|0                           |1
        is obsolete|                            |
   Last reconfirmed|                            |2022-08-20
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 53483
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53483&action=edit
gcc13-pr106648.patch.xz

So far just lightly tested patch.

This handles did you mean hints using the Unicode UAX44-LM2 algorithm, but
doesn't offer fixits fot it (not sure if it is possible in libcpp) and doesn't
use spellcheck* stuff for fallback suggestions (the amount of strings and their
sizes are too huge to push them all into vector, but just walking all radix
tree nodes, computing current name as we go and at each codepoint (including
generated ones) compute Damerau-Levenshtein distance could work.  But
spellcheck.{cc,h} are in gcc/ ...

Reply via email to