OpenCoverage

qqmlprofilereventlocation_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qmldebug/qqmlprofilereventlocation_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3class QQmlProfilerEventLocation-
4{-
5public:-
6 QQmlProfilerEventLocation() : m_line(-1),m_column(-1) {}
executed 1518 times by 1 test: end of block
Executed by:
  • tst_qqmlprofilerservice
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:
  • tst_qqmlprofilerservice
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: return !m_filename.isEmpty();
!m_filename.isEmpty();
never executed: return !m_filename.isEmpty();
0
20 }-
21-
22 QString filename() const { return
executed 1634 times by 1 test: return m_filename;
Executed by:
  • tst_qqmlprofilerservice
m_filename;
executed 1634 times by 1 test: return m_filename;
Executed by:
  • tst_qqmlprofilerservice
}
1634
23 int line() const { return
executed 1634 times by 1 test: return m_line;
Executed by:
  • tst_qqmlprofilerservice
m_line;
executed 1634 times by 1 test: return m_line;
Executed by:
  • tst_qqmlprofilerservice
}
1634
24 int column() const { return
executed 1634 times by 1 test: return m_column;
Executed by:
  • tst_qqmlprofilerservice
m_column;
executed 1634 times by 1 test: return m_column;
Executed by:
  • tst_qqmlprofilerservice
}
1634
25-
26private:-
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-
35inline bool operator==(const QQmlProfilerEventLocation &location1,-
36 const QQmlProfilerEventLocation &location2)-
37{-
38-
39 return
executed 462 times by 1 test: return location1.line() == location2.line() && location1.column() == location2.column() && location1.filename() == location2.filename();
Executed by:
  • tst_qqmlprofilerservice
location1.line() == location2.line() && location1.column() == location2.column()
executed 462 times by 1 test: return location1.line() == location2.line() && location1.column() == location2.column() && location1.filename() == location2.filename();
Executed by:
  • tst_qqmlprofilerservice
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:
  • tst_qqmlprofilerservice
462
41}-
42-
43inline bool operator!=(const QQmlProfilerEventLocation &location1,-
44 const QQmlProfilerEventLocation &location2)-
45{-
46 return
never executed: return !(location1 == location2);
!(location1 == location2);
never executed: return !(location1 == location2);
0
47}-
48-
49inline uint qHash(const QQmlProfilerEventLocation &location)-
50{-
51 return
executed 692 times by 1 test: return qHash(location.filename()) ^ ((location.line() & 0xfff) | ((location.column() << 16) & 0xff0000));
Executed by:
  • tst_qqmlprofilerservice
qHash(location.filename())
executed 692 times by 1 test: return qHash(location.filename()) ^ ((location.line() & 0xfff) | ((location.column() << 16) & 0xff0000));
Executed by:
  • tst_qqmlprofilerservice
692
52 ^ ((location.line() & 0xfff)
executed 692 times by 1 test: return qHash(location.filename()) ^ ((location.line() & 0xfff) | ((location.column() << 16) & 0xff0000));
Executed by:
  • tst_qqmlprofilerservice
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:
  • tst_qqmlprofilerservice
692
54-
55}-
56-
57QDataStream &operator>>(QDataStream &stream, QQmlProfilerEventLocation &location);-
58QDataStream &operator<<(QDataStream &stream, const QQmlProfilerEventLocation &location);-
59-
60template<> 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 codePreprocessed file

Generated by Squish Coco 4.2.0