[SERVER-40160] clang-format mishandles constexpr-if Created: 15/Mar/19 Updated: 29/Oct/23 Resolved: 29/Jul/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sara Golemon | Assignee: | ADAM Martin (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | clang-format | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Backport Requested: |
v4.2
|
||||||||||||
| Sprint: | Dev Tools 2019-07-29 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
clang-format produces formatting which would seem to indicate it doesn't actually understand constexpr-if expressions as seen in the following output from clang-format as run on evergreen during the `lint` task.
|
| Comments |
| Comment by Githook User [ 27/Jul/19 ] | ||||||||
|
Author: {'name': 'ADAM David Alan Martin', 'email': 'adam.martin@10gen.com', 'username': 'adamlsd'}Message: This header circumvented bad formatting which `clang-format-3.8` | ||||||||
| Comment by Githook User [ 27/Jul/19 ] | ||||||||
|
Author: {'name': 'ADAM David Alan Martin', 'email': 'adam.martin@10gen.com', 'username': 'adamlsd'}Message: | ||||||||
| Comment by Billy Donahue [ 16/May/19 ] | ||||||||
|
In the meantime,
|