[PATCH] D119646: [clang] Allow consteval functions in default arguments

2022-06-06 Thread Chuanqi Xu via Phabricator via cfe-commits
ChuanqiXu updated this revision to Diff 434680. ChuanqiXu added a comment. Address comments. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119646/new/ https://reviews.llvm.org/D119646 Files: clang/docs/ReleaseNotes.rst clang/lib/AST/Decl.cpp clang/lib/Sema/SemaExpr.cpp

[PATCH] D119646: [clang] Allow consteval functions in default arguments

2022-06-06 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. LGTM with some small fixes to the release note. Thanks @ChuanqiXu! Comment at: clang/docs/ReleaseNotes.rst:166 type. +- Clang will allow constexpr function in default argument. This fixes + `Issue 48230

[PATCH] D119646: [clang] Allow consteval functions in default arguments

2022-06-05 Thread Chuanqi Xu via Phabricator via cfe-commits
ChuanqiXu updated this revision to Diff 434373. ChuanqiXu added a comment. Add release notes. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119646/new/ https://reviews.llvm.org/D119646 Files: clang/docs/ReleaseNotes.rst clang/lib/AST/Decl.cpp clang/lib/Sema/SemaExpr.cpp

[PATCH] D119646: [clang] Allow consteval functions in default arguments

2022-06-05 Thread Chuanqi Xu via Phabricator via cfe-commits
ChuanqiXu commandeered this revision. ChuanqiXu edited reviewers, added: Izaron; removed: ChuanqiXu. ChuanqiXu added a comment. Given this is close to complete and @Izaron is not active recently, let me take this over. The authority would be remained, of course. Repository: rG LLVM Github

[PATCH] D119646: [clang] Allow consteval functions in default arguments

2022-06-01 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. LGTM as well, but please add a release note about the bug fix (and reference the issue it closes). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119646/new/

[PATCH] D119646: [clang] Allow consteval functions in default arguments

2022-05-31 Thread Erich Keane via Phabricator via cfe-commits
erichkeane accepted this revision. erichkeane added a comment. This seems innocuous enough, and seems to better reflect the intent of the standard, so LGTM. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D119646/new/

[PATCH] D119646: [clang] Allow consteval functions in default arguments

2022-05-30 Thread Chuanqi Xu via Phabricator via cfe-commits
ChuanqiXu accepted this revision as: ChuanqiXu. ChuanqiXu added a comment. This revision is now accepted and ready to land. This change LGTM and I prefer the change than D74130 since this one is much more comprehensible. Repository: rG LLVM Github Monorepo

[PATCH] D119646: [clang] Allow consteval functions in default arguments

2022-02-13 Thread Evgeny Shulgin via Phabricator via cfe-commits
Izaron added a comment. In D119646#3317473 , @cor3ntin wrote: > There is also https://reviews.llvm.org/D74130 which tries to address the same > issue in a very different way. > I don't really understand the different approaches yet. Thanks! I spent

[PATCH] D119646: [clang] Allow consteval functions in default arguments

2022-02-13 Thread Corentin Jabot via Phabricator via cfe-commits
cor3ntin added a comment. There is also https://reviews.llvm.org/D74130 which tries to address the same issue in a very different way. I don't really understand the different approaches yet. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D119646: [clang] Allow consteval functions in default arguments

2022-02-12 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added inline comments. Comment at: clang/lib/AST/Decl.cpp:2816 if (auto *E = dyn_cast_or_null(Arg)) -return E->getSubExpr(); +if (!isa(E)) + return E->getSubExpr(); So what is happening here? I would still expect us to give the proper

[PATCH] D119646: [clang] Allow consteval functions in default arguments

2022-02-12 Thread Evgeny Shulgin via Phabricator via cfe-commits
Izaron created this revision. Izaron added reviewers: aaron.ballman, erichkeane, andreasfertig. Herald added a subscriber: kristof.beyls. Izaron requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. We should not mark a function as "referenced"