commit | 3eedbb06dd35b021bb614250585d4a6a5b7936e7 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Wed Oct 20 01:32:02 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Wed Oct 20 01:32:02 2010 +0000 |
tree | bf2c95fac51e66e5e61333e11cda651fa6206621 | |
parent | b4226ff0e47484c46afe7c32122db0b341aabb51 [diff] |
Introduce a simple cache for unqualified typo corrections, so that we don't repeatedly loop through identifiers, correcting the same typo'd identifier over and over again. We still bail out after 20 typo corrections, but this should help improve performance in the common case where we're typo-correcting because the user forgot to include a header. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116901 91177308-0d34-0410-b5e6-96231b3b80d8