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

@@ -6,9 +6,9 @@
namespace platform
{
// Source: https://developer.android.com/topic/performance/tracing/custom-events-native
typedef void *(*ATrace_beginSection) (char const *);
typedef void *(*ATrace_endSection) (void);
typedef void *(*ATrace_setCounter) (char const *, int64_t);
typedef void * (*ATrace_beginSection)(char const *);
typedef void * (*ATrace_endSection)(void);
typedef void * (*ATrace_setCounter)(char const *, int64_t);
class TraceImpl
{
@@ -18,7 +18,7 @@ public:
m_lib = dlopen("libandroid.so", RTLD_NOW | RTLD_LOCAL);
// Access the native tracing functions.
if (m_lib != nullptr)
if (m_lib != nullptr)
{
// Use dlsym() to prevent crashes on devices running Android 5.1
// (API level 22) or lower.
@@ -59,24 +59,23 @@ private:
ATrace_setCounter m_setCounter = nullptr;
};
// static
Trace & Trace::Instance() noexcept {
// static
Trace & Trace::Instance() noexcept
{
static Trace instance;
return instance;
}
Trace::Trace()
: m_impl(std::make_unique<TraceImpl>())
{}
Trace::Trace() : m_impl(std::make_unique<TraceImpl>()) {}
Trace::~Trace() = default;
void Trace::BeginSection(char const * name) noexcept
void Trace::BeginSection(char const * name) noexcept
{
m_impl->BeginSection(name);
}
void Trace::EndSection() noexcept
void Trace::EndSection() noexcept
{
m_impl->EndSection();
}