Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qmldebug/qqmlprofilereventlocation_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | class QQmlProfilerEventLocation | - |
4 | { | - |
5 | public: | - |
6 | QQmlProfilerEventLocation() : m_line(-1),m_column(-1) {} executed 1518 times by 1 test: end of block Executed by:
| 1518 |
7 | QQmlProfilerEventLocation(const QString &file, int lineNumber, int columnNumber) : | - |
8 | m_filename(file), m_line(lineNumber), m_column(columnNumber) | - |
9 | {} executed 118 times by 1 test: end of block Executed by:
| 118 |
10 | - | |
11 | void clear() | - |
12 | { | - |
13 | m_filename.clear(); | - |
14 | m_line = m_column = -1; | - |
15 | } never executed: end of block | 0 |
16 | - | |
17 | bool isValid() const | - |
18 | { | - |
19 | return never executed: !m_filename.isEmpty();return !m_filename.isEmpty(); never executed: return !m_filename.isEmpty(); | 0 |
20 | } | - |
21 | - | |
22 | QString filename() const { return executed 1634 times by 1 test: m_filename;return m_filename; Executed by:
executed 1634 times by 1 test: }return m_filename; Executed by:
| 1634 |
23 | int line() const { return executed 1634 times by 1 test: m_line;return m_line; Executed by:
executed 1634 times by 1 test: }return m_line; Executed by:
| 1634 |
24 | int column() const { return executed 1634 times by 1 test: m_column;return m_column; Executed by:
executed 1634 times by 1 test: }return m_column; Executed by:
| 1634 |
25 | - | |
26 | private: | - |
27 | friend QDataStream &operator>>(QDataStream &stream, QQmlProfilerEventLocation &location); | - |
28 | friend QDataStream &operator<<(QDataStream &stream, const QQmlProfilerEventLocation &location); | - |
29 | - | |
30 | QString m_filename; | - |
31 | int m_line; | - |
32 | int m_column; | - |
33 | }; | - |
34 | - | |
35 | inline bool operator==(const QQmlProfilerEventLocation &location1, | - |
36 | const QQmlProfilerEventLocation &location2) | - |
37 | { | - |
38 | - | |
39 | return executed 462 times by 1 test: location1.line() == location2.line() && location1.column() == location2.column()return location1.line() == location2.line() && location1.column() == location2.column() && location1.filename() == location2.filename(); Executed by:
executed 462 times by 1 test: return location1.line() == location2.line() && location1.column() == location2.column() && location1.filename() == location2.filename(); Executed by:
| 462 |
40 | && location1.filename() == location2.filename(); executed 462 times by 1 test: return location1.line() == location2.line() && location1.column() == location2.column() && location1.filename() == location2.filename(); Executed by:
| 462 |
41 | } | - |
42 | - | |
43 | inline bool operator!=(const QQmlProfilerEventLocation &location1, | - |
44 | const QQmlProfilerEventLocation &location2) | - |
45 | { | - |
46 | return never executed: !(location1 == location2);return !(location1 == location2); never executed: return !(location1 == location2); | 0 |
47 | } | - |
48 | - | |
49 | inline uint qHash(const QQmlProfilerEventLocation &location) | - |
50 | { | - |
51 | return executed 692 times by 1 test: qHash(location.filename())return qHash(location.filename()) ^ ((location.line() & 0xfff) | ((location.column() << 16) & 0xff0000)); Executed by:
executed 692 times by 1 test: return qHash(location.filename()) ^ ((location.line() & 0xfff) | ((location.column() << 16) & 0xff0000)); Executed by:
| 692 |
52 | ^ ((location.line() & 0xfff) executed 692 times by 1 test: return qHash(location.filename()) ^ ((location.line() & 0xfff) | ((location.column() << 16) & 0xff0000)); Executed by:
| 692 |
53 | | ((location.column() << 16) & 0xff0000)); executed 692 times by 1 test: return qHash(location.filename()) ^ ((location.line() & 0xfff) | ((location.column() << 16) & 0xff0000)); Executed by:
| 692 |
54 | - | |
55 | } | - |
56 | - | |
57 | QDataStream &operator>>(QDataStream &stream, QQmlProfilerEventLocation &location); | - |
58 | QDataStream &operator<<(QDataStream &stream, const QQmlProfilerEventLocation &location); | - |
59 | - | |
60 | template<> class QTypeInfo<QQmlProfilerEventLocation > { public: enum { isSpecialized = true, isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isRelocatable = !isStatic || ((Q_MOVABLE_TYPE) & Q_RELOCATABLE_TYPE), isLarge = (sizeof(QQmlProfilerEventLocation)>sizeof(void*)), isPointer = false, isIntegral = std::is_integral< QQmlProfilerEventLocation >::value, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(QQmlProfilerEventLocation) }; static inline const char *name() { return "QQmlProfilerEventLocation"; } }; | - |
61 | - | |
62 | - | |
Switch to Source code | Preprocessed file |