[clang] [Clang] FunctionEffects: Correctly navigate through array types in FunctionEffectsRef::get(). (PR #121525)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 13 09:39:29 PST 2025


================
@@ -246,6 +246,17 @@ void PTMFTester::convert() [[clang::nonblocking]]
 	(this->*mConvertFunc)();
 }
 
+// Allow implicit conversion from array to pointer.
+void nb14(unsigned idx) [[clang::nonblocking]]
+{
+	using FP = void (*)() [[clang::nonblocking]];
+	using FPArray = FP[2];
----------------
Sirraide wrote:

Can you add some tests for multidimensional arrays and VLAs too?

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


More information about the cfe-commits mailing list