| commit | b8499f09faa1cf1e0a941f089974b86c345025ac | [log] [tgz] |
|---|---|---|
| author | Kaelyn Takata <rikka@google.com> | Tue May 05 19:17:03 2015 +0000 |
| committer | Kaelyn Takata <rikka@google.com> | Tue May 05 19:17:03 2015 +0000 |
| tree | 980304ad7d402887735bd4bb60dcc0a7764cfe5a | |
| parent | 336d90b61bcc3862ac1fc016834340b6ef79cc4b [diff] |
Allow TransformTypos to ignore corrections to a specified VarDecl. This is needed to prevent a TypoExpr from being corrected to a variable when the TypoExpr is a subexpression of that variable's initializer. Also exclude more keywords from the correction candidate pool when the subsequent token is .* or ->* since keywords like "new" or "return" aren't valid on the left side of those operators. Fixes PR23140. llvm-svn: 236519