From 1df553a68308c7be274fe95890f063ef367a2674 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Thu, 13 Sep 2018 11:44:43 +0200 Subject: ProjectExplorer: Rename IncludePathType to HeaderPathType It is the type used by the HeaderPath class, so reflect that in the name. I also considered to rename HeaderPath to IncludePath, but that name is reflected in a lot of users, which would also need to be adjusted for consistency. That would blow up the patch size for little value IMHO. Change-Id: I51421dbd3ab8b2874dc32fc82dc394c9b93ce5e9 Reviewed-by: Marco Bubke --- src/plugins/cpptools/cppsourceprocessor_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins/cpptools/cppsourceprocessor_test.cpp') diff --git a/src/plugins/cpptools/cppsourceprocessor_test.cpp b/src/plugins/cpptools/cppsourceprocessor_test.cpp index 357975fabd..d0b9489593 100644 --- a/src/plugins/cpptools/cppsourceprocessor_test.cpp +++ b/src/plugins/cpptools/cppsourceprocessor_test.cpp @@ -47,7 +47,7 @@ using namespace CPlusPlus; using namespace CppTools; using namespace CppTools::Tests; using namespace CppTools::Internal; -using ProjectExplorer::IncludePathType; +using ProjectExplorer::HeaderPathType; typedef Document::Include Include; @@ -65,7 +65,7 @@ public: QScopedPointer sourceProcessor( CppModelManager::createSourceProcessor()); const ProjectExplorer::HeaderPath hp(TestIncludePaths::directoryOfTestFile(), - IncludePathType::User); + HeaderPathType::User); sourceProcessor->setHeaderPaths({hp}); sourceProcessor->run(filePath); @@ -208,8 +208,8 @@ void CppToolsPlugin::test_cppsourceprocessor_includeNext() CppSourceProcessor::DocumentCallback documentCallback = [](const Document::Ptr &){}; CppSourceProcessor sourceProcessor(Snapshot(), documentCallback); - ProjectExplorer::HeaderPaths headerPaths = {{customHeaderPath, IncludePathType::User}, - {systemHeaderPath, IncludePathType::User}}; + ProjectExplorer::HeaderPaths headerPaths = {{customHeaderPath, HeaderPathType::User}, + {systemHeaderPath, HeaderPathType::User}}; sourceProcessor.setHeaderPaths(headerPaths); sourceProcessor.run(mainFilePath); -- cgit v1.2.1