forked from qt-creator/qt-creator
CppTools: Simplify testing of typical use cases
Change-Id: I7ccb09bb8e1d2327f206640cd8c9090164a5f146 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user