mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-07-26 10:38:52 +00:00
95eafeb812
* trying to fix clang format workflow
* try without docker repo, classic apt install
* find what installed clang format 18 version is
* removed auto generated flashsize
* comment on flashsize.h
* modified to use repo owned clang-format binaries
* code format for windows hosts
* add clang-format binaries for linux x86_64/arm64, macos-arm64, windows x86_64
* add helper script to download specific llvm clang-format version
* add helper to download missing libraries (use docker)
* use custom clang-format
* fix ui_subghzd.cpp:85:29: warning: narrowing conversion of 'this->ui::SubGhzDRecentEntryDetailView::cnt' from 'uint32_t' {aka 'long unsigned int'} to 'uint16_t' {aka 'short unsigned int'} [-Wnarrowing]
* remove auto generated file
* Update tools/clang-format.sh
* removed fallback
* updated hackrf submodule
25 lines
611 B
Bash
Executable File
25 lines
611 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
# Run from repo root (script is in repo root)
|
|
CF="./tools/clang-format.sh"
|
|
|
|
# Sanity check
|
|
if [ ! -x "$CF" ]; then
|
|
echo "ERROR: $CF not found or not executable." >&2
|
|
echo "Did you commit the pinned clang-format binaries and wrappers under tools/ ?" >&2
|
|
exit 2
|
|
fi
|
|
|
|
# Print version for traceability
|
|
"$CF" --version
|
|
|
|
find firmware/common \
|
|
firmware/baseband \
|
|
firmware/application \
|
|
firmware/test/application \
|
|
firmware/test/baseband \
|
|
\( -iname '*.h' -o -iname '*.hpp' -o -iname '*.c' -o -iname '*.cpp' \) \
|
|
-print0 | \
|
|
xargs -0 -r "$CF" -style=file -i
|