Forward declare the Objective C types for the documentation.

Required for clang doc parsing.

Change-Id: Ia00717377e9524efae1266d1a01b2ef0e064b11e
Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
bb10
Olivier Goffart 2016-03-16 11:53:22 +01:00 committed by Olivier Goffart (Woboq GmbH)
parent 1151d8e5e3
commit 74dacaf1e3
5 changed files with 10 additions and 10 deletions

View File

@ -48,9 +48,9 @@
#include <QtCore/qpair.h>
#include <QtCore/qglobal.h>
#ifdef Q_OS_MAC
#if defined(Q_OS_MAC) || defined(Q_QDOC)
Q_FORWARD_DECLARE_CF_TYPE(CFURL);
# ifdef __OBJC__
# if defined(__OBJC__) || defined(Q_QDOC)
Q_FORWARD_DECLARE_OBJC_CLASS(NSURL);
# endif
#endif

View File

@ -55,9 +55,9 @@ typedef struct _GUID
#endif
#endif
#ifdef Q_OS_DARWIN
#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
Q_FORWARD_DECLARE_CF_TYPE(CFUUID);
# ifdef __OBJC__
# if defined(__OBJC__) || defined(Q_QDOC)
Q_FORWARD_DECLARE_OBJC_CLASS(NSUUID);
# endif
#endif

View File

@ -56,9 +56,9 @@
#error qbytearray.h must be included before any header file that defines truncate
#endif
#ifdef Q_OS_MAC
#if defined(Q_OS_MAC) || defined(Q_QDOC)
Q_FORWARD_DECLARE_CF_TYPE(CFData);
# ifdef __OBJC__
# if defined(__OBJC__) || defined(Q_QDOC)
Q_FORWARD_DECLARE_OBJC_CLASS(NSData);
# endif
#endif

View File

@ -46,9 +46,9 @@
#include <limits>
#ifdef Q_OS_MAC
#if defined(Q_OS_MAC) || defined(Q_QDOC)
Q_FORWARD_DECLARE_CF_TYPE(CFDate);
# ifdef __OBJC__
# if defined(__OBJC__) || defined(Q_QDOC)
Q_FORWARD_DECLARE_OBJC_CLASS(NSDate);
# endif
#endif

View File

@ -68,9 +68,9 @@ namespace std
#error qstring.h must be included before any header file that defines truncate
#endif
#ifdef Q_OS_MAC
#if defined(Q_OS_MAC) || defined(Q_QDOC)
Q_FORWARD_DECLARE_CF_TYPE(CFString);
# ifdef __OBJC__
# if defined(__OBJC__) || defined(Q_QDOC)
Q_FORWARD_DECLARE_OBJC_CLASS(NSString);
# endif
#endif