[CXX-2469] clang_format.py stops on version mismatch Created: 16/Mar/22  Updated: 18/Jan/23

Status: Backlog
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Unknown
Reporter: Jesse Williamson (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: CXX-2635

 Description   

When running with a unrecognized version of clang-format, the script issues a warning but then proceeds to stop:

python2 ./etc/clang_format.py format src/mongocxx/exception/private/mongoc_error.hh
WARNING: clang-format found in path, but incorrect version found at /home/foo/bin/clang-format with version: clang-format version 13.0.1

Relaxing _validate_version() to issue the warning message and then proceed allows the tool to continue.


Generated at Wed Feb 07 22:06:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.