Warning, /sdk/clazy/tests/old-style-connect/usingnamespace.qt6.moc_ is written in an unsupported language. File is not indexed.

0001 /****************************************************************************
0002 ** Meta object code from reading C++ file 'usingnamespace.cpp'
0003 **
0004 ** Created by: The Qt Meta Object Compiler version 68 (Qt 6.7.0)
0005 **
0006 ** WARNING! All changes made in this file will be lost!
0007 *****************************************************************************/
0008 
0009 #include <QtCore/qmetatype.h>
0010 
0011 #include <QtCore/qtmochelpers.h>
0012 
0013 #include <memory>
0014 
0015 #if !defined(Q_MOC_OUTPUT_REVISION)
0016 #error "The header file 'usingnamespace.cpp' doesn't include <QObject>."
0017 #elif Q_MOC_OUTPUT_REVISION != 68
0018 #error "This file was generated using the moc from 6.7.0. It"
0019 #error "cannot be used with the include files from this version of Qt."
0020 #error "(The moc has changed too much.)"
0021 #endif
0022 
0023 #ifndef Q_CONSTINIT
0024 #define Q_CONSTINIT
0025 #endif
0026 
0027 QT_WARNING_PUSH
0028 QT_WARNING_DISABLE_DEPRECATED
0029 QT_WARNING_DISABLE_GCC("-Wuseless-cast")
0030 namespace {
0031 
0032 #ifdef QT_MOC_HAS_STRINGDATA
0033 struct qt_meta_stringdata_CLASSFoo2SCOPEMyObjENDCLASS_t {};
0034 constexpr auto qt_meta_stringdata_CLASSFoo2SCOPEMyObjENDCLASS = QtMocHelpers::stringData(
0035     "Foo2::MyObj",
0036     "signal1",
0037     "",
0038     "slot1",
0039     "slot2"
0040 );
0041 #else  // !QT_MOC_HAS_STRINGDATA
0042 #error "qtmochelpers.h not found or too old."
0043 #endif // !QT_MOC_HAS_STRINGDATA
0044 } // unnamed namespace
0045 
0046 Q_CONSTINIT static const uint qt_meta_data_CLASSFoo2SCOPEMyObjENDCLASS[] = {
0047 
0048  // content:
0049       12,       // revision
0050        0,       // classname
0051        0,    0, // classinfo
0052        3,   14, // methods
0053        0,    0, // properties
0054        0,    0, // enums/sets
0055        0,    0, // constructors
0056        0,       // flags
0057        1,       // signalCount
0058 
0059  // signals: name, argc, parameters, tag, flags, initial metatype offsets
0060        1,    0,   32,    2, 0x06,    1 /* Public */,
0061 
0062  // slots: name, argc, parameters, tag, flags, initial metatype offsets
0063        3,    0,   33,    2, 0x0a,    2 /* Public */,
0064        4,    0,   34,    2, 0x0a,    3 /* Public */,
0065 
0066  // signals: parameters
0067     QMetaType::Void,
0068 
0069  // slots: parameters
0070     QMetaType::Void,
0071     QMetaType::Void,
0072 
0073        0        // eod
0074 };
0075 
0076 Q_CONSTINIT const QMetaObject Foo2::MyObj::staticMetaObject = { {
0077     QMetaObject::SuperData::link<QObject::staticMetaObject>(),
0078     qt_meta_stringdata_CLASSFoo2SCOPEMyObjENDCLASS.offsetsAndSizes,
0079     qt_meta_data_CLASSFoo2SCOPEMyObjENDCLASS,
0080     qt_static_metacall,
0081     nullptr,
0082     qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSFoo2SCOPEMyObjENDCLASS_t,
0083         // Q_OBJECT / Q_GADGET
0084         QtPrivate::TypeAndForceComplete<MyObj, std::true_type>,
0085         // method 'signal1'
0086         QtPrivate::TypeAndForceComplete<void, std::false_type>,
0087         // method 'slot1'
0088         QtPrivate::TypeAndForceComplete<void, std::false_type>,
0089         // method 'slot2'
0090         QtPrivate::TypeAndForceComplete<void, std::false_type>
0091     >,
0092     nullptr
0093 } };
0094 
0095 void Foo2::MyObj::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
0096 {
0097     if (_c == QMetaObject::InvokeMetaMethod) {
0098         auto *_t = static_cast<MyObj *>(_o);
0099         (void)_t;
0100         switch (_id) {
0101         case 0: _t->signal1(); break;
0102         case 1: _t->slot1(); break;
0103         case 2: _t->slot2(); break;
0104         default: ;
0105         }
0106     } else if (_c == QMetaObject::IndexOfMethod) {
0107         int *result = reinterpret_cast<int *>(_a[0]);
0108         {
0109             using _t = void (MyObj::*)();
0110             if (_t _q_method = &MyObj::signal1; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
0111                 *result = 0;
0112                 return;
0113             }
0114         }
0115     }
0116     (void)_a;
0117 }
0118 
0119 const QMetaObject *Foo2::MyObj::metaObject() const
0120 {
0121     return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
0122 }
0123 
0124 void *Foo2::MyObj::qt_metacast(const char *_clname)
0125 {
0126     if (!_clname) return nullptr;
0127     if (!strcmp(_clname, qt_meta_stringdata_CLASSFoo2SCOPEMyObjENDCLASS.stringdata0))
0128         return static_cast<void*>(this);
0129     return QObject::qt_metacast(_clname);
0130 }
0131 
0132 int Foo2::MyObj::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
0133 {
0134     _id = QObject::qt_metacall(_c, _id, _a);
0135     if (_id < 0)
0136         return _id;
0137     if (_c == QMetaObject::InvokeMetaMethod) {
0138         if (_id < 3)
0139             qt_static_metacall(this, _c, _id, _a);
0140         _id -= 3;
0141     } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
0142         if (_id < 3)
0143             *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
0144         _id -= 3;
0145     }
0146     return _id;
0147 }
0148 
0149 // SIGNAL 0
0150 void Foo2::MyObj::signal1()
0151 {
0152     QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
0153 }
0154 QT_WARNING_POP