src: split storage types into data and type

* this shortens the signature of many methods and allows to pass a single object as reference instead of passing multiple references and values
This commit is contained in:
mlangkabel
2017-11-19 01:31:50 +01:00
parent 66b278b1c9
commit 343caebcf6
39 changed files with 1182 additions and 899 deletions
+4 -2
View File
@@ -141,9 +141,11 @@ void TaskBuildIndex::doExit(std::shared_ptr<Blackboard> blackboard)
std::shared_ptr<IntermediateStorage> is = std::make_shared<IntermediateStorage>();
for (const FilePath& path : crashedFiles)
{
is->addError("The translation unit threw an exception during indexing. Please check if the source file "
is->addError(StorageErrorData(
"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 "
"setup.", "", path, 1, 1, true, true);
"setup.", "", path, 1, 1, true, true
));
LOG_INFO_STREAM(<< "crashed translation unit: " << path.str());
}
m_storageProvider->insert(is);