forked from qt-creator/qt-creator
Clang*: Use new plugin test setup scheme
Change-Id: I636b93d74b4f9ab9ade28c46c6e84b461ccf34be Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -103,15 +103,10 @@ void ClangFormatPlugin::initialize()
|
||||
openClangFormatConfigAction->setData(doc->filePath().toVariant());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
QVector<QObject *> ClangFormatPlugin::createTestObjects() const
|
||||
{
|
||||
return {
|
||||
#ifdef WITH_TESTS
|
||||
new Internal::ClangFormatTest,
|
||||
addTest<Internal::ClangFormatTest>();
|
||||
#endif
|
||||
};
|
||||
}
|
||||
|
||||
} // namespace ClangFormat
|
||||
} // ClangFormat
|
||||
|
||||
@@ -16,7 +16,6 @@ class ClangFormatPlugin : public ExtensionSystem::IPlugin
|
||||
|
||||
~ClangFormatPlugin() override;
|
||||
void initialize() final;
|
||||
QVector<QObject *> createTestObjects() const override;
|
||||
|
||||
TextEditor::ICodeStylePreferencesFactory *m_factory = nullptr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user