-
Couldn't load subscription status.
- Fork 107
Update clang-tidy to 15.0.6 #1382
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
Conversation
And rebase the patches
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
|
Ok, I glad it has testing, as clang-tidy binary build with static linking simply fails to initialize. Need to dig further |
|
@Skylion007 what version of clang-tidy do you need? I can easily update to 12, but 14 and 15 for some reason crash at the start |
Actually, turns out clang-tidy 11 has the bare minimum of what I need after all (the feature was actually added in clang-tidy 11 https://reviews.llvm.org/D75184). In that case clang-tidy 11 onwards should be good enough. Is 13 broken as well out of curiosity? |
We already have clang-tidy 11, don't we? |
|
Ok, after a little bit of debugging, find out the problem : diff --git a/llvm/include/llvm/Support/RWMutex.h b/llvm/include/llvm/Support/RWMutex.h
index 3dd962586..1e055e628 100644
--- a/llvm/include/llvm/Support/RWMutex.h
+++ b/llvm/include/llvm/Support/RWMutex.h
@@ -20,11 +20,7 @@
#include <shared_mutex>
// std::shared_timed_mutex is only availble on macOS 10.12 and later.
-#if defined(__APPLE__) && defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__)
-#if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101200
#define LLVM_USE_RW_MUTEX_IMPL
-#endif
-#endif
namespace llvm {
namespace sys { |
Based on results from pytorch/test-infra#1382
Based on results from pytorch/test-infra#1382 Fixes #ISSUE_NUMBER Pull Request resolved: #92195 Approved by: https://github.com/Skylion007
And rebase the patches