Context
examples/ contains cmake/ and large-project/, and the docs reference Meson usage, but there's no dedicated examples/meson/ template like examples/cmake/. Meson users have to piece it together themselves.
Task
Add examples/meson/README.md, mirroring the structure of examples/cmake/README.md, showing:
- generating the compile database with
meson setup builddir (produces builddir/compile_commands.json), and
- a matching
.pre-commit-config.yaml using --compile-commands=builddir.
Then link it from examples/README.md and the "Examples" section of the main README.md.
Acceptance criteria
examples/meson/README.md is self-contained and consistent with the CMake example.
- It's linked from
examples/README.md and the root README.md.
Getting started
This is a docs-only addition; see CONTRIBUTING.md.
Context
examples/containscmake/andlarge-project/, and the docs reference Meson usage, but there's no dedicatedexamples/meson/template likeexamples/cmake/. Meson users have to piece it together themselves.Task
Add
examples/meson/README.md, mirroring the structure ofexamples/cmake/README.md, showing:meson setup builddir(producesbuilddir/compile_commands.json), and.pre-commit-config.yamlusing--compile-commands=builddir.Then link it from
examples/README.mdand the "Examples" section of the mainREADME.md.Acceptance criteria
examples/meson/README.mdis self-contained and consistent with the CMake example.examples/README.mdand the rootREADME.md.Getting started
This is a docs-only addition; see
CONTRIBUTING.md.