ClangTools: Get rid of OutputFileFormat enum

This enum contains only one value now, so it's no-op.

Amends 9fc2fda07e

Change-Id: Ifa144dafb6155db93c06e3faecc40e38e464dac0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2023-01-06 12:23:18 +01:00
parent b7731b58a8
commit bf864ff371
7 changed files with 6 additions and 32 deletions

View File

@@ -5,8 +5,6 @@
#include "clangtidyclazyrunner.h"
#include "clangtool.h"
#include "clangtoolslogfilereader.h"
#include "clangtoolsprojectsettings.h"
#include "clangtoolssettings.h"
#include "clangtoolsutils.h"
#include "executableinfo.h"
@@ -323,10 +321,7 @@ void ClangToolRunWorker::onRunnerFinishedWithSuccess(ClangToolRunner *runner,
emit runnerFinished();
QString errorMessage;
const Diagnostics diagnostics = m_tool->read(runner->outputFileFormat(),
outputFilePath,
m_projectFiles,
&errorMessage);
const Diagnostics diagnostics = m_tool->read(outputFilePath, m_projectFiles, &errorMessage);
if (!errorMessage.isEmpty()) {
m_filesAnalyzed.remove(filePath);