-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update clang-format version #2690
base: main
Are you sure you want to change the base?
Conversation
Well.. that is not good.. |
Clang-format 14 is widely available and also agrees with 11 if you want a less disruptive move. |
Thanks, @theComputeKid. I'll check whether we can adjust settings in |
4b75356
to
2cf8bc2
Compare
I'm lost on why clang-tidy-18 wants to do this:
|
To me, this just looks like a bug. From the documentation for AlignAfterOpenBracket, we use DontAlign which states:
The ContinuationIndentWidth we set is 8 and Clang-18 is instead indenting by 10. It looks like clang-tidy-17 works as expected though. Going by this issue, it looks like there may be a few issues with the DontAlign setting aligning when it shouldn't. |
4b82d8b
to
c1e3ddd
Compare
clang-format-14 has
Upd: This is a bug llvm/llvm-project#54901 |
I've experimented with several versions so far and every one has some quirks. In depth analysis of some changes reported below indicates either bugs or behavior changes of existing functionality. I was not able to find knobs to reduce produced diff. Here's the data to illustrate the issue we are facing:
|
clang-format-17 hates pure virtual function declarations for some reason:
This specific change can be reverted with |
We are stuck at clang-format-11, which is quite old, because of behavior differences with newer version. The intent of this PR is to update version in CI and address formatting differences that arise.