rtrieu added a comment.
While this change does add the intended error messages, it won't produce a
correct a typo-corrected AST. For instance:
void run(int sss) {
sss = ? : ;
}
Will produce an empty function body:
`-FunctionDecl 0x7082ef0 line:1:6 run 'void (int)'
compnerd created this revision.
compnerd added a reviewer: rtrieu.
compnerd added a subscriber: cfe-commits.
When parsing a ternary expression, we would parse the middle and the last
components of the expression. If there was a typo in both, we would only
run the typo correction once. Normally,