build: reduce boost includes in FilePath.h

This commit is contained in:
malte_langkabel
2017-06-28 17:50:51 +02:00
parent 99ea3b2a25
commit a66daa9ac0
6 changed files with 11 additions and 6 deletions
+4 -4
View File
@@ -17,14 +17,14 @@ size_t IndexerCommand::getByteSize() const
{
size_t size = m_sourceFilePath.str().size();
for (auto i : m_indexedPaths)
for (const FilePath& path: m_indexedPaths)
{
size += sizeof(std::string) + i.str().size();
size += sizeof(std::string) + path.str().size();
}
for (auto i : m_excludedPaths)
for (const FilePath& path : m_excludedPaths)
{
size += sizeof(std::string) + i.str().size();
size += sizeof(std::string) + path.str().size();
}
return size;
+1 -1
View File
@@ -139,7 +139,7 @@ void TaskBuildIndex::doExit(std::shared_ptr<Blackboard> blackboard)
if (crashedFiles.size())
{
std::shared_ptr<IntermediateStorage> is = std::make_shared<IntermediateStorage>();
for (auto path : crashedFiles)
for (const FilePath& path : crashedFiles)
{
is->addError("The translation unit threw an exception during indexing. Please check if the source file "
"conforms to the specified language standard and all necessary options are defined within your project "
@@ -1,6 +1,7 @@
#ifndef SOURCE_LOCATION_FILE_H
#define SOURCE_LOCATION_FILE_H
#include <functional>
#include <map>
#include <memory>
#include <ostream>
+2
View File
@@ -2,6 +2,8 @@
#include <regex>
#include "boost/filesystem.hpp"
#include "utility/logging/logging.h"
#include "utility/utilityString.h"
+1 -1
View File
@@ -4,7 +4,7 @@
#include <string>
#include <vector>
#include "boost/filesystem.hpp"
#include "boost/filesystem/path.hpp"
class FilePath
{
@@ -1,6 +1,8 @@
#ifndef QT_PROJECT_WIZZARD_H
#define QT_PROJECT_WIZZARD_H
#include <functional>
#include <QWidget>
#include "qt/window/project_wizzard/QtProjectWizzardWindow.h"