]> granicus.if.org Git - clang/commit
Introduce a simple cache for unqualified typo corrections, so that we
authorDouglas Gregor <dgregor@apple.com>
Wed, 20 Oct 2010 01:32:02 +0000 (01:32 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 20 Oct 2010 01:32:02 +0000 (01:32 +0000)
commit3eedbb06dd35b021bb614250585d4a6a5b7936e7
treebf2c95fac51e66e5e61333e11cda651fa6206621
parentb4226ff0e47484c46afe7c32122db0b341aabb51
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
include/clang/Sema/Sema.h
lib/Sema/SemaLookup.cpp
test/SemaObjC/super.m