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

@@ -4,20 +4,19 @@
#include "base/stl_helpers.hpp"
#ifdef DEBUG
#define INIT_CHECK_INFO(x) m_checkInfo = std::vector<bool>((std::vector<bool>::size_type)(x), false);
#define CHECK_STREAMS CheckStreams()
#define INIT_STREAM(x) InitCheckStream((x))
#define INIT_CHECK_INFO(x) m_checkInfo = std::vector<bool>((std::vector<bool>::size_type)(x), false);
#define CHECK_STREAMS CheckStreams()
#define INIT_STREAM(x) InitCheckStream((x))
#else
#include "base/macros.hpp"
#define INIT_CHECK_INFO(x) UNUSED_VALUE((x))
#define CHECK_STREAMS
#define INIT_STREAM(x) UNUSED_VALUE((x))
#include "base/macros.hpp"
#define INIT_CHECK_INFO(x) UNUSED_VALUE((x))
#define CHECK_STREAMS
#define INIT_STREAM(x) UNUSED_VALUE((x))
#endif
namespace dp
{
AttributeProvider::AttributeProvider(uint8_t streamCount, uint32_t vertexCount)
: m_vertexCount(vertexCount)
AttributeProvider::AttributeProvider(uint8_t streamCount, uint32_t vertexCount) : m_vertexCount(vertexCount)
{
m_streams.resize(streamCount);
INIT_CHECK_INFO(streamCount);
@@ -72,9 +71,7 @@ void AttributeProvider::Advance(uint32_t vertexCount)
m_vertexCount -= vertexCount;
}
void AttributeProvider::InitStream(uint8_t streamIndex,
BindingInfo const & bindingInfo,
ref_ptr<void> data)
void AttributeProvider::InitStream(uint8_t streamIndex, BindingInfo const & bindingInfo, ref_ptr<void> data)
{
ASSERT_LESS(streamIndex, GetStreamCount(), ());
AttributeStream s;