OpenCoverage

moc_qqmlprofiler_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/.moc/moc_qqmlprofiler_p.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3#pragma GCC diagnostic push-
4-
5-
6#pragma GCC diagnostic ignored "-Wdeprecated-declarations"-
7-
8struct qt_meta_stringdata_QQmlProfiler_t {-
9 QByteArrayData data[5];-
10 char stringdata0[77];-
11};-
12-
13-
14-
15-
16-
17static const qt_meta_stringdata_QQmlProfiler_t qt_meta_stringdata_QQmlProfiler = {-
18 {-
19{ { { -1 } }, 12, 0, 0, qptrdiff(-
20__builtin_offsetof (-
21qt_meta_stringdata_QQmlProfiler_t-
22, -
23stringdata0-
24) -
25+ 0 - 0 * sizeof(QByteArrayData)) },-
26{ { { -1 } }, 9, 0, 0, qptrdiff(-
27__builtin_offsetof (-
28qt_meta_stringdata_QQmlProfiler_t-
29, -
30stringdata0-
31) -
32+ 13 - 1 * sizeof(QByteArrayData)) },-
33{ { { -1 } }, 0, 0, 0, qptrdiff(-
34__builtin_offsetof (-
35qt_meta_stringdata_QQmlProfiler_t-
36, -
37stringdata0-
38) -
39+ 23 - 2 * sizeof(QByteArrayData)) },-
40{ { { -1 } }, 25, 0, 0, qptrdiff(-
41__builtin_offsetof (-
42qt_meta_stringdata_QQmlProfiler_t-
43, -
44stringdata0-
45) -
46+ 24 - 3 * sizeof(QByteArrayData)) },-
47{ { { -1 } }, 26, 0, 0, qptrdiff(-
48__builtin_offsetof (-
49qt_meta_stringdata_QQmlProfiler_t-
50, -
51stringdata0-
52) -
53+ 50 - 4 * sizeof(QByteArrayData)) }-
54-
55 },-
56 "QQmlProfiler\0dataReady\0\0"-
57 "QVector<QQmlProfilerData>\0"-
58 "QQmlProfiler::LocationHash"-
59};-
60-
61-
62static const uint qt_meta_data_QQmlProfiler[] = {-
63-
64-
65 7,-
66 0,-
67 0, 0,-
68 1, 14,-
69 0, 0,-
70 0, 0,-
71 0, 0,-
72 0,-
73 1,-
74-
75-
76 1, 2, 19, 2, 0x06 ,-
77-
78-
79 QMetaType::Void, 0x80000000 | 3, 0x80000000 | 4, 2, 2,-
80-
81 0-
82};-
83-
84void QQmlProfiler::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
85{-
86 if (_c == QMetaObject::InvokeMetaMethod) {-
87 QQmlProfiler *_t = static_cast<QQmlProfiler *>(_o);-
88 (void)_t;-
89 switch (_id) {-
90 case 0: _t->dataReady((*reinterpret_cast< const QVector<QQmlProfilerData>(*)>(_a[1])),(*reinterpret_cast< const QQmlProfiler::LocationHash(*)>(_a[2]))); break;-
91 default: ;-
92 }-
93 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
94 switch (_id) {-
95 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
96 case 0:-
97 switch (*reinterpret_cast<int*>(_a[1])) {-
98 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
99 case 1:-
100 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlProfiler::LocationHash >(); break;-
101 case 0:-
102 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<QQmlProfilerData> >(); break;-
103 }-
104 break;-
105 }-
106 } else if (_c == QMetaObject::IndexOfMethod) {-
107 int *result = reinterpret_cast<int *>(_a[0]);-
108 {-
109 using _t = void (QQmlProfiler::*)(const QVector<QQmlProfilerData> & , const QQmlProfiler::LocationHash & );-
110 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlProfiler::dataReady)) {-
111 *result = 0;-
112 return;-
113 }-
114 }-
115 }-
116}-
117-
118 const QMetaObject QQmlProfiler::staticMetaObject = {-
119 { &QObject::staticMetaObject, qt_meta_stringdata_QQmlProfiler.data,-
120 qt_meta_data_QQmlProfiler, qt_static_metacall, nullptr, nullptr}-
121};-
122-
123-
124const QMetaObject *QQmlProfiler::metaObject() const-
125{-
126 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
127}-
128-
129void *QQmlProfiler::qt_metacast(const char *_clname)-
130{-
131 if (!_clname) return nullptr;-
132 if (!strcmp(_clname, qt_meta_stringdata_QQmlProfiler.stringdata0))-
133 return static_cast<void*>(this);-
134 if (!strcmp(_clname, "QQmlProfilerDefinitions"))-
135 return static_cast< QQmlProfilerDefinitions*>(this);-
136 return QObject::qt_metacast(_clname);-
137}-
138-
139int QQmlProfiler::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
140{-
141 _id = QObject::qt_metacall(_c, _id, _a);-
142 if (_id < 0)-
143 return _id;-
144 if (_c == QMetaObject::InvokeMetaMethod) {-
145 if (_id < 1)-
146 qt_static_metacall(this, _c, _id, _a);-
147 _id -= 1;-
148 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
149 if (_id < 1)-
150 qt_static_metacall(this, _c, _id, _a);-
151 _id -= 1;-
152 }-
153 return _id;-
154}-
155-
156-
157void QQmlProfiler::dataReady(const QVector<QQmlProfilerData> & _t1, const QQmlProfiler::LocationHash & _t2)-
158{-
159 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };-
160 QMetaObject::activate(this, &staticMetaObject, 0, _a);-
161}
executed 12 times by 1 test: end of block
Executed by:
  • tst_qqmlprofilerservice
12
162-
163#pragma GCC diagnostic pop-
164-
165-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0