-
-
Notifications
You must be signed in to change notification settings - Fork 340
Contribution guide
Greetings my dear C++ developer. It is very nice that you decided to contribute to sqlite_orm. This guide will help you to do it right.
-
Please don't create pull requests targeting to
masterbranch. Create PR targeting todevbranch instead causedevis a main working branch andmasteris a branch for releases; -
Don't edit
sqlite_orm.h. Edit sources fromdevfolder instead and once you finished run amalgamate script from terminal from repo root folder:
python third_party/amalgamate/amalgamate.py -c third_party/amalgamate/config.json -s .This will regenerate sqlite_orm.h from your version of sources from dev folder;
- Don't forget to apply code formatting after you generated
sqlite_orm.h. You can do it using a command below on UNIX OS:
clang-format -i -style=file include/sqlite_orm/*.h tests/*.cpp tests/*/*.cpp tests/*/*/*.cpp dev/*.h dev/*/*.h tests/*/*.h examples/*.cpp examples/*/src/*.cppand using a command below on Windows using PowerShell:
foreach ($f in get-childitem -path .\ -file -recurse | where {$_.extension -in ".h", ".cpp"}) { clang-format -i -style=file $f.fullname }To do it you must have clang-format v19 installed on your machine. To check your clang-format version run clang-format --version;
- After these steps are done make a commit and a pull request. Wait for CI build to complete and review is done. After that maintainer will merge your PR manually. This repo does not have automatic merge.
Please remember that new maintainers are always welcome. If you have some issue you post it at any time or you can ask a question right into discussions section.