diff --git a/src/lib/utility/file/FileRegister.cpp b/src/lib/utility/file/FileRegister.cpp index d7576b50..088fed8f 100644 --- a/src/lib/utility/file/FileRegister.cpp +++ b/src/lib/utility/file/FileRegister.cpp @@ -13,8 +13,9 @@ FileRegister::FileRegister( , m_indexedPaths(indexedPaths) , m_excludedPaths(excludedPaths) , m_hasFilePathCache( - [&](const FilePath& filePath) + [&](const std::string& f) { + const FilePath filePath(f); bool ret = false; if (filePath == m_currentPath) @@ -100,5 +101,5 @@ bool FileRegister::fileIsIndexed(const FilePath& filePath) const bool FileRegister::hasFilePath(const FilePath& filePath) const { - return m_hasFilePathCache.getValue(filePath); + return m_hasFilePathCache.getValue(filePath.str()); } diff --git a/src/lib/utility/file/FileRegister.h b/src/lib/utility/file/FileRegister.h index febf111e..73951072 100644 --- a/src/lib/utility/file/FileRegister.h +++ b/src/lib/utility/file/FileRegister.h @@ -4,7 +4,7 @@ #include #include "utility/file/FileRegisterStateData.h" -#include "utility/OrderedCache.h" +#include "utility/UnorderedCache.h" class FileRegister { @@ -29,7 +29,7 @@ private: const FilePath& m_currentPath; const std::set m_indexedPaths; const std::set m_excludedPaths; - mutable OrderedCache m_hasFilePathCache; + mutable UnorderedCache m_hasFilePathCache; }; #endif // FILE_REGISTER_H diff --git a/src/lib_cxx/project/SourceGroupCxxEmpty.cpp b/src/lib_cxx/project/SourceGroupCxxEmpty.cpp index 7f5ed817..10dc4b0c 100644 --- a/src/lib_cxx/project/SourceGroupCxxEmpty.cpp +++ b/src/lib_cxx/project/SourceGroupCxxEmpty.cpp @@ -23,8 +23,6 @@ std::vector> SourceGroupCxxEmpty::getIndexerComm std::shared_ptr appSettings = ApplicationSettings::getInstance(); std::vector systemHeaderSearchPaths; - utility::append(systemHeaderSearchPaths, m_settings->getHeaderSearchPathsExpandedAndAbsolute()); - utility::append(systemHeaderSearchPaths, appSettings->getHeaderSearchPathsExpanded()); // Add the source paths as HeaderSearchPaths as well, so clang will also look here when searching include files. for (const FilePath& sourcePath: m_settings->getSourcePathsExpandedAndAbsolute()) @@ -35,6 +33,9 @@ std::vector> SourceGroupCxxEmpty::getIndexerComm } } + utility::append(systemHeaderSearchPaths, m_settings->getHeaderSearchPathsExpandedAndAbsolute()); + utility::append(systemHeaderSearchPaths, appSettings->getHeaderSearchPathsExpanded()); + std::vector frameworkSearchPaths; utility::append(frameworkSearchPaths, m_settings->getFrameworkSearchPathsExpandedAndAbsolute()); utility::append(frameworkSearchPaths, appSettings->getFrameworkSearchPathsExpanded()); diff --git a/src/lib_gui/qt/view/QtDialogView.cpp b/src/lib_gui/qt/view/QtDialogView.cpp index 37b92d45..d741a48c 100644 --- a/src/lib_gui/qt/view/QtDialogView.cpp +++ b/src/lib_gui/qt/view/QtDialogView.cpp @@ -174,7 +174,6 @@ void QtDialogView::startIndexingDialog( connect(window, &QtWindow::canceled, [=]() { - std::cout << "cancelse" << std::endl; setUIBlocked(false); } ); diff --git a/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPaths.cpp b/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPaths.cpp index ef00899f..9e10cf63 100644 --- a/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPaths.cpp +++ b/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPaths.cpp @@ -74,7 +74,6 @@ bool QtProjectWizzardContentPaths::check() for (const FilePath& path : m_list->getList()) { std::vector expandedPaths(1, path); - std::cout << path.str() << std::endl; if (m_settings) { expandedPaths = m_settings->makePathsExpandedAndAbsolute(expandedPaths);