Chore: run clang-format

```bash
find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i
```
This commit is contained in:
李通洲
2026-03-29 09:28:49 +08:00
parent cdd4cee968
commit e0eba8ce21
690 changed files with 28093 additions and 30062 deletions
+7 -11
View File
@@ -2,32 +2,28 @@
#include "logo/logo.h"
#include "modules/break/break.h"
bool ffPrintBreak(FF_MAYBE_UNUSED FFBreakOptions* options)
{
bool ffPrintBreak(FF_MAYBE_UNUSED FFBreakOptions* options) {
ffLogoPrintLine();
putchar('\n');
return true;
}
void ffParseBreakJsonObject(FF_MAYBE_UNUSED FFBreakOptions* options, FF_MAYBE_UNUSED yyjson_val* module)
{
void ffParseBreakJsonObject(FF_MAYBE_UNUSED FFBreakOptions* options, FF_MAYBE_UNUSED yyjson_val* module) {
yyjson_val *key, *val;
size_t idx, max;
yyjson_obj_foreach(module, idx, max, key, val)
{
if (unsafe_yyjson_equals_str(key, "type") || unsafe_yyjson_equals_str(key, "condition"))
yyjson_obj_foreach (module, idx, max, key, val) {
if (unsafe_yyjson_equals_str(key, "type") || unsafe_yyjson_equals_str(key, "condition")) {
continue;
}
ffPrintError(FF_BREAK_MODULE_NAME, 0, NULL, FF_PRINT_TYPE_NO_CUSTOM_KEY, "Unknown JSON key %s", unsafe_yyjson_get_str(key));
}
}
void ffInitBreakOptions(FF_MAYBE_UNUSED FFBreakOptions* options)
{
void ffInitBreakOptions(FF_MAYBE_UNUSED FFBreakOptions* options) {
}
void ffDestroyBreakOptions(FF_MAYBE_UNUSED FFBreakOptions* options)
{
void ffDestroyBreakOptions(FF_MAYBE_UNUSED FFBreakOptions* options) {
}
FFModuleBaseInfo ffBreakModuleInfo = {
+1 -2
View File
@@ -2,8 +2,7 @@
#include "common/option.h"
typedef struct FFBreakOptions
{
typedef struct FFBreakOptions {
} FFBreakOptions;
static_assert(sizeof(FFBreakOptions) <= FF_OPTION_MAX_SIZE, "FFBreakOptions size exceeds maximum allowed size");