[llvm-branch-commits] [clang] release/22.x: [C++20] [Modules] Add VisiblePromoted module ownership kind (#189903) (PR #192885)
Chuanqi Xu via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Apr 23 18:57:28 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,
----------------
ChuanqiXu9 wrote:
See the following discussion, we won't consume the value with a compiler in different commit.
https://github.com/llvm/llvm-project/pull/192885
More information about the llvm-branch-commits
mailing list