Commit b7c025a5 authored by Nikolai Kosjar's avatar Nikolai Kosjar

Clang: Respect QT_NO_*KEYWORDS in qt5-qobjectdefs-injected.h

Change-Id: I299db813c13f273a40e447c5fdde8ff8757480ba
Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
parent 5d51bd93
......@@ -30,16 +30,24 @@
#define QT_NO_META_MACROS
#define signals public __attribute__((annotate("qt_signal")))
#define slots __attribute__((annotate("qt_slot")))
#define Q_SIGNALS signals
#define Q_SLOTS slots
#if defined(QT_NO_KEYWORDS)
# define QT_NO_EMIT
#else
# ifndef QT_NO_SIGNALS_SLOTS_KEYWORDS
# define signals public __attribute__((annotate("qt_signal")))
# define slots __attribute__((annotate("qt_slot")))
# endif
#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_SLOT __attribute__((annotate("qt_slot")))
# define Q_PRIVATE_SLOT(d, signature)
#define Q_PRIVATE_SLOT(d, signature)
#define Q_EMIT
#define emit
#ifndef QT_NO_EMIT
# define emit
#endif
#define Q_CLASSINFO(name, value)
#define Q_PLUGIN_METADATA(x)
#define Q_INTERFACES(x)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment