summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppsourceprocessor_test.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2022-11-24 13:37:39 +0100
committerhjk <hjk@qt.io>2022-12-07 12:58:31 +0000
commit9a8d34ecf8a5bc39a555f633cb5b8a878a77d3d3 (patch)
tree087b634ea9cd9a5d0473d1f1f9060129a3d2f02a /src/plugins/cppeditor/cppsourceprocessor_test.cpp
parent89f438196454fc070d9cf3270579a2a7d4533966 (diff)
downloadqt-creator-9a8d34ecf8a5bc39a555f633cb5b8a878a77d3d3.tar.gz
CplusPlus: Pass FilePath to Preprocessor::run()
... and update caller sides. Change-Id: I6a107e4a7fd9f7123cdc6f141da202845bcbbb66 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppsourceprocessor_test.cpp')
-rw-r--r--src/plugins/cppeditor/cppsourceprocessor_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cppsourceprocessor_test.cpp b/src/plugins/cppeditor/cppsourceprocessor_test.cpp
index af617637f7..eb45a212b3 100644
--- a/src/plugins/cppeditor/cppsourceprocessor_test.cpp
+++ b/src/plugins/cppeditor/cppsourceprocessor_test.cpp
@@ -45,7 +45,7 @@ public:
CppModelManager::createSourceProcessor());
sourceProcessor->setHeaderPaths({ProjectExplorer::HeaderPath::makeUser(
TestIncludePaths::directoryOfTestFile())});
- sourceProcessor->run(filePath.toString());
+ sourceProcessor->run(filePath);
Document::Ptr document = m_cmm->document(filePath);
return document;
@@ -180,7 +180,7 @@ void SourceProcessorTest::testIncludeNext()
{
const Core::Tests::TestDataDir data(
_(SRCDIR "/../../../tests/auto/cplusplus/preprocessor/data/include_next-data/"));
- const QString mainFilePath = data.file(QLatin1String("main.cpp"));
+ const FilePath mainFilePath = data.filePath(QLatin1String("main.cpp"));
const QString customHeaderPath = data.directory(QLatin1String("customIncludePath"));
const QString systemHeaderPath = data.directory(QLatin1String("systemIncludePath"));