[PATCH] D25206: [Parser] Correct typo after lambda capture initializer is parsed

Akira Hatanaka via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 21 17:40:05 PDT 2016


ahatanak added inline comments.


================
Comment at: lib/Parse/ParseExprCXX.cpp:951
           Init = ParseInitializer();
+          Init = Actions.CorrectDelayedTyposInExpr(Init.get());
 
----------------
mehdi_amini wrote:
> What happens when there is no typo correction to apply?
If there are no typos, it just returns the same Expr. If there are typos but no corrections can be applied, it returns ExprError.


https://reviews.llvm.org/D25206





More information about the cfe-commits mailing list