[clang] [clang] Add formal linkage to textual AST dump (PR #194600)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 28 06:06:55 PDT 2026


================
@@ -0,0 +1,276 @@
+// RUN: %clang_cc1 -ast-dump %s | FileCheck --match-full-lines %s
+
+namespace std {
+// CHECK: |-NamespaceDecl {{.*}} std external-linkage
+template <typename T>
+struct initializer_list {
+  const T* begin;
+  const T* end;
+};
+} // namespace std
+
+namespace {
+// CHECK: |-NamespaceDecl {{.*}} external-linkage
----------------
AaronBallman wrote:

Add a FIXME for this one, this should not have external linkage.

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


More information about the cfe-commits mailing list