Skip to content
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

Add clang format 11 #119

Merged
merged 1 commit into from
Jul 8, 2022
Merged

Add clang format 11 #119

merged 1 commit into from
Jul 8, 2022

Conversation

akleeman
Copy link
Contributor

@akleeman akleeman commented Jul 8, 2022

I'm running ubuntu and recently upgraded my clang version to match jenkins and in the process realized that cmake was still picking an older version of clang (clang-format-6.0). In this change I've added clang-format-11 as the highest priority option which (I think) aligns with the clang-format used in things like orion engine's jenkins builds.

Note: I suspect we can do away with all the old versions listed in ClangFormat.cmake, but not sure if all projects are on 11 now?

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 8, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@akleeman akleeman requested a review from woodfell July 8, 2022 22:58
@@ -212,6 +212,7 @@ function(swift_setup_clang_format)
# First try to find clang-format
if(NOT x_CLANG_FORMAT_NAMES)
set(x_CLANG_FORMAT_NAMES
clang-format11 clang-format-11
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akleeman akleeman merged commit 62f063f into master Jul 8, 2022
@akleeman akleeman deleted the akleeman/clang-format-11 branch July 8, 2022 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants