ClangFormat: Move tests into plugin

That's where they belong

Change-Id: I78e33e76a2f42f05961f6fab31da5f3dd583a2e9
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2022-01-14 15:08:11 +01:00
parent 70b2b2a1d5
commit ead181e385
13 changed files with 811 additions and 1025 deletions

View File

@@ -29,6 +29,7 @@
#include "clangformatconstants.h"
#include "clangformatindenter.h"
#include "clangformatutils.h"
#include "tests/clangformat-test.h"
#include <utils/qtcassert.h>
@@ -160,4 +161,13 @@ bool ClangFormatPlugin::initialize(const QStringList &arguments, QString *errorS
return true;
}
QVector<QObject *> ClangFormatPlugin::createTestObjects() const
{
return {
#ifdef WITH_TESTS
new Internal::ClangFormatTest,
#endif
};
}
} // namespace ClangFormat