clang formatting

This commit is contained in:
Alex 2024-01-26 13:05:07 -05:00
parent 365502d819
commit e2f8892278
8 changed files with 12 additions and 12 deletions

View File

@ -421,7 +421,7 @@ class LinkerImpl final : public Linker
SearchPaths& sourceSearchPaths) const
{
SoundBankWriter::OutputPath = fs::path(m_args.GetOutputFolderPathForProject(projectName));
const auto zone = CreateZoneForDefinition(targetName, zoneDefinition, &assetSearchPaths, &gdtSearchPaths, &sourceSearchPaths);
auto result = zone != nullptr;
if (zone)

View File

@ -14,7 +14,7 @@ const std::string ParsedCsvRow::GetValue(const std::string& header, bool require
std::cerr << "ERROR: Required column \"" << header << "\" was not found";
else
std::cerr << "WARNING: Expected column \"" << header << "\" was not found";
return {};
}

View File

@ -12,7 +12,7 @@ public:
explicit ParsedCsvRow(std::unordered_map<std::string, size_t>& headers, std::vector<std::string>& row);
const std::string GetValue(const std::string& header, bool required = false) const;
const float GetValueFloat(const std::string& header, bool required = false) const;
template<typename T> T GetValueInt(const std::string& header, bool required = false) const
{
const auto& value = this->GetValue(header, required);
@ -35,8 +35,8 @@ class ParsedCsv
public:
explicit ParsedCsv(const CsvInputStream& inputStream, bool hasHeaders = true);
size_t Size() const;
ParsedCsvRow operator[](size_t index) const;
};
};

View File

@ -44,4 +44,4 @@ struct WavHeader
WavChunkHeader chunkHeader;
WavFormatChunkPcm formatChunk;
WavChunkHeader subChunkHeader;
};
};

View File

@ -19,7 +19,7 @@ std::unordered_map<unsigned int, unsigned char> INDEX_FOR_FRAMERATE{
{44100, 5},
{48000, 6},
{96000, 7},
{192000, 8},
{192000, 8},
};
class SoundBankWriterImpl : public SoundBankWriter

View File

@ -1,9 +1,9 @@
#pragma once
#include "SearchPath/ISearchPath.h"
#include <filesystem>
#include <memory>
#include <ostream>
#include <filesystem>
class SoundBankWriter
{
@ -22,4 +22,4 @@ public:
static std::unique_ptr<SoundBankWriter> Create(const std::string& fileName, std::ostream& stream, ISearchPath* assetSearchPath);
static std::filesystem::path OutputPath;
};
};

View File

@ -1,6 +1,6 @@
#pragma once
#include <ostream>
#include <Sound/WavTypes.h>
#include <ostream>
class WavWriter
{

View File

@ -1,7 +1,7 @@
#include "StringUtils.h"
#include <sstream>
#include <iostream>
#include <sstream>
namespace utils
{
@ -106,7 +106,7 @@ namespace utils
{
std::vector<std::string> strings{};
std::istringstream stream(str);
std::string s;
while (std::getline(stream, s, delim))
{