mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 19:39:31 +00:00
fix: add missing .cxx/.cc/.hxx/.hh extensions to fmt; update docs for 0.7.0
This commit is contained in:
19
docs/commands/dcr-fmt.md
Normal file
19
docs/commands/dcr-fmt.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# 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.
|
||||
Reference in New Issue
Block a user