summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpptoolsreuse.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-06-02 17:25:41 +0200
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-06-03 09:16:24 +0000
commit45194515c0c350b7c16a2f338c78df0b5f3a98bb (patch)
tree94f466da1fcf04d0b21f96525cf8879985e0deba /src/plugins/cpptools/cpptoolsreuse.cpp
parent65137313b0e45e6dc9d31523c191267ffa45f911 (diff)
downloadqt-creator-45194515c0c350b7c16a2f338c78df0b5f3a98bb.tar.gz
CppTools: Export CppCodeModelSettings
Needed for the ClangCodeModel tests, where we need to activate the clang code model. Change-Id: I368b840875ca2a46da4535338bf55967cbcdf5ea Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsreuse.cpp')
-rw-r--r--src/plugins/cpptools/cpptoolsreuse.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cpptoolsreuse.cpp b/src/plugins/cpptools/cpptoolsreuse.cpp
index 05e5f86830..1478d34a6f 100644
--- a/src/plugins/cpptools/cpptoolsreuse.cpp
+++ b/src/plugins/cpptools/cpptoolsreuse.cpp
@@ -30,6 +30,8 @@
#include "cpptoolsreuse.h"
+#include "cpptoolsplugin.h"
+
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/idocument.h>
#include <texteditor/convenience.h>
@@ -251,6 +253,11 @@ TextEditor::TextEditorWidget::Link linkToSymbol(Symbol *symbol)
return Link(filename, line, column);
}
+QSharedPointer<CppCodeModelSettings> codeModelSettings()
+{
+ return CppTools::Internal::CppToolsPlugin::instance()->codeModelSettings();
+}
+
int fileSizeLimit()
{
static const QByteArray fileSizeLimitAsByteArray = qgetenv("QTC_CPP_FILE_SIZE_LIMIT_MB");