Forward declarations for platform specific types should also be done with Q_QDOC
The clang based qdoc need to be able to parse properly anything that is in #ifdef Q_QDOC The #if for the forward declararion now match the one in which it is used. Change-Id: Ia6cf84dd07a979b4e7aa8da764d9fb2fce74baa1 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
parent
b82707a7b6
commit
f7a0968da4
@ -42,7 +42,7 @@
|
||||
|
||||
#include <QtCore/qnamespace.h>
|
||||
|
||||
#if defined(Q_OS_DARWIN)
|
||||
#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
|
||||
struct CGPoint;
|
||||
#endif
|
||||
|
||||
|
@ -48,7 +48,7 @@
|
||||
#error qrect.h must be included before any header file that defines topLeft
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_DARWIN)
|
||||
#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
|
||||
struct CGRect;
|
||||
#endif
|
||||
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
#include <QtCore/qnamespace.h>
|
||||
|
||||
#if defined(Q_OS_DARWIN)
|
||||
#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
|
||||
struct CGSize;
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user