Debugger: Use line information to find matching scopes for tooltips

More robust to variations in tool chains than function names.
(e.g. GDB reports 'foo' and LLDB 'foo()')

Change-Id: I1e5a3273b571658b4dd4200c9b3a0e9542a16015
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-11-15 13:33:40 +01:00
parent 9f6f2e7a0e
commit 82268eb77c
4 changed files with 40 additions and 39 deletions

View File

@@ -42,7 +42,8 @@ namespace Internal {
// Editor tooltip support
bool isCppEditor(TextEditor::TextEditorWidget *editorWidget);
QString cppExpressionAt(TextEditor::TextEditorWidget *editorWidget, int pos,
int *line, int *column, QString *function = 0);
int *line, int *column, QString *function = 0,
int *scopeFromLine = 0, int *scopeToLine = 0);
QString fixCppExpression(const QString &exp);
QString cppFunctionAt(const QString &fileName, int line, int column = 0);