Re: [Development] What's Q_PRIMITIVE_TYPE for?

2020-11-11 Thread Thiago Macieira
On Wednesday, 11 November 2020 10:14:26 PST Giuseppe D'Angelo via Development wrote: > Hi, > > On 11/11/2020 18:14, Thiago Macieira wrote: > > So my recommendation is: > > 1) deprecate Q_PRIMITIVE_TYPE and rename to Q_TRIVIAL_TYPE > > 2)*not* use memset-to-zero construction anywhere > > > >

Re: [Development] What's Q_PRIMITIVE_TYPE for?

2020-11-11 Thread Giuseppe D'Angelo via Development
Hi, On 11/11/2020 18:14, Thiago Macieira wrote: So my recommendation is: 1) deprecate Q_PRIMITIVE_TYPE and rename to Q_TRIVIAL_TYPE 2)*not* use memset-to-zero construction anywhere #2 implies changing QPodArrayOps, which does use memset, to use a loop calling the default constructor. Two o

Re: [Development] Policy for backwards-compatibility of non-C++ assets

2020-11-11 Thread Thiago Macieira
On Wednesday, 11 November 2020 06:08:41 PST Jason McDonald wrote: > 1. Are our customers entitled to expect that features of non-C++ parts of > Qt won't disappear without first being flagged as deprecated, and > documented as deprecated, for a reasonable period, in line with the policy > for the Qt

Re: [Development] Building additional components with Conan for Qt 6

2020-11-11 Thread Iikka Eklund
Hi, updates for qt3d, qtimageformats and qtnetworkauth Additional libraries are available now. Building the conan packages for iOS and Android should work now as well. The matching conan profiles are installed when you select iOS or Android base Qt 6.0.0 binary package. There is still work ong

Re: [Development] What's Q_PRIMITIVE_TYPE for?

2020-11-11 Thread Thiago Macieira
On Monday, 9 November 2020 08:16:51 PST Giuseppe D'Angelo via Development wrote: > >> The only other place that cares about primitive types is QMetaType, which > >> uses this information to set the "NeedsConstruction" or > >> "NeedsDestruction" type flags. But these type flags are never used > >>

Re: [Development] Qt 6 co-installability with Qt 5

2020-11-11 Thread Thiago Macieira
On Monday, 9 November 2020 09:57:13 PST Lisandro Damián Nicanor Pérez Meyer wrote: > Seriously, we have discussed this before, and we kind of agreed that > user-facing applications should either be really backwards compatible > or should have the tool suffixed with the qt version. Whatever other >

[Development] Policy for backwards-compatibility of non-C++ assets

2020-11-11 Thread Jason McDonald
Greetings once more. Recently I've been doing some testing of the new cmake-based configure on Linux. (It would be awesome if someone can do the same for other platforms.) Perhaps naively, I started out by running configure with each command-line flag listed by the old version of "configure -help

[Development] Where are the QtQA pre-build and post-build tests used?

2020-11-11 Thread Jason McDonald
Does anyone know whether the tests in qtqa/tests/prebuild and qtqa/tests/postbuild are used anywhere? I'm assuming that these are not used in CI, as I found that one of them doesn't compile on Linux and eveidently hasn't for some time. I filed a bug for that, but it occurs to me that if the tests

Re: [Development] What's Q_PRIMITIVE_TYPE for?

2020-11-11 Thread Andrei Golubev
I'd stay away from classification using std:: type traits, as we want something that cannot automatically be inferred from compilers: in the general case, a compiler cannot know that default construction = memset to 0 (e.g. out of line constructor); and certainly they cannot know about relocatabili

Re: [Development] What's Q_PRIMITIVE_TYPE for?

2020-11-11 Thread Giuseppe D'Angelo via Development
Il 10/11/20 20:00, Giuseppe D'Angelo via Development ha scritto: Yes, sure. But also something like QStringView, which is (char16_t*, qsizetype), is a primitive type (assuming all-0 representation for a null pointer). Just to insist on this: there are no guarantees coming from the Standard tha