mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
FileCheck: Don't print "possibly intended match" line if it would match the
"scanning from here" one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98971 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2f36fe4380
commit
7a68e0df0d
@ -401,11 +401,12 @@ void Pattern::PrintFailureInfo(const SourceMgr &SM, StringRef Buffer,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Best != StringRef::npos && BestQuality < 50) {
|
// Print the "possible intended match here" line if we found something
|
||||||
// Print the "possible intended match here" line if we found something
|
// reasonable and not equal to what we showed in the "scanning from here"
|
||||||
// reasonable.
|
// line.
|
||||||
SM.PrintMessage(SMLoc::getFromPointer(Buffer.data() + Best),
|
if (Best && Best != StringRef::npos && BestQuality < 50) {
|
||||||
"possible intended match here", "note");
|
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
|
// 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.
|
// failed, as it can be hard to spot simple one character differences.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user