Skip to content

clang-format/tidy version comparisons fail for some builds#12813

Merged
bobbrow merged 1 commit into
mainfrom
bobbrow/clangVersion
Oct 7, 2024
Merged

clang-format/tidy version comparisons fail for some builds#12813
bobbrow merged 1 commit into
mainfrom
bobbrow/clangVersion

Conversation

@bobbrow

@bobbrow bobbrow commented Oct 7, 2024

Copy link
Copy Markdown
Member

Fixes: #12806

Use regular expressions to find the version number instead of token position.

@bobbrow bobbrow requested a review from a team October 7, 2024 17:53

@sean-mcmanus sean-mcmanus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It seems theoretically possible for a custom clang build to omit a patch version, but I don't think that's normal so maybe it's okay to not support that.

@sean-mcmanus

Copy link
Copy Markdown
Contributor

Is this for 1.22.8 or 1.23.0?

@bobbrow

bobbrow commented Oct 7, 2024

Copy link
Copy Markdown
Member Author

It seems theoretically possible for a custom clang build to omit a patch version, but I don't think that's normal so maybe it's okay to not support that.

I suppose we can wait to see if that's a capability people ask for.

@bobbrow

bobbrow commented Oct 7, 2024

Copy link
Copy Markdown
Member Author

Is this for 1.22.8 or 1.23.0?

I don't have a strong opinion. If it's not in 1.22, we may be doing a 1.23.0 pre-release shortly after.

@sean-mcmanus

Copy link
Copy Markdown
Contributor

I don't have a strong opinion. If it's not in 1.22, we may be doing a 1.23.0 pre-release shortly after.

It sounds like 1.22.8 will be a pre-release still so it seems safe enough to go into that.

@bobbrow

bobbrow commented Oct 7, 2024

Copy link
Copy Markdown
Member Author

ok. I'll merge this in now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

clang-format/tidy version comparisons fail for some builds

2 participants