diff options
| author | Kaelyn Uhrain <rikka@google.com> | 2012-02-14 18:56:48 +0000 |
|---|---|---|
| committer | Kaelyn Uhrain <rikka@google.com> | 2012-02-14 18:56:48 +0000 |
| commit | 63aae82bb12bbbe9028e597fb77e40fa8d348c12 (patch) | |
| tree | 2e945cc45d660e343f4ee31364a3e451156a853d /lib/CodeGen/CGExpr.cpp | |
| parent | 9d665044b8887dd96dbc3bf5b50d8ebcc93505c6 (diff) | |
| download | clang-63aae82bb12bbbe9028e597fb77e40fa8d348c12.tar.gz clang-63aae82bb12bbbe9028e597fb77e40fa8d348c12.tar.bz2 clang-63aae82bb12bbbe9028e597fb77e40fa8d348c12.tar.xz | |
Use several weighted factors to determine typo candidate viablity.
Replace the simple Levenshtein edit distance for typo correction
candidates--and the hacky way adding namespace qualifiers would affect
the edit distance--with a synthetic "edit distance" comprised of several
factors and their relative weights. This also allows the typo correction
callback object to convey more information about the viability of a
correction candidate than simply viable or not viable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150495 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
