Skip to content

Commit

Permalink
doc: how to run clang-format with meson
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Feb 10, 2024
1 parent 0f9acd4 commit 0630bb9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,14 @@ Keep the Python binding dependency versions reasonably up to date in the corresp
We currently support up to the C++ standard defined in:
- [`meson.build`](../meson.build)
- example build configurations in [`examples/build_with_*` subdirectories](../examples)

## Auto-Formatting

### C++

We provide a [`.clang-format`](../.clang-format) file for auto-formatting C++ code. If your system has `clang-format`,
then `meson` will create a `ninja` build target called `clang-format`, which you may run as
```bash
ninja -C <builddir> clang-format
```
This is useful to do periodically (**TODO**: automate it).

0 comments on commit 0630bb9

Please sign in to comment.