[LLVMbugs] [Bug 6813] New: fix-it hints broken
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Apr 9 19:07:18 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=6813
Summary: fix-it hints broken
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
A few fix-it tests are failing. The problem is that 'clang -cc1 -fixit' doesn't
emit any output at all when there are additional errors in the file which fixit
can't fix. Because the tests are written to run clang -fixit | clang -Werror,
an empty output from -fixit will pass. (I'm assuming the tests are written
correctly and am working on a patch to change the behaviour of the -fixit
flag.)
In the mean time, we've accumulated the 3 broken tests:
1. test/FixIt/fixit-errors.c. The fix-it from 'get_origin->x' to
'get_origin()->x' is missing entirely. Note that this breakage would have been
caught if that line had an 'expected-note' on it.
2. test/FixIt/fixit-pmem.cpp. This test generates four errors with four fix-it
hints, but one of which is diagnosed as unfixable. Why?
3. test/FixIt/typo.m. Right in the middle, on line 61, the use of undeclared
identifier error on 'NSstring' is emitted with a did you mean 'NSString', but
no fix-it hint shows up. Why not? It shows up for other ones.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list