[PATCH] D80733: [AST][RecoveryExpr] Build RecoveryExpr for "undef_var" cases.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 2 07:08:52 PDT 2020
hokein added inline comments.
================
Comment at: clang/lib/Sema/SemaExprCXX.cpp:8310
+ // to RecoveryExpr.
+ // FIXME: we lose source locations for RecoveryExpr, as TypoExpr doesn't
+ // track source locations.
----------------
sammccall wrote:
> This seems reasonably straightforward to fix - there shouldn't be a lot of TypoExprs so we can just add a member. Worth doing I think.
yeah, agree. Will address it in a followup.
================
Comment at: clang/lib/Sema/SemaExprCXX.cpp:8314
+ using Base = TreeTransform<TyposReplace>;
+ TyposReplace(Sema &SemaRef) : Base(SemaRef) {}
+ ExprResult TransformTypoExpr(TypoExpr *E) {
----------------
sammccall wrote:
> Can't you just write this as `: TreeTransform(SemaRef) {}`, and drop the using?
yes.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80733/new/
https://reviews.llvm.org/D80733
More information about the cfe-commits
mailing list