mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 17:19:37 +00:00
20 lines
455 B
Markdown
20 lines
455 B
Markdown
# dcr fmt
|
|
|
|
Formats all C/C++ source files using `clang-format`.
|
|
|
|
## Usage
|
|
|
|
```sh
|
|
dcr fmt
|
|
```
|
|
|
|
## Behavior
|
|
|
|
1. Scans `src/` and `tests/` directories recursively.
|
|
2. Formats all C/C++ source and header files (`.c`, `.cpp`, `.cxx`, `.cc`, `.h`, `.hpp`, `.hxx`, `.hh`) using `clang-format`.
|
|
3. Uses `.clang-format` if present in the project root, otherwise falls back to LLVM style.
|
|
|
|
## Requirements
|
|
|
|
- `clang-format` must be installed and available in PATH.
|