forked from OSchip/llvm-project
29d907de03
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 |
||
---|---|---|
.. | ||
fixit-c90.c | ||
fixit-cxx0x.cpp | ||
fixit-errors-1.c | ||
fixit-errors.c | ||
fixit-objc-message.m | ||
fixit-objc.m | ||
fixit-pmem.cpp | ||
fixit-suffix.c | ||
fixit-unrecoverable.c | ||
fixit-unrecoverable.cpp | ||
fixit.c | ||
fixit.cpp | ||
no-typo.c | ||
typo-crash.m | ||
typo.c | ||
typo.cpp | ||
typo.m |