[clang] Fix/172072 auto function param (PR #172092)

via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 13 13:24:19 PST 2025


================
@@ -0,0 +1,14 @@
+// Test case for auto function parameter reported as CXType_Auto
+// This test verifies that auto parameters in function declarations
+// are properly reported as CXType_Auto in the libclang C API
+// See issue #172072
+
+// RUN: c-index-test -test-type %s | FileCheck %s
+
+// Function with auto parameter
+int bar(auto p) {
+  return p;
+}
+
----------------
Serafean wrote:

There should also be a test for contrained `auto`. 

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


More information about the cfe-commits mailing list