aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangtools/clangtoolrunner.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2023-02-07 18:27:59 +0100
committerhjk <[email protected]>2023-02-09 10:00:45 +0000
commitda7383387d7e2c3c358a5de61388c6a87a0f2414 (patch)
tree6f68838375d819b683750050f99ced8bf44a42c9 /src/plugins/clangtools/clangtoolrunner.cpp
parent9ad60cd8911f58641f07d62187f03daddd85fecf (diff)
Clangtools: More FilePath
Change-Id: I82057f1a9788043ee45a268ae57847caf6c994f3 Reviewed-by: Christian Kandeler <[email protected]> Reviewed-by: <[email protected]>
Diffstat (limited to 'src/plugins/clangtools/clangtoolrunner.cpp')
-rw-r--r--src/plugins/clangtools/clangtoolrunner.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/clangtools/clangtoolrunner.cpp b/src/plugins/clangtools/clangtoolrunner.cpp
index a02ae6912e0..f5c955c50e7 100644
--- a/src/plugins/clangtools/clangtoolrunner.cpp
+++ b/src/plugins/clangtools/clangtoolrunner.cpp
@@ -85,7 +85,7 @@ static QStringList clangArguments(const ClangDiagnosticConfig &diagnosticConfig,
return arguments;
}
-static QString createOutputFilePath(const FilePath &dirPath, const FilePath &fileToAnalyze)
+static FilePath createOutputFilePath(const FilePath &dirPath, const FilePath &fileToAnalyze)
{
const QString fileName = fileToAnalyze.fileName();
const FilePath fileTemplate = dirPath.pathAppended("report-" + fileName + "-XXXXXX");
@@ -95,7 +95,7 @@ static QString createOutputFilePath(const FilePath &dirPath, const FilePath &fil
temporaryFile.setFileTemplate(fileTemplate.path());
if (temporaryFile.open()) {
temporaryFile.close();
- return temporaryFile.fileName();
+ return FilePath::fromString(temporaryFile.fileName());
}
return {};
}
@@ -106,15 +106,15 @@ TaskItem clangToolTask(const AnalyzeInputData &input,
{
struct ClangToolStorage {
QString name;
- Utils::FilePath executable;
- QString outputFilePath;
+ FilePath executable;
+ FilePath outputFilePath;
};
const TreeStorage<ClangToolStorage> storage;
const auto mainToolArguments = [=](const ClangToolStorage *data)
{
QStringList result;
- result << "-export-fixes=" + data->outputFilePath;
+ result << "-export-fixes=" + data->outputFilePath.nativePath();
if (!input.overlayFilePath.isEmpty() && isVFSOverlaySupported(data->executable))
result << "--vfsoverlay=" + input.overlayFilePath;
result << input.unit.file.nativePath();