forked from qt-creator/qt-creator
Clang: Respect QT_NO_*KEYWORDS in qt5-qobjectdefs-injected.h
Change-Id: I299db813c13f273a40e447c5fdde8ff8757480ba Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
@@ -30,16 +30,24 @@
|
|||||||
|
|
||||||
#define QT_NO_META_MACROS
|
#define QT_NO_META_MACROS
|
||||||
|
|
||||||
|
#if defined(QT_NO_KEYWORDS)
|
||||||
|
# define QT_NO_EMIT
|
||||||
|
#else
|
||||||
|
# ifndef QT_NO_SIGNALS_SLOTS_KEYWORDS
|
||||||
# define signals public __attribute__((annotate("qt_signal")))
|
# define signals public __attribute__((annotate("qt_signal")))
|
||||||
# define slots __attribute__((annotate("qt_slot")))
|
# define slots __attribute__((annotate("qt_slot")))
|
||||||
#define Q_SIGNALS signals
|
# endif
|
||||||
#define Q_SLOTS slots
|
#endif
|
||||||
|
#define Q_SIGNALS public __attribute__((annotate("qt_signal")))
|
||||||
|
#define Q_SLOTS slots __attribute__((annotate("qt_slot")))
|
||||||
#define Q_SIGNAL __attribute__((annotate("qt_signal")))
|
#define Q_SIGNAL __attribute__((annotate("qt_signal")))
|
||||||
#define Q_SLOT __attribute__((annotate("qt_slot")))
|
#define Q_SLOT __attribute__((annotate("qt_slot")))
|
||||||
#define Q_PRIVATE_SLOT(d, signature)
|
#define Q_PRIVATE_SLOT(d, signature)
|
||||||
|
|
||||||
#define Q_EMIT
|
#define Q_EMIT
|
||||||
|
#ifndef QT_NO_EMIT
|
||||||
# define emit
|
# define emit
|
||||||
|
#endif
|
||||||
#define Q_CLASSINFO(name, value)
|
#define Q_CLASSINFO(name, value)
|
||||||
#define Q_PLUGIN_METADATA(x)
|
#define Q_PLUGIN_METADATA(x)
|
||||||
#define Q_INTERFACES(x)
|
#define Q_INTERFACES(x)
|
||||||
|
|||||||
Reference in New Issue
Block a user