RTLSDR-AirbandRTL/scripts/reformat_code
charlie-foxtrot e7cd0ece5b
add code formatting (#465)
* add script to use clang-format to reformat all c/cpp source
* add clang formatting workflow to fail if code isn't formatted
* add clang format to development container and vscode config
* remove ubuntu-20..04 version of dev container leaving only ubuntu-latest
* add pre-commit hook
* add basic .clang-format config file
* run pre-commit checks on all files and update them
* add code formatting badge to readme
2024-02-08 07:23:11 -08:00

4 lines
99 B
Bash
Executable File

#!/bin/bash
find src/*.h src/*.cpp src/hello_fft/*.h src/hello_fft/*.c | xargs clang-format-14 -i