]> granicus.if.org Git - clang/commit
Add a new flag, -fspell-checking-limit=<number> to control how many times we'll do...
authorNick Lewycky <nicholas@mxc.ca>
Tue, 16 Dec 2014 21:39:02 +0000 (21:39 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 16 Dec 2014 21:39:02 +0000 (21:39 +0000)
commitfbb501f48819ca22911a5de22bd8f4d0a93e53d0
tree75513abec4e19e840e739ec66047fa9485bf41e1
parentbb387fbfa8e49a94e94ab5348ff729ec941e8f32
Add a new flag, -fspell-checking-limit=<number> to control how many times we'll do spell checking. Note that spell checking will change the produced AST, so we don't automatically change this value when someone sets -ferror-limit=. With this, merge test typo-correction-pt2.cpp into typo-correction.cpp.

Remove Sema::UnqualifiedTyposCorrected, a cache of corrected typos. It would only cache typo corrections that didn't provide ValidateCandidate of which there were few left, and it had a bug when we had the same identifier spelled wrong twice. See the last two tests in typo-correction.cpp for cases this fires.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224375 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticOptions.def
include/clang/Basic/DiagnosticOptions.h
include/clang/Driver/CC1Options.td
include/clang/Driver/Options.td
include/clang/Sema/Sema.h
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Sema/SemaLookup.cpp
test/CXX/class.access/class.friend/p11.cpp
test/SemaCXX/typo-correction-pt2.cpp [deleted file]
test/SemaCXX/typo-correction.cpp