aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r--src/plugins/debugger/analyzer/diagnosticlocation.h8
-rw-r--r--src/plugins/debugger/cdb/cdbparsehelpers.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/debugger/analyzer/diagnosticlocation.h b/src/plugins/debugger/analyzer/diagnosticlocation.h
index 76459d7661e..fe52fe9248c 100644
--- a/src/plugins/debugger/analyzer/diagnosticlocation.h
+++ b/src/plugins/debugger/analyzer/diagnosticlocation.h
@@ -43,6 +43,10 @@ public:
bool isValid() const;
+ DEBUGGER_EXPORT friend bool operator==(const DiagnosticLocation &first, const DiagnosticLocation &second);
+ DEBUGGER_EXPORT friend bool operator<(const DiagnosticLocation &first, const DiagnosticLocation &second);
+ DEBUGGER_EXPORT friend QDebug operator<<(QDebug dbg, const DiagnosticLocation &location);
+
Utils::FilePath filePath;
// Both values start at 1.
@@ -50,10 +54,6 @@ public:
int column = 0;
};
-DEBUGGER_EXPORT bool operator==(const DiagnosticLocation &first, const DiagnosticLocation &second);
-DEBUGGER_EXPORT bool operator<(const DiagnosticLocation &first, const DiagnosticLocation &second);
-DEBUGGER_EXPORT QDebug operator<<(QDebug dbg, const DiagnosticLocation &location);
-
} // namespace Debugger
Q_DECLARE_METATYPE(Debugger::DiagnosticLocation)
diff --git a/src/plugins/debugger/cdb/cdbparsehelpers.h b/src/plugins/debugger/cdb/cdbparsehelpers.h
index 5053a6de7e1..ab39ebc612a 100644
--- a/src/plugins/debugger/cdb/cdbparsehelpers.h
+++ b/src/plugins/debugger/cdb/cdbparsehelpers.h
@@ -79,6 +79,8 @@ struct WinException
void fromGdbMI(const GdbMi &);
QString toString(bool includeLocation = false) const;
+ friend QDebug operator<<(QDebug s, const WinException &e);
+
unsigned exceptionCode = 0;
unsigned exceptionFlags = 0;
quint64 exceptionAddress = 0;
@@ -90,7 +92,5 @@ struct WinException
QString function;
};
-QDebug operator<<(QDebug s, const WinException &e);
-
} // namespace Internal
} // namespace Debugger