[Development] Announcing moc_combine

Marc Mutz marc.mutz at kdab.com
Mon May 30 10:19:38 CEST 2016


On Sunday 29 May 2016 18:05:07 Thiago Macieira wrote:
> I've just pushed a feature[1] to moc that makes it process multiple headers
> at  the same time, producing only one output file

Separate compilation is not how I would recommend to use moc-generated files. 
I'd recommend to always include the moc file in the corresponding cpp file. 
That gives the compiler the whole picture and enables better optimisation[1] 
and error checking[2,3].

Thanks,
Marc

[1] https://codereview.qt-project.org/152423
[2] https://codereview.qt-project.org/153309
[3] https://codereview.qt-project.org/153321

-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - Qt, C++ and OpenGL Experts



More information about the Development mailing list