summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2f36fe4)
raw | patch | inline | side by side (parent: 2f36fe4)
author | Daniel Dunbar <daniel@zuster.org> | |
Fri, 19 Mar 2010 18:07:43 +0000 (18:07 +0000) | ||
committer | Daniel Dunbar <daniel@zuster.org> | |
Fri, 19 Mar 2010 18:07:43 +0000 (18:07 +0000) |
"scanning from here" one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98971 91177308-0d34-0410-b5e6-96231b3b80d8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98971 91177308-0d34-0410-b5e6-96231b3b80d8
utils/FileCheck/FileCheck.cpp | patch | blob | history |
index 3c4742cc36fbed0cc26619ae93707cacf782fccc..c6a139275899f51a761c0c1f2c24af75fcf9d469 100644 (file)
}
}
- if (Best != StringRef::npos && BestQuality < 50) {
- // Print the "possible intended match here" line if we found something
- // reasonable.
- SM.PrintMessage(SMLoc::getFromPointer(Buffer.data() + Best),
- "possible intended match here", "note");
+ // Print the "possible intended match here" line if we found something
+ // reasonable and not equal to what we showed in the "scanning from here"
+ // line.
+ if (Best && Best != StringRef::npos && BestQuality < 50) {
+ SM.PrintMessage(SMLoc::getFromPointer(Buffer.data() + Best),
+ "possible intended match here", "note");
// FIXME: If we wanted to be really friendly we would show why the match
// failed, as it can be hard to spot simple one character differences.