diff options
author | hjk <hjk121@nokiamail.com> | 2013-01-24 16:33:17 +0100 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2013-01-25 13:54:34 +0100 |
commit | b6f187d0f2ea9c356fe14a441bdc77e306f20fb7 (patch) | |
tree | 1b0d1f43691057ed6976935405c0007b563b6544 /src/plugins/debugger/watchutils.h | |
parent | fb502785215817878f07d9e771f2f6e2a4481613 (diff) | |
download | qt-creator-b6f187d0f2ea9c356fe14a441bdc77e306f20fb7.tar.gz |
Debugger: split editor related code off watchutils.{h,cpp}
This is now in sourceutils.{h,cpp} to make watchutils.{h,cpp}
better acessible to the debugger auto-tests.
Change-Id: Ie87e715bc7018ca190a460c37dfd19bc897059f0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/plugins/debugger/watchutils.h')
-rw-r--r-- | src/plugins/debugger/watchutils.h | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/src/plugins/debugger/watchutils.h b/src/plugins/debugger/watchutils.h index aef4ad1b42..8ab67f3b77 100644 --- a/src/plugins/debugger/watchutils.h +++ b/src/plugins/debugger/watchutils.h @@ -30,29 +30,18 @@ #ifndef WATCHUTILS_H #define WATCHUTILS_H +// NOTE: Don't add dependencies to other files. +// This is used in the debugger auto-tests. + #include <QSet> #include <QString> -namespace TextEditor { - class ITextEditor; -} - -namespace Core { - class IEditor; -} - -namespace CPlusPlus { - class Snapshot; -} - namespace Debugger { namespace Internal { class WatchData; class GdbMi; -QByteArray dotEscape(QByteArray str); -QString currentTime(); bool isSkippableFunction(const QString &funcName, const QString &fileName); bool isLeavableFunction(const QString &funcName, const QString &fileName); @@ -69,25 +58,12 @@ bool isIntOrFloatType(const QByteArray &type); bool isIntType(const QByteArray &type); QString formatToolTipAddress(quint64 a); - -// Editor tooltip support -bool isCppEditor(Core::IEditor *editor); -QString cppExpressionAt(TextEditor::ITextEditor *editor, int pos, - int *line, int *column, QString *function = 0); QString removeObviousSideEffects(const QString &exp); -QString fixCppExpression(const QString &exp); -QString cppFunctionAt(const QString &fileName, int line); + // Decode string data as returned by the dumper helpers. void decodeArray(WatchData *list, const WatchData &tmplate, const QByteArray &rawData, int encoding); -// Get variables that are not initialized at a certain line -// of a function from the code model. Shadowed variables will -// be reported using the debugger naming conventions '<shadowed n>' -bool getUninitializedVariables(const CPlusPlus::Snapshot &snapshot, - const QString &function, const QString &file, int line, - QStringList *uninitializedVariables); - // // GdbMi interaction |