[clang] Make [[clang::lifetimebound]] work for expressions coming from default arguments (PR #112047)

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 15 06:08:57 PDT 2024


================
@@ -107,6 +107,39 @@ namespace std {
 using std::operator""s;
 using std::operator""sv;
 
+namespace default_args {
+  using IntArray = int[];
----------------
higher-performance wrote:

It's necessary for the usage syntax. I don't think `int[]{1, 2, 3}` would be legal.

https://github.com/llvm/llvm-project/pull/112047


More information about the cfe-commits mailing list