-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
clang-tidy is missing since llvm-mingw 16 #429
Comments
Yes; last year I switched the release process over to be built on github actions - this was discussed in #336. As part of tradeoffs done there, I decided to omit clang-tools-extra from the unix builds, to keep build times more manageable. (First I omitted LLDB as well, but that was requested back in #359.) But since runner speeds have been increased since, I guess I could consider reenabling clang-tools-extra there as well, if there's a concrete demand for it. (I could also consider to only skip it from nightly builds, but perhaps it's not worth the complexity.) |
I pushed a fix for this now in 9b18842, so the next release should include clang-tidy on unix as well. There is talks about a LLVM 18.1.7 release happening this week, so in that case, there'll be a new release soon that will include these tools. |
thanks. i use clang-tidy to analyze my code on macos. llvm from homebrew can analyze mac and linux code, but i don't know how to use it for windows. llvm-mingw's clang-tidy can. |
The latest release, at https://github.com/mstorsjo/llvm-mingw/releases/tag/20240606, now should include clang-tidy in the unix packages too. |
Thanks, it works. But I have problems when using it on macOS with cmake. cmake command is
Then I get build error:
I add the result is
We can see the default target triple is arm64-apple-macosx14.0.0, and
So I have to add more options for clang-tidy or cmake, finally this works |
Instead of specifying the libc++ include dir manually, pass I haven't used clang-tidy myself, but I guess we'd need to provide wrappers that set these defaults, or use a toolchain file like in #430 to pass those parameters, if they get picked up from there and used with clang-tidy too. |
-stdlib=libc++ works |
the last release contains clang-tidy is https://github.com/mstorsjo/llvm-mingw/releases/tag/20230320
The text was updated successfully, but these errors were encountered: