blob: 46a9c68c4c3c33492b3356e4a9c4623ffb479d94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <QObject>
QT_BEGIN_NAMESPACE
class QIODevice;
QT_END_NAMESPACE
namespace Valgrind {
namespace XmlProtocol {
class AnnounceThread;
class Error;
class Status;
/**
* Parser for the Valgrind Output XML Protocol 4
*/
class Parser : public QObject
{
Q_OBJECT
public:
enum Tool {
Unknown,
Memcheck,
Ptrcheck,
Helgrind
};
explicit Parser(QObject *parent = nullptr);
~Parser() override;
QString errorString() const;
void parse(QIODevice *stream);
signals:
void status(const Valgrind::XmlProtocol::Status &status);
void error(const Valgrind::XmlProtocol::Error &error);
void internalError(const QString &errorString);
void errorCount(qint64 unique, qint64 count);
void suppressionCount(const QString &name, qint64 count);
void announceThread(const Valgrind::XmlProtocol::AnnounceThread &announceThread);
void finished();
private:
class Private;
Private *const d;
};
} // XmlProtocol
} // Valgrind
|