This revision was automatically updated to reflect the committed changes.
Closed by commit rG7df3c71b508b: [clang] Fix 2 bugs with parenthesized
aggregate initialization (authored by ayzhao).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146465/new/
rsmith accepted this revision.
rsmith added a comment.
This revision is now accepted and ready to land.
LGTM, thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146465/new/
https://reviews.llvm.org/D146465
__
ayzhao updated this revision to Diff 509160.
ayzhao marked an inline comment as done.
ayzhao added a comment.
fix stray whitespace change
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146465/new/
https://reviews.llvm.org/D146465
Files:
clang/lib
ayzhao marked 2 inline comments as done.
ayzhao added inline comments.
Comment at: clang/lib/Sema/SemaExprCXX.cpp:1582-1596
+ MultiExprArg ExprsToPass;
+ if (Exprs.size() == 1 && isa(Exprs[0])) {
+// C++20 [expr.static.cast]p4:
+// An expression E can be explicitly co
ayzhao updated this revision to Diff 509158.
ayzhao added a comment.
use ParenListExpr and fix getSubExprAsWritten(...)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146465/new/
https://reviews.llvm.org/D146465
Files:
clang/lib/AST/Expr.cpp
cl
rsmith added inline comments.
Comment at: clang/lib/Sema/SemaExprCXX.cpp:1582-1596
+ MultiExprArg ExprsToPass;
+ if (Exprs.size() == 1 && isa(Exprs[0])) {
+// C++20 [expr.static.cast]p4:
+// An expression E can be explicitly converted to a type T...if T is an
+//
ayzhao added inline comments.
Comment at: clang/lib/Sema/SemaExprCXX.cpp:1582-1596
+ MultiExprArg ExprsToPass;
+ if (Exprs.size() == 1 && isa(Exprs[0])) {
+// C++20 [expr.static.cast]p4:
+// An expression E can be explicitly converted to a type T...if T is an
+//
rsmith added inline comments.
Comment at: clang/lib/Sema/SemaExprCXX.cpp:1582-1596
+ MultiExprArg ExprsToPass;
+ if (Exprs.size() == 1 && isa(Exprs[0])) {
+// C++20 [expr.static.cast]p4:
+// An expression E can be explicitly converted to a type T...if T is an
+//
ayzhao updated this revision to Diff 506755.
ayzhao added a comment.
remove extra semicolon
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146465/new/
https://reviews.llvm.org/D146465
Files:
clang/lib/Sema/SemaExprCXX.cpp
clang/lib/Sema/SemaIni
ayzhao updated this revision to Diff 506754.
ayzhao added a comment.
clean up test
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146465/new/
https://reviews.llvm.org/D146465
Files:
clang/lib/Sema/SemaExprCXX.cpp
clang/lib/Sema/SemaInit.cpp
c
ayzhao created this revision.
Herald added a project: All.
ayzhao requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
- Fix an issue where temporaries initialized via parenthesized aggregate
initialization don't get destroyed.
- Fix an issue w
11 matches
Mail list logo