[Development] Coding convention for private includes
Sean Harmer
sean.harmer at kdab.com
Fri Jan 20 15:55:00 CET 2017
Hi,
Just a query about the coding convention around inclusion of private headers
as specified at:
https://wiki.qt.io/Coding_Conventions#Including_headers
It states:
If you need to include private headers, be careful. Use the following syntax,
irrespective of which module or directory whatever_p.h is in.
#include <private/whatever_p.h>
The issue is that this could lead to collisions. Is it OK to use:
#include <QtModule/private/whatever_p.h>
?
Cheers,
Sean
--
Dr Sean Harmer | sean.harmer at kdab.com | Managing Director UK
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. UK +44 (0)1625 809908, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
More information about the Development
mailing list