[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 15 05:54:32 PDT 2024
================
@@ -107,6 +107,39 @@ namespace std {
using std::operator""s;
using std::operator""sv;
+namespace default_args {
+ using IntArray = int[];
+ const int *defaultparam1(const int &def1 [[clang::lifetimebound]] = 0); // #def1
----------------
Xazax-hun wrote:
Ah, my bad. Totally missed that.
https://github.com/llvm/llvm-project/pull/112047
More information about the cfe-commits
mailing list