[PATCH] D81395: [AST][RecoveryExpr] Preserve the invalid "undef_var" initializer.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 8 07:38:21 PDT 2020
hokein created this revision.
hokein added a reviewer: sammccall.
Herald added a project: clang.
hokein marked an inline comment as done.
hokein added inline comments.
================
Comment at: clang/include/clang/Sema/Sema.h:3900
+ /// Rebuild the given Expr with the TypoExpr degraded to RecoveryExpr.
+ ExprResult rebuildTypoExprs(Expr *TypoExpr);
/// Attempts to produce a RecoveryExpr after some AST node cannot be created.
----------------
not quite happy with the naming, open for suggestions.
And don't invalidate the VarDecl if the type is known.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D81395
Files:
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/test/AST/ast-dump-recovery.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81395.269218.patch
Type: text/x-patch
Size: 4157 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200608/8eab3c2a/attachment-0001.bin>
More information about the cfe-commits
mailing list