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

@ -6,11 +6,12 @@
InfoStringFromStructConverterBase::InfoStringFromStructConverterBase(const void* structure)
: m_structure(structure),
m_get_scr_string([](scr_string_t)
{
assert(false);
return "";
})
m_get_scr_string(
[](scr_string_t)
{
assert(false);
return "";
})
{
}
@ -44,8 +45,7 @@ void InfoStringFromStructConverterBase::FillFromString(const std::string& key, c
m_info_string.SetValueForKey(key, "");
}
void InfoStringFromStructConverterBase::FillFromStringBuffer(const std::string& key, const size_t offset,
const size_t bufferSize)
void InfoStringFromStructConverterBase::FillFromStringBuffer(const std::string& key, const size_t offset, const size_t bufferSize)
{
const auto* str = reinterpret_cast<const char*>(reinterpret_cast<uintptr_t>(m_structure) + offset);
const auto strLen = strnlen(str, bufferSize);
@ -104,8 +104,7 @@ void InfoStringFromStructConverterBase::FillFromScriptString(const std::string&
m_info_string.SetValueForKey(key, m_get_scr_string(*scrStr));
}
void InfoStringFromStructConverterBase::FillFromEnumInt(const std::string& key, const size_t offset,
const char** enumValues, const size_t enumSize)
void InfoStringFromStructConverterBase::FillFromEnumInt(const std::string& key, const size_t offset, const char** enumValues, const size_t enumSize)
{
const auto num = *reinterpret_cast<int*>(reinterpret_cast<uintptr_t>(m_structure) + offset);