[Development] QMetaMethod in Qt 6
thiago.macieira at intel.com
Thu May 28 16:57:53 CEST 2020
On Thursday, 28 May 2020 02:06:01 PDT Shawn Rutledge wrote:
> > On 2020 May 27, at 17:50, Thiago Macieira <thiago.macieira at intel.com>
> > wrote:>
> > On Wednesday, 27 May 2020 03:42:19 PDT Oswald Buddenhagen wrote:
> >>> this is not something we can subject our users to.
> >> orly? kde had been doing that for quite a while.
> > And I fixed QtCore to do the same.
> > The only reason not to include the moc output in your .cpp is if you don't
> > have one (a header-only class whose only non-inline methods are the moc-
> > generated ones). Otherwise, #include your mocs.
> The reason is to speed up compilation, right? Is there another reason?
Aside from that benefit and the reason for this thread, it enables some
warnings in Clang that aren't otherwise. If it can see all members of a class,
including non-inline, it can tell if you forgot to use or initialise some of
Plus the benefit of more inlining, as there's more the compiler can see.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel System Software Products
More information about the Development