-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[Analysis] Remove has_arg_iterator_range (NFC) #137568
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
[Analysis] Remove has_arg_iterator_range (NFC) #137568
Conversation
The last use was removed by: commit f8afb8f Author: Aaron Puchert <[email protected]> Date: Fri Apr 29 22:12:21 2022 +0200
@llvm/pr-subscribers-clang-analysis Author: Kazu Hirata (kazutakahirata) ChangesThe last use was removed by: commit f8afb8f Full diff: https://github.com/llvm/llvm-project/pull/137568.diff 1 Files Affected:
diff --git a/clang/lib/Analysis/ThreadSafety.cpp b/clang/lib/Analysis/ThreadSafety.cpp
index 42fb0fe7dcdaa..f50c2adda4bc0 100644
--- a/clang/lib/Analysis/ThreadSafety.cpp
+++ b/clang/lib/Analysis/ThreadSafety.cpp
@@ -1231,25 +1231,6 @@ static const ValueDecl *getValueDecl(const Expr *Exp) {
return nullptr;
}
-namespace {
-
-template <typename Ty>
-class has_arg_iterator_range {
- using yes = char[1];
- using no = char[2];
-
- template <typename Inner>
- static yes& test(Inner *I, decltype(I->args()) * = nullptr);
-
- template <typename>
- static no& test(...);
-
-public:
- static const bool value = sizeof(test<Ty>(nullptr)) == sizeof(yes);
-};
-
-} // namespace
-
bool ThreadSafetyAnalyzer::inCurrentScope(const CapabilityExpr &CapE) {
const threadSafety::til::SExpr *SExp = CapE.sexpr();
assert(SExp && "Null expressions should be ignored");
|
@llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) ChangesThe last use was removed by: commit f8afb8f Full diff: https://github.com/llvm/llvm-project/pull/137568.diff 1 Files Affected:
diff --git a/clang/lib/Analysis/ThreadSafety.cpp b/clang/lib/Analysis/ThreadSafety.cpp
index 42fb0fe7dcdaa..f50c2adda4bc0 100644
--- a/clang/lib/Analysis/ThreadSafety.cpp
+++ b/clang/lib/Analysis/ThreadSafety.cpp
@@ -1231,25 +1231,6 @@ static const ValueDecl *getValueDecl(const Expr *Exp) {
return nullptr;
}
-namespace {
-
-template <typename Ty>
-class has_arg_iterator_range {
- using yes = char[1];
- using no = char[2];
-
- template <typename Inner>
- static yes& test(Inner *I, decltype(I->args()) * = nullptr);
-
- template <typename>
- static no& test(...);
-
-public:
- static const bool value = sizeof(test<Ty>(nullptr)) == sizeof(yes);
-};
-
-} // namespace
-
bool ThreadSafetyAnalyzer::inCurrentScope(const CapabilityExpr &CapE) {
const threadSafety::til::SExpr *SExp = CapE.sexpr();
assert(SExp && "Null expressions should be ignored");
|
The last use was removed by: commit f8afb8f Author: Aaron Puchert <[email protected]> Date: Fri Apr 29 22:12:21 2022 +0200
The last use was removed by: commit f8afb8f Author: Aaron Puchert <[email protected]> Date: Fri Apr 29 22:12:21 2022 +0200
The last use was removed by: commit f8afb8f Author: Aaron Puchert <[email protected]> Date: Fri Apr 29 22:12:21 2022 +0200
The last use was removed by: commit f8afb8f Author: Aaron Puchert <[email protected]> Date: Fri Apr 29 22:12:21 2022 +0200
The last use was removed by: commit f8afb8f Author: Aaron Puchert <[email protected]> Date: Fri Apr 29 22:12:21 2022 +0200
The last use was removed by:
commit f8afb8f
Author: Aaron Puchert [email protected]
Date: Fri Apr 29 22:12:21 2022 +0200