diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2013-05-09 16:44:02 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-05-09 16:44:02 +0000 |
| commit | 5cd4c41422b8d65a08e0ec007743d7a0ae72ec27 (patch) | |
| tree | f84f1004c6cf8ea0d13b6e15cd76b24d31dad495 /lib/AST/CommentCommandTraits.cpp | |
| parent | 0332e0a1bb8f96c83cfbbbe90a3708a85f409f5e (diff) | |
| download | clang-5cd4c41422b8d65a08e0ec007743d7a0ae72ec27.tar.gz clang-5cd4c41422b8d65a08e0ec007743d7a0ae72ec27.tar.bz2 clang-5cd4c41422b8d65a08e0ec007743d7a0ae72ec27.tar.xz | |
[doc parsing]: So, in this patch, single character
'commands' will not go through typo fixit logic,
preserving the old behavior (no typo, no diagnostics).
// rdar://12381408
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/CommentCommandTraits.cpp')
| -rw-r--r-- | lib/AST/CommentCommandTraits.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/AST/CommentCommandTraits.cpp b/lib/AST/CommentCommandTraits.cpp index 2b5e624fb7..dc4744a53c 100644 --- a/lib/AST/CommentCommandTraits.cpp +++ b/lib/AST/CommentCommandTraits.cpp @@ -49,10 +49,6 @@ HelperTypoCorrectCommandInfo(SmallVectorImpl<const CommandInfo *> &BestCommand, const unsigned MaxEditDistance = 1; unsigned BestEditDistance = MaxEditDistance + 1; StringRef Name = Command->Name; - // Don't attempt trying to typo fix single character commands. - // \t and \n are very common - if (Name.size() <= 1) - return; unsigned MinPossibleEditDistance = abs((int)Name.size() - (int)Typo.size()); if (MinPossibleEditDistance > 0 && |
