diff options
author | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2015-01-23 13:44:50 +0100 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2015-01-26 18:15:10 +0100 |
commit | cfd3b561878c6b2559b3fc3db3c1554c67f039f4 (patch) | |
tree | 7c251259e98d787024d2ecbfa51cb89b19acd96c /src/plugins/cppeditor/cppeditor.cpp | |
parent | f08266497e27773352c3feb34f0cfad96e05cc0e (diff) |
CppEditor: Move CppEditorWidget::linkToSymbol to CppTools
* Cuts direct dependency to CPlusPlus from cppeditor.h, but
cppfunctiondecldeflink.h still pulls it in.
* Cuts direct dependency to
cppeditor.h from cppvirtualfunctionassistprovider.cpp, but it still
depends on cppeditorconstants.h.
* Cuts direct dependency to cppeditor.h from cppelementevaluator.cpp.
The long-term goal is to make the CppEditor independent from concrete
code model backends.
Change-Id: I291ee0d0da5fc5ed1a839a763fe7be11dcf7a6fb
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
Diffstat (limited to 'src/plugins/cppeditor/cppeditor.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppeditor.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp index e01f08c85c..26ea2038b1 100644 --- a/src/plugins/cppeditor/cppeditor.cpp +++ b/src/plugins/cppeditor/cppeditor.cpp @@ -592,26 +592,6 @@ void CppEditorWidget::slotCodeStyleSettingsChanged(const QVariant &) formatter.invalidateCache(document()); } -CppEditorWidget::Link CppEditorWidget::linkToSymbol(CPlusPlus::Symbol *symbol) -{ - if (!symbol) - return Link(); - - const QString filename = QString::fromUtf8(symbol->fileName(), - symbol->fileNameLength()); - - unsigned line = symbol->line(); - unsigned column = symbol->column(); - - if (column) - --column; - - if (symbol->isGenerated()) - column = 0; - - return Link(filename, line, column); -} - void CppEditorWidget::updateSemanticInfo(const SemanticInfo &semanticInfo, bool updateUseSelectionSynchronously) { |