mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 14:08:30 +00:00
455 B
455 B
dcr fmt
Formats all C/C++ source files using clang-format.
Usage
dcr fmt
Behavior
- Scans
src/andtests/directories recursively. - Formats all C/C++ source and header files (
.c,.cpp,.cxx,.cc,.h,.hpp,.hxx,.hh) usingclang-format. - Uses
.clang-formatif present in the project root, otherwise falls back to LLVM style.
Requirements
clang-formatmust be installed and available in PATH.