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

@@ -31,22 +31,16 @@ private:
class TraceSection
{
public:
inline TraceSection(char const * section) noexcept
{
Trace::Instance().BeginSection(section);
}
inline TraceSection(char const * section) noexcept { Trace::Instance().BeginSection(section); }
inline ~TraceSection() noexcept
{
Trace::Instance().EndSection();
}
inline ~TraceSection() noexcept { Trace::Instance().EndSection(); }
};
} // namespace platform
#if defined(ENABLE_TRACE) && defined(OMIM_OS_ANDROID)
#define TRACE_SECTION(section) platform::TraceSection ___section(section)
#define TRACE_SECTION(section) platform::TraceSection ___section(section)
#define TRACE_COUNTER(name, value) platform::Trace::Instance().SetCounter(name, value)
#else
#define TRACE_SECTION(section) static_cast<void>(0)
#define TRACE_SECTION(section) static_cast<void>(0)
#define TRACE_COUNTER(name, value) static_cast<void>(0)
#endif