build: reduce boost includes in FilePath.h
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,6 +2,8 @@
|
||||
|
||||
#include <regex>
|
||||
|
||||
#include "boost/filesystem.hpp"
|
||||
|
||||
#include "utility/logging/logging.h"
|
||||
#include "utility/utilityString.h"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user