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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Out of curiosity, why did you notice you needed it? Did you observe the version mismatch between CI and what you had locally causing formatting difference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like CI currently has it as:
clang-format version 9.0.0-2~ubuntu18.04.2 (tags/RELEASE_900/final)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For C++, we stated we want v10 (and moved the test to a MacOS leg), so that our CI machines use the slightly newer version:
https://github.com/Azure/azure-sdk-for-cpp/blob/main/CONTRIBUTING.md#third-party-dependencies
Azure/azure-sdk-for-cpp#1328
We seem to be OK with v9 here, which is totally fine, it might be worth mentioning the version to contributors though, here:
https://github.com/Azure/azure-sdk-for-c/blob/main/CONTRIBUTING.md#prerequisites
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found the issue that motivated us making the change in C++:
Azure/azure-sdk-for-cpp#1207
@vhvb1989 what are your thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iirc it was because different versions create differently rendered files. this was just to make sure people could easily see which version is being used at the gates