Re: [PATCH] D17239: Sema: typo correct both sides of binary expression

2016-02-23 Thread Richard Trieu via cfe-commits
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)'

[PATCH] D17239: Sema: typo correct both sides of binary expression

2016-02-12 Thread Saleem Abdulrasool via cfe-commits
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,