mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-18 15:23:26 +00:00
1.1 KiB
1.1 KiB
Contributing
Prerequisites
- C++ compiler with C++23 support (Clang 18+, GCC 14+, MSVC 19.38+)
- CMake 3.25+
- Git
- Familiarity with the codebase (see
INSTALL.mdfor setup)
For questions, create a draft PR or reach out via Telegram.
Workflow
- Fork the repository.
- Create a feature branch from
main. - Make your changes, ensuring tests pass.
- Open a pull request against
main.
Code Style
Follow the project .clang-format. Run clang-format before committing.
Building
Use one of the CMake presets defined in CMakePresets.json:
cmake --preset <preset-name> -DOMATH_BUILD_TESTS=ON
cmake --build --preset <preset-name>
Run cmake --list-presets to see available configurations.
Tests
All new functionality must include unit tests. Run the test binary after building to verify nothing is broken.