Follow the MongoDB C++ Driver Coding Guidelines, ensure files are formatted properly, and follow guidelines for writing PR titles and commit messages.
All contributions must be made via a GitHub pull request (PR).
Prefix the PR title with the relevant JIRA ticket number when applicable. When multiple JIRA tickets are related, they may be suffixed to the title or mentioned within the commit message instead.
Examples include:
CXX-XXXX Resolve an issue
Fix several related issues (CXX-AAAA, CXX-BBBB)
* Commit A description
* Commit B description
* Commit C description
CXX-XXXX Implement a feature resolving several related issues
* CXX-AAAA Commit A description
* CXX-BBBB Commit B description
* Additional commit description
Refer to Chris Beams' guidelines for How to Write a Git Commit Message.
Format files with ClangFormat using the etc/clang_format.py script.
The script must be run in the project root directory to ensure the .clang-format configuration file is used properly.
# Allow the script to download the correct ClangFormat release version.
python2 ./etc/clang-format.py format
# Provide a path to an existing ClangFormat binary to use instead.
MONGO_CLANG_FORMAT="path/to/clang-format" python2 ./etc/clang-format.py format
[!NOTE] ClangFormat results may differ across release versions. When using a preinstalled ClangFormat binary, its version must be consistent with the
CLANG_FORMAT_VERSION
variable defined in theetc/clang_format.py
script.
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )