Format all C++ and Java code via clang-format

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-17 14:32:37 +07:00
parent 9f0290c0ec
commit bfffa1fff4
2169 changed files with 56441 additions and 64188 deletions

View File

@@ -1,13 +1,10 @@
#include "coding/reader_streambuf.hpp"
#include "coding/reader.hpp"
#include "coding/file_writer.hpp"
#include "coding/reader.hpp"
#include <algorithm>
ReaderStreamBuf::ReaderStreamBuf(std::unique_ptr<Reader> && p)
: m_p(std::move(p)), m_pos(0), m_size(m_p->Size())
{
}
ReaderStreamBuf::ReaderStreamBuf(std::unique_ptr<Reader> && p) : m_p(std::move(p)), m_pos(0), m_size(m_p->Size()) {}
// Define destructor in .cpp due to using unique_ptr with incomplete type.
ReaderStreamBuf::~ReaderStreamBuf() = default;
@@ -37,7 +34,6 @@ ReaderStreamBuf::int_type ReaderStreamBuf::underflow()
}
}
std::streamsize WriterStreamBuf::xsputn(char_type const * s, std::streamsize n)
{
m_writer.Write(s, n);