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 -7
View File
@@ -5,18 +5,18 @@ extern "C" {
#include <interface/Input.h>
#include <support/List.h>
const char* ffDetectMouse(FFlist* devices /* List of FFMouseDevice */)
{
const char* ffDetectMouse(FFlist* devices /* List of FFMouseDevice */) {
BList list;
if (get_input_devices(&list) != B_OK)
if (get_input_devices(&list) != B_OK) {
return "get_input_devices() failed";
}
for (int32 i = 0, n = list.CountItems(); i < n; i++)
{
BInputDevice *device = (BInputDevice *) list.ItemAt(i);
if (device->Type() != B_POINTING_DEVICE || !device->IsRunning())
for (int32 i = 0, n = list.CountItems(); i < n; i++) {
BInputDevice* device = (BInputDevice*) list.ItemAt(i);
if (device->Type() != B_POINTING_DEVICE || !device->IsRunning()) {
continue;
}
FFMouseDevice* item = (FFMouseDevice*) ffListAdd(devices);
ffStrbufInit(&item->serial);