Clang*: Use new plugin test setup scheme

Change-Id: I636b93d74b4f9ab9ade28c46c6e84b461ccf34be
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-02-09 14:16:43 +01:00
parent 19a975735d
commit b30a74130f
6 changed files with 29 additions and 60 deletions

View File

@@ -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