[clang] [clang][AST] fix ast-print of `extern <lang>` with >=2 declarators (PR #93131)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu May 23 09:08:40 PDT 2024
================
@@ -0,0 +1,27 @@
+// RUN: %clang_cc1 -ast-print %s -o - | FileCheck %s
+
+// CHECK: extern "C" int printf(const char *, ...);
+extern "C" int printf(const char *...);
+
+// CHECK: extern "C++" {
----------------
erichkeane wrote:
@AaronBallman : What do we think of this? This isn't a true representation of the original code, but I'm not sure what work we have to ensure this is done with commas?
https://github.com/llvm/llvm-project/pull/93131
More information about the cfe-commits
mailing list