[Interest] Tricks to improve moc performance?

Thiago Macieira thiago.macieira at intel.com
Fri Dec 6 18:53:02 CET 2019


On Friday, 6 December 2019 01:52:52 PST Giuseppe D'Angelo via Interest wrote:
> Sorry, not the code generated by moc -- the code generated by the
> 
> compiler/linker. See e.g. here:
> > https://codereview.qt-project.org/c/qt/qtbase/+/152423

it also enables the "private member never used' warning in Clang: if it can 
see the definition of all functions in a class, it can tell whether none of 
them accessed a given member.

If your moc's output in a separate translation unit, then neither had all 
member functions.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel System Software Products





More information about the Interest mailing list