-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable clang-tidy modernization checks (#933)
This follows up on #924 by enabling the modernization set of `clang-tidy` checks. As in the original PR, each individual commit largely mechanically fixes simple issues related to a single check. The changes here are stylistic ones that ensure we are using modern C++ features appropriately in the backend's code, and aren't leaning on legacy / C-style practices. There are a couple of commits that are not directly mechanical changes: - ed23fdd allows the script that drives `clang-tidy` to receive additional CLI args; doing so enables the use of the auto-fixer. - b74fe6a refactors some formatting code to use FMT rather than legacy printing functions. - e13d666 corrects the formatting of code generated by the auto-fixer. As ever, I'm open to bikeshedding the specific changes introduced here - it's really easy to change whether a specific check is enabled or disabled. For instance, I have left the [trailing return type](https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-trailing-return-type.html) check disabled as it's not the code style we're using.
- Loading branch information
Showing
39 changed files
with
314 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.