File indexing completed on 2024-06-23 04:35:58
0001 /* 0002 SPDX-FileCopyrightText: 2016 The Qt Company Ltd. <https://www.qt.io/licensing/> 0003 0004 SPDX-License-Identifier: GPL-3.0-only WITH Qt-GPL-exception-1.0 OR LicenseRef-Qt-Commercial 0005 */ 0006 0007 // Include qobjectdefs.h from Qt ... 0008 #include_next <qobjectdefs.h> 0009 0010 #pragma clang diagnostic push 0011 #pragma clang diagnostic ignored "-Wmacro-redefined" 0012 0013 // ...and redefine macros for tagging signals/slots 0014 #ifdef signals 0015 # define signals public __attribute__((annotate("qt_signal"))) 0016 #endif 0017 0018 #ifdef slots 0019 # define slots __attribute__((annotate("qt_slot"))) 0020 #endif 0021 0022 #ifdef Q_SIGNALS 0023 # define Q_SIGNALS public __attribute__((annotate("qt_signal"))) 0024 #endif 0025 0026 #ifdef Q_SLOTS 0027 # define Q_SLOTS __attribute__((annotate("qt_slot"))) 0028 #endif 0029 0030 #ifdef Q_SIGNAL 0031 # define Q_SIGNAL __attribute__((annotate("qt_signal"))) 0032 #endif 0033 0034 #ifdef Q_SLOT 0035 # define Q_SLOT __attribute__((annotate("qt_slot"))) 0036 #endif 0037 0038 #pragma clang diagnostic pop