forked from qt-creator/qt-creator
Added ToolTip support for CDB.
Make debugger tooltip API more general, have the engines check the correct file type, figure out the expression and context from the text editor. Put common functionality in watchutils.cpp. In the CDB engine, check whether a tooltip expression is a known variable within the stack frame context. If so, retrieve via symbol group or dumpers. Cache by function and expression. Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
@@ -97,14 +97,18 @@ public:
|
||||
class CPPTOOLS_EXPORT AbstractEditorSupport
|
||||
{
|
||||
public:
|
||||
AbstractEditorSupport(CppModelManagerInterface *modelmanager)
|
||||
: m_modelmanager(modelmanager) {}
|
||||
virtual ~AbstractEditorSupport() {}
|
||||
explicit AbstractEditorSupport(CppModelManagerInterface *modelmanager);
|
||||
virtual ~AbstractEditorSupport();
|
||||
|
||||
virtual QByteArray contents() const = 0;
|
||||
virtual QString fileName() const = 0;
|
||||
|
||||
void updateDocument()
|
||||
{ m_modelmanager->updateSourceFiles(QStringList() << fileName()); }
|
||||
void updateDocument();
|
||||
|
||||
// TODO: find a better place for common utility functions
|
||||
static QString functionAt(const CppModelManagerInterface *mm,
|
||||
const QString &fileName,
|
||||
int line, int column);
|
||||
|
||||
private:
|
||||
CppModelManagerInterface *m_modelmanager;
|
||||
|
Reference in New Issue
Block a user