style: reformat C/C++ sources and headers with clang-format

Run clang-format over all project C/C++ source and header files
(.c, .cpp, .cc, .h, .hpp, .hh, .m, .mm) under app/ and tests/.
Non-source files (svg, qm, qrc, etc.) were not touched.
This commit is contained in:
2026-07-13 15:34:11 +08:00
parent 6a696bc234
commit f03b6b58ff
61 changed files with 2873 additions and 2740 deletions
+5 -5
View File
@@ -28,7 +28,7 @@ TEST(TimelineWorkArea, SaveLoadRoundTrip)
olive::TimelineWorkArea workarea;
workarea.set_enabled(true);
workarea.set_range(olive::core::TimeRange(olive::core::rational(2, 1),
olive::core::rational(6, 1)));
olive::core::rational(6, 1)));
QByteArray xml;
QBuffer buffer(&xml);
@@ -51,7 +51,7 @@ TEST(TimelineWorkArea, SaveLoadRoundTrip)
EXPECT_TRUE(loaded.enabled());
EXPECT_EQ(loaded.range(),
olive::core::TimeRange(olive::core::rational(2, 1),
olive::core::rational(6, 1)));
olive::core::rational(6, 1)));
}
TEST(TimelineWorkArea, DisabledWorkAreaRoundTrip)
@@ -59,7 +59,7 @@ TEST(TimelineWorkArea, DisabledWorkAreaRoundTrip)
olive::TimelineWorkArea workarea;
workarea.set_enabled(false);
workarea.set_range(olive::core::TimeRange(olive::core::rational(0, 1),
olive::core::rational(10, 1)));
olive::core::rational(10, 1)));
QByteArray xml;
QBuffer buffer(&xml);
@@ -82,14 +82,14 @@ TEST(TimelineWorkArea, DisabledWorkAreaRoundTrip)
EXPECT_FALSE(loaded.enabled());
EXPECT_EQ(loaded.range(),
olive::core::TimeRange(olive::core::rational(0, 1),
olive::core::rational(10, 1)));
olive::core::rational(10, 1)));
}
TEST(TimelineWorkArea, SetRangeUpdatesInOut)
{
olive::TimelineWorkArea workarea;
workarea.set_range(olive::core::TimeRange(olive::core::rational(3, 1),
olive::core::rational(8, 1)));
olive::core::rational(8, 1)));
EXPECT_EQ(workarea.in(), olive::core::rational(3, 1));
EXPECT_EQ(workarea.out(), olive::core::rational(8, 1));