[llvm-branch-commits] [clang] release/22.x: [C++20] [Modules] Add VisiblePromoted module ownership kind (#189903) (PR #192885)

Aaron Ballman via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Apr 21 08:33:55 PDT 2026


================
@@ -228,6 +228,14 @@ class alignas(8) Decl {
     /// module is imported.
     VisibleWhenImported,
 
+    /// This declaration has an owning module, and is not visible to the
+    /// current TU but we promoted it to be visible for various reasons,
+    /// e.g., we have the same declaration in the current TU but we'd
+    /// like to avoid parsing it again.
+    ///
+    /// The vibility should be never be serialized.
+    VisiblePromoted,
----------------
AaronBallman wrote:

This does not change ABI because the enumeration has a fixed underlying type.

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


More information about the llvm-branch-commits mailing list