llvm-project/clang/test/FixIt
Douglas Gregor 29d907de03 When we run into an error parsing or type-checking the left-hand side
of a binary expression, continue on and parse the right-hand side of
the binary expression anyway, but don't call the semantic actions to
type-check. Previously, we would see the error and then, effectively,
skip tokens until the end of the statement. 

The result should be more useful recovery, both in the normal case
(we'll actually see errors beyond the first one in a statement), but
it also helps code completion do a much better job, because we do
"real" code completion on the right-hand side of an invalid binary
expression rather than completing with the recovery completion. For
example, given

  x = p->y

if there is no variable named "x", we can still complete after the p->
as a member expression. Along the recovery path, we would have
completed after the "->" as if we were in an expression context, which
is mostly useless.

llvm-svn: 114225
2010-09-17 22:25:06 +00:00
..
fixit-c90.c Teach clang -fixit to modify files in-place, or -fixit=suffix to create new 2010-04-24 01:30:46 +00:00
fixit-cxx0x.cpp Teach clang -fixit to modify files in-place, or -fixit=suffix to create new 2010-04-24 01:30:46 +00:00
fixit-errors-1.c Teach clang -fixit to modify files in-place, or -fixit=suffix to create new 2010-04-24 01:30:46 +00:00
fixit-errors.c Teach clang -fixit to modify files in-place, or -fixit=suffix to create new 2010-04-24 01:30:46 +00:00
fixit-objc-message.m Implement automatic bracket insertion for Objective-C class message 2010-09-16 01:51:54 +00:00
fixit-objc.m Improve recovery when there is a stray ']' or ')' before the ';' at 2010-09-07 15:23:11 +00:00
fixit-pmem.cpp Teach clang -fixit to modify files in-place, or -fixit=suffix to create new 2010-04-24 01:30:46 +00:00
fixit-suffix.c Teach clang -fixit to modify files in-place, or -fixit=suffix to create new 2010-04-24 01:30:46 +00:00
fixit-unrecoverable.c Teach clang -fixit to modify files in-place, or -fixit=suffix to create new 2010-04-24 01:30:46 +00:00
fixit-unrecoverable.cpp When we run into an error parsing or type-checking the left-hand side 2010-09-17 22:25:06 +00:00
fixit.c Improve recovery when a comma is missing between enumerators in an 2010-09-07 14:51:08 +00:00
fixit.cpp add a fixit when 'main' does ot return 'int'; review welcome 2010-09-08 00:31:13 +00:00
no-typo.c Introduce -f{no-}spell-checking options to enable/disable 2010-07-09 17:35:33 +00:00
typo-crash.m Fix a crash with ill-formed code within a method in an ill-formed 2010-02-04 23:42:48 +00:00
typo.c Teach clang -fixit to modify files in-place, or -fixit=suffix to create new 2010-04-24 01:30:46 +00:00
typo.cpp Fix broken testcase 2010-06-29 19:17:14 +00:00
typo.m Tweak test for non-64-bit Darwin 2010-05-31 14:58:57 +00:00