forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user