[SERVER-71732] Support mongo-authored clang-tidy plugins Created: 01/Dec/22  Updated: 29/Oct/23  Resolved: 28/Jan/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Alex Neben Assignee: Daniel Moody
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-71733 Add mongo-authored clang-tidy plugins... Closed
Related
related to SERVER-68247 Support mongo-authored clang-tidy plu... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Create scons build logic and simple check matching SERVER-68867.

As a result of this ticket
1. There should be a scons target that builds a shared object that can be used with https://clang.llvm.org/extra/clang-tidy/Contributing.html#out-of-tree-check-plugins. I think the source code should live in buildscripts/clang_tidy/[*.cpp|*.h]. Open to other ideas.

2. There should be a check matching the requirements of SERVER-68867

3. The run_clang_tidy.py script should be updated to optionally take an argument to a shared object to be loaded. On the pr you should run this locally and paste the output showing that it is working.



 Comments   
Comment by Alex Neben [ 28/Jan/23 ]

https://github.com/10gen/mongo/pull/9956 <- fixed in this PR

Generated at Thu Feb 08 06:19:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.