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();
|
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;
|
return size;
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ void TaskBuildIndex::doExit(std::shared_ptr<Blackboard> blackboard)
|
|||||||
if (crashedFiles.size())
|
if (crashedFiles.size())
|
||||||
{
|
{
|
||||||
std::shared_ptr<IntermediateStorage> is = std::make_shared<IntermediateStorage>();
|
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 "
|
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 "
|
"conforms to the specified language standard and all necessary options are defined within your project "
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#ifndef SOURCE_LOCATION_FILE_H
|
#ifndef SOURCE_LOCATION_FILE_H
|
||||||
#define SOURCE_LOCATION_FILE_H
|
#define SOURCE_LOCATION_FILE_H
|
||||||
|
|
||||||
|
#include <functional>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#include <regex>
|
#include <regex>
|
||||||
|
|
||||||
|
#include "boost/filesystem.hpp"
|
||||||
|
|
||||||
#include "utility/logging/logging.h"
|
#include "utility/logging/logging.h"
|
||||||
#include "utility/utilityString.h"
|
#include "utility/utilityString.h"
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "boost/filesystem.hpp"
|
#include "boost/filesystem/path.hpp"
|
||||||
|
|
||||||
class FilePath
|
class FilePath
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
#ifndef QT_PROJECT_WIZZARD_H
|
#ifndef QT_PROJECT_WIZZARD_H
|
||||||
#define QT_PROJECT_WIZZARD_H
|
#define QT_PROJECT_WIZZARD_H
|
||||||
|
|
||||||
|
#include <functional>
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
#include "qt/window/project_wizzard/QtProjectWizzardWindow.h"
|
#include "qt/window/project_wizzard/QtProjectWizzardWindow.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user