[Development] PSA: symbol visibility and export macros need to be re-thought for clang/libc++

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Fri Apr 4 21:03:35 CEST 2025


Il 04/04/25 20:15, Thiago Macieira ha scritto:
> 
> The QMetaType registration process takes type names into account to determine
> if two types are the same or not. That may be the right thing for the majority
> of types, but it's not for everything. For example, if two libraries have two
> different "struct Config" and register them, QMetaType will conclude they are
> the same. We could probably add a bit of smartness here by comparing the size,
> but that's still a good chance that it would be wrong.
> 
> Though we should definitely not do a name comparison for types in unnamed
> namespaces (types whose name start with "{anonymous}::" or "(anonymous
> namespace)::"

Likely related:

https://lists.llvm.org/pipermail/llvm-dev/2014-June/073465.html

My 2 c,

-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - Trusted Software Excellence

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4244 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20250404/f99b9bba/attachment.bin>


More information about the Development mailing list