Reformat code with clang format

This commit is contained in:
Clang Format
2023-11-19 15:28:38 +01:00
committed by Jan
parent 22e17272fd
commit 6b4f5d94a8
1099 changed files with 16763 additions and 18076 deletions

View File

@ -1,7 +1,7 @@
#include "InfoString.h"
#include <sstream>
#include <cstring>
#include <sstream>
#include <stack>
const std::string InfoString::EMPTY_VALUE;
@ -116,7 +116,7 @@ public:
auto c = m_stream.get();
if (c == EOF)
{
if(m_last_separator != EOF)
if (m_last_separator != EOF)
{
m_last_separator = EOF;
value = std::string();
@ -210,7 +210,7 @@ bool InfoString::FromGdtProperties(const GdtEntry& gdtEntry)
}
}
while(!entryStack.empty())
while (!entryStack.empty())
{
const auto* currentEntry = entryStack.top();
entryStack.pop();
@ -218,7 +218,7 @@ bool InfoString::FromGdtProperties(const GdtEntry& gdtEntry)
for (const auto& [key, value] : currentEntry->m_properties)
{
auto existingEntry = m_values.find(key);
if(existingEntry == m_values.end())
if (existingEntry == m_values.end())
{
m_keys_by_insertion.push_back(key);
m_values.emplace(std::make_pair(key, value));

View File

@ -1,11 +1,11 @@
#pragma once
#include <istream>
#include <unordered_map>
#include <string>
#include <vector>
#include "Utils/ClassUtils.h"
#include "Obj/Gdt/GdtEntry.h"
#include "Utils/ClassUtils.h"
#include <istream>
#include <string>
#include <unordered_map>
#include <vector>
class InfoString
{
@ -29,4 +29,4 @@ public:
bool FromStream(std::istream& stream);
bool FromStream(const std::string& prefix, std::istream& stream);
bool FromGdtProperties(const GdtEntry& gdtEntry);
};
};