[SERVER-72197] Run clang format on the codebase Created: 16/Dec/22  Updated: 29/Oct/23  Resolved: 14/Feb/23

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

Type: Improvement Priority: Major - P3
Reporter: Alex Neben Assignee: Ryan Egesdahl (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency
has to be done after SERVER-73104 Create clang-format 12.0.1 downloadab... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   
  1. This should be a larger diff with all the cxx changes
  2. This should also include revving the version of clang format used in evergreen (e.g. enforce people are using v4 clang format)
  3. Dump this configs for clang format
    1. Provide explicit non-default settings for any newly introduced configuration options. The explicit settings should be configured (to the extent possible) with values that prevent style alterations counter to our current style. (Regressions)
      1. Run with -dump-config to see all available flags and their current settings.
      2. Work with the relevant server leads to decide values for any new flag settings that have interesting or wide-ranging consequences.
  4. Draft an email that can be sent at the same time as the merge


 Comments   
Comment by Githook User [ 11/Feb/23 ]

Author:

{'name': 'clang-format 12.0.1', 'email': '', 'username': ''}

Message: SERVER-72197 Run clang-format 12.0.1 on the codebase

Signed-off-by: Ryan Egesdahl <ryan.egesdahl@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/f63255ee677ecae5896d6f35dd712ed60ae8c39a

Comment by Githook User [ 11/Feb/23 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-72197 Move to clang-format in v4 toolchain
Branch: master
https://github.com/mongodb/mongo/commit/375366e3f317d18717df24f861b09c4d2f8fb27f

Comment by Ryan Egesdahl (Inactive) [ 29/Dec/22 ]

louis.williams@mongodb.com PM-2389 is tracking the upgrade. Unfortunately, we can't just upgrade in one fell swoop this time around.

Comment by Louis Williams [ 29/Dec/22 ]

Is this ticket tracking the upgrade to use the toolchain clang-format (version 12.0.1) instead of the hardcoded version 7.0.0?

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