Commit da8d2235 authored by Nikolai Kosjar's avatar Nikolai Kosjar

CppTools: Simplify testing of typical use cases

Change-Id: I7ccb09bb8e1d2327f206640cd8c9090164a5f146
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent 5b5ab0ec
......@@ -98,6 +98,11 @@ CppToolsPlugin::~CppToolsPlugin()
delete CppModelManager::instance();
}
CppToolsPlugin *CppToolsPlugin::instance()
{
return m_instance;
}
bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error)
{
Q_UNUSED(arguments)
......
......@@ -59,7 +59,7 @@ namespace Internal {
class CppModelManager;
struct CppFileSettings;
class CppToolsPlugin : public ExtensionSystem::IPlugin
class CPPTOOLS_EXPORT CppToolsPlugin : public ExtensionSystem::IPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "CppTools.json")
......@@ -68,14 +68,17 @@ public:
CppToolsPlugin();
~CppToolsPlugin();
static CppToolsPlugin *instance();
bool initialize(const QStringList &arguments, QString *errorMessage);
void extensionsInitialized();
ShutdownFlag aboutToShutdown();
private slots:
public slots:
void switchHeaderSource();
void switchHeaderSourceInNextSplit();
private slots:
#ifdef WITH_TESTS
void test_codegen_public_in_empty_class();
void test_codegen_public_in_nonempty_class();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment