[CXX-1095] Add clang-tidy integration and Evergreen task Created: 19/Oct/16  Updated: 23/Jul/21  Resolved: 15/Oct/20

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

Type: Task Priority: Major - P3
Reporter: J Rassi Assignee: Clyde Bazile III (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by CXX-2083 Run static analyzer as part of CI Closed
Epic Link: CXX Driver Testing (Evergreen)

 Description   

Integrating clang-tidy with the driver and adding a task to our continuous integration suite will contribute to code consistency and reduce review turnaround times. clang-tidy supports useful linting/fixing unsupported by clang-format, such as the readability-braces-around-statements directive.



 Comments   
Comment by Githook User [ 15/Oct/20 ]

Author:

{'name': 'Clyde Bazile', 'email': '34226620+bazile-clyde@users.noreply.github.com', 'username': 'bazile-clyde'}

Message: CXX-1095 Add clang-tidy integration and Evergreen task (#714)
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/1850ba4b732cb110dbacb3b72760cc7a1342fa91

Comment by Clyde Bazile III (Inactive) [ 12/Oct/20 ]

https://github.com/mongodb/mongo-cxx-driver/pull/714

Comment by J Rassi [ 20/Oct/16 ]

mark.benvenuto suggests considering the following tool, which runs clang-tidy over a set of files in a compilation database: https://github.com/llvm-mirror/clang-tools-extra/blob/master/clang-tidy/tool/run-clang-tidy.py.

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