Fix #11073 - Bump clang-format from 10 to 19 #11082
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request overview
This is a squash of Fix #11073 - Bump clang-format from 10 to 19 #11081
Fixes Clang Format woefully out of date #11073
I initially bumped to 18, which is what Ubuntu has. But Latest MSVC using clang-format 19.1.5, and this is harder for windows users to install a specific version
Issue was that there was formatting differences (minor) being 18 and 19, but you CANNOT configure that (it's the internal parser), so for these I basically did a bit of refactoring where possible, and I turned off clang format for that (it's like 2 lines in src/ and 3 in tst/)
There are 0 formatting differences in clang-format-18, 19 and 20 right now!
I have redone the clang format action to move away from jidicula to a custom one
I ran clang-tidy-18 with
--checks=-*,readability-braces-around-statements, and I enabled theInsertBraces: truein clang-format as discussed with @Myoldmopar previouslyDescription of the purpose of this PR
Pull Request Author
Reviewer