[clang] [clang]: support std::meta::info for primitive types (PR #190356)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 5 13:24:20 PDT 2026
================
@@ -6158,6 +6085,9 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D,
if (getLangOpts().OpenCL && ASTTy->isSamplerT())
return;
+ if (getLangOpts().Reflection && ASTTy->isMetaInfoType())
----------------
efriedma-quic wrote:
I think we might still want to express this as a `clang::Linkage` or `clang::GVALinkage`. We express various linkage-related constraints there that aren't formal language linkage, but are closely related in terms of how the compiler reasons about them. This lets all parts of the compiler that reason about how variables are defined or accessed produce the same conclusions.
https://github.com/llvm/llvm-project/pull/190356
More information about the cfe-commits
mailing list