[PATCH] D80221: [AST][RecoveryExpr] Make DeduceAutoType fail if the auto is deduced from recovery exprs.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 19 09:49:19 PDT 2020
hokein marked an inline comment as done.
hokein added inline comments.
================
Comment at: clang/test/AST/ast-dump-recovery.cpp:182
+// Verified that the generated call operator is invalid.
+// CHECK: |-CXXMethodDecl {{.*}} invalid operator() 'auto () const -> auto'
using Escape = decltype([] { return undef(); }());
----------------
with this patch, we don't preserve the return stmt, so we only have the CXXRecordDecl for the lambda, and no `TypeAliasDecl ` node.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80221/new/
https://reviews.llvm.org/D80221
More information about the cfe-commits
mailing list