summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/HostInfo.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-22 22:59:26 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-22 22:59:26 +0000
commitfd29d886056e7477c565bad8ffae460e3b14625c (patch)
tree7e0a574aabd671d2615820f9bd23163fe3f917cf /clang/lib/Driver/HostInfo.cpp
parent180f1fe4ce89473b5e271ae2fced44d8423e8c06 (diff)
downloadbcm5719-llvm-fd29d886056e7477c565bad8ffae460e3b14625c.tar.gz
bcm5719-llvm-fd29d886056e7477c565bad8ffae460e3b14625c.zip
FileCheck, PR5239: Try to find the intended match on failures, but looking for a
good nearby fuzzy match. Frequently the input is nearly correct, and just showing the user the a nearby sensible match is enough to diagnose the problem. - The "fuzzyness" is pretty simple and arbitrary, but worked on my three test cases. If you encounter problems, or places you think FileCheck should have guessed but didn't, please add test cases to PR5239. For example, previously FileCheck would report this: -- t.cpp:21:55: error: expected string not found in input // CHECK: define void @_Z2f25f2_s1([[i64_i64_ty]] %a0) ^ <stdin>:19:30: note: scanning from here define void @_Z2f15f1_s1(%1) nounwind { ^ <stdin>:19:30: note: with variable "i64_i64_ty" equal to "%0" -- and now it also reports this: -- <stdin>:27:1: note: possible intended match here define void @_Z2f25f2_s1(%0) nounwind { ^ -- which makes it clear that the CHECK just has an extra ' %a0' in it, without having to check the input. llvm-svn: 89631
Diffstat (limited to 'clang/lib/Driver/HostInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud