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

0001 /****************************************************************************
0002 ** Meta object code from reading C++ file 'namespaces.cpp'
0003 **
0004 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.12)
0005 **
0006 ** WARNING! All changes made in this file will be lost!
0007 *****************************************************************************/
0008 
0009 #include <memory>
0010 #include <QtCore/qbytearray.h>
0011 #include <QtCore/qmetatype.h>
0012 #if !defined(Q_MOC_OUTPUT_REVISION)
0013 #error "The header file 'namespaces.cpp' doesn't include <QObject>."
0014 #elif Q_MOC_OUTPUT_REVISION != 67
0015 #error "This file was generated using the moc from 5.15.12. It"
0016 #error "cannot be used with the include files from this version of Qt."
0017 #error "(The moc has changed too much.)"
0018 #endif
0019 
0020 QT_BEGIN_MOC_NAMESPACE
0021 QT_WARNING_PUSH
0022 QT_WARNING_DISABLE_DEPRECATED
0023 struct qt_meta_stringdata_Foo__MyObj2_t {
0024     QByteArrayData data[3];
0025     char stringdata0[28];
0026 };
0027 #define QT_MOC_LITERAL(idx, ofs, len) \
0028     Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
0029     qptrdiff(offsetof(qt_meta_stringdata_Foo__MyObj2_t, stringdata0) + ofs \
0030         - idx * sizeof(QByteArrayData)) \
0031     )
0032 static const qt_meta_stringdata_Foo__MyObj2_t qt_meta_stringdata_Foo__MyObj2 = {
0033     {
0034 QT_MOC_LITERAL(0, 0, 11), // "Foo::MyObj2"
0035 QT_MOC_LITERAL(1, 12, 14), // "separateNSSlot"
0036 QT_MOC_LITERAL(2, 27, 0) // ""
0037 
0038     },
0039     "Foo::MyObj2\0separateNSSlot\0"
0040 };
0041 #undef QT_MOC_LITERAL
0042 
0043 static const uint qt_meta_data_Foo__MyObj2[] = {
0044 
0045  // content:
0046        8,       // revision
0047        0,       // classname
0048        0,    0, // classinfo
0049        1,   14, // methods
0050        0,    0, // properties
0051        0,    0, // enums/sets
0052        0,    0, // constructors
0053        0,       // flags
0054        0,       // signalCount
0055 
0056  // slots: name, argc, parameters, tag, flags
0057        1,    0,   19,    2, 0x0a /* Public */,
0058 
0059  // slots: parameters
0060     QMetaType::Void,
0061 
0062        0        // eod
0063 };
0064 
0065 void Foo::MyObj2::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
0066 {
0067     if (_c == QMetaObject::InvokeMetaMethod) {
0068         auto *_t = static_cast<MyObj2 *>(_o);
0069         (void)_t;
0070         switch (_id) {
0071         case 0: _t->separateNSSlot(); break;
0072         default: ;
0073         }
0074     }
0075     (void)_a;
0076 }
0077 
0078 QT_INIT_METAOBJECT const QMetaObject Foo::MyObj2::staticMetaObject = { {
0079     QMetaObject::SuperData::link<QObject::staticMetaObject>(),
0080     qt_meta_stringdata_Foo__MyObj2.data,
0081     qt_meta_data_Foo__MyObj2,
0082     qt_static_metacall,
0083     nullptr,
0084     nullptr
0085 } };
0086 
0087 
0088 const QMetaObject *Foo::MyObj2::metaObject() const
0089 {
0090     return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
0091 }
0092 
0093 void *Foo::MyObj2::qt_metacast(const char *_clname)
0094 {
0095     if (!_clname) return nullptr;
0096     if (!strcmp(_clname, qt_meta_stringdata_Foo__MyObj2.stringdata0))
0097         return static_cast<void*>(this);
0098     return QObject::qt_metacast(_clname);
0099 }
0100 
0101 int Foo::MyObj2::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
0102 {
0103     _id = QObject::qt_metacall(_c, _id, _a);
0104     if (_id < 0)
0105         return _id;
0106     if (_c == QMetaObject::InvokeMetaMethod) {
0107         if (_id < 1)
0108             qt_static_metacall(this, _c, _id, _a);
0109         _id -= 1;
0110     } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
0111         if (_id < 1)
0112             *reinterpret_cast<int*>(_a[0]) = -1;
0113         _id -= 1;
0114     }
0115     return _id;
0116 }
0117 struct qt_meta_stringdata_Foo__MyObj_t {
0118     QByteArrayData data[5];
0119     char stringdata0[32];
0120 };
0121 #define QT_MOC_LITERAL(idx, ofs, len) \
0122     Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
0123     qptrdiff(offsetof(qt_meta_stringdata_Foo__MyObj_t, stringdata0) + ofs \
0124         - idx * sizeof(QByteArrayData)) \
0125     )
0126 static const qt_meta_stringdata_Foo__MyObj_t qt_meta_stringdata_Foo__MyObj = {
0127     {
0128 QT_MOC_LITERAL(0, 0, 10), // "Foo::MyObj"
0129 QT_MOC_LITERAL(1, 11, 7), // "signal1"
0130 QT_MOC_LITERAL(2, 19, 0), // ""
0131 QT_MOC_LITERAL(3, 20, 5), // "slot1"
0132 QT_MOC_LITERAL(4, 26, 5) // "slot2"
0133 
0134     },
0135     "Foo::MyObj\0signal1\0\0slot1\0slot2"
0136 };
0137 #undef QT_MOC_LITERAL
0138 
0139 static const uint qt_meta_data_Foo__MyObj[] = {
0140 
0141  // content:
0142        8,       // revision
0143        0,       // classname
0144        0,    0, // classinfo
0145        3,   14, // methods
0146        0,    0, // properties
0147        0,    0, // enums/sets
0148        0,    0, // constructors
0149        0,       // flags
0150        1,       // signalCount
0151 
0152  // signals: name, argc, parameters, tag, flags
0153        1,    0,   29,    2, 0x06 /* Public */,
0154 
0155  // slots: name, argc, parameters, tag, flags
0156        3,    0,   30,    2, 0x0a /* Public */,
0157        4,    0,   31,    2, 0x0a /* Public */,
0158 
0159  // signals: parameters
0160     QMetaType::Void,
0161 
0162  // slots: parameters
0163     QMetaType::Void,
0164     QMetaType::Void,
0165 
0166        0        // eod
0167 };
0168 
0169 void Foo::MyObj::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
0170 {
0171     if (_c == QMetaObject::InvokeMetaMethod) {
0172         auto *_t = static_cast<MyObj *>(_o);
0173         (void)_t;
0174         switch (_id) {
0175         case 0: _t->signal1(); break;
0176         case 1: _t->slot1(); break;
0177         case 2: _t->slot2(); break;
0178         default: ;
0179         }
0180     } else if (_c == QMetaObject::IndexOfMethod) {
0181         int *result = reinterpret_cast<int *>(_a[0]);
0182         {
0183             using _t = void (MyObj::*)();
0184             if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MyObj::signal1)) {
0185                 *result = 0;
0186                 return;
0187             }
0188         }
0189     }
0190     (void)_a;
0191 }
0192 
0193 QT_INIT_METAOBJECT const QMetaObject Foo::MyObj::staticMetaObject = { {
0194     QMetaObject::SuperData::link<QObject::staticMetaObject>(),
0195     qt_meta_stringdata_Foo__MyObj.data,
0196     qt_meta_data_Foo__MyObj,
0197     qt_static_metacall,
0198     nullptr,
0199     nullptr
0200 } };
0201 
0202 
0203 const QMetaObject *Foo::MyObj::metaObject() const
0204 {
0205     return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
0206 }
0207 
0208 void *Foo::MyObj::qt_metacast(const char *_clname)
0209 {
0210     if (!_clname) return nullptr;
0211     if (!strcmp(_clname, qt_meta_stringdata_Foo__MyObj.stringdata0))
0212         return static_cast<void*>(this);
0213     return QObject::qt_metacast(_clname);
0214 }
0215 
0216 int Foo::MyObj::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
0217 {
0218     _id = QObject::qt_metacall(_c, _id, _a);
0219     if (_id < 0)
0220         return _id;
0221     if (_c == QMetaObject::InvokeMetaMethod) {
0222         if (_id < 3)
0223             qt_static_metacall(this, _c, _id, _a);
0224         _id -= 3;
0225     } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
0226         if (_id < 3)
0227             *reinterpret_cast<int*>(_a[0]) = -1;
0228         _id -= 3;
0229     }
0230     return _id;
0231 }
0232 
0233 // SIGNAL 0
0234 void Foo::MyObj::signal1()
0235 {
0236     QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
0237 }
0238 QT_WARNING_POP
0239 QT_END_MOC_NAMESPACE