https://github.com/malek203 updated
https://github.com/llvm/llvm-project/pull/131831
>From 7157d4c42e534c5c8c06b564055aed1030b9f690 Mon Sep 17 00:00:00 2001
From: Malek Ben Slimane
Date: Wed, 25 Sep 2024 15:21:08 +0200
Subject: [PATCH] Thread Safety Analysis: Check managed capabilities of
retu
https://github.com/malek203 updated
https://github.com/llvm/llvm-project/pull/110523
>From f5b5d4262318c4a2048c145aea923c1108ba65f2 Mon Sep 17 00:00:00 2001
From: Malek Ben Slimane
Date: Wed, 11 Sep 2024 22:07:45 +0200
Subject: [PATCH] Thread Safety Analysis: Support passing scoped locks betwee
@@ -336,6 +336,40 @@ Improvements to Clang's diagnostics
local variables passed to function calls using the ``[[clang::musttail]]``
attribute.
+- The Thread Safety Analysis (#GH110523) now supports passing scoped
capabilities into functions:
+ an attribute on the scoped
https://github.com/malek203 updated
https://github.com/llvm/llvm-project/pull/110523
>From 07b0285587df72ada43705641f06cdce4280c483 Mon Sep 17 00:00:00 2001
From: Malek Ben Slimane
Date: Wed, 11 Sep 2024 22:07:45 +0200
Subject: [PATCH] Thread Safety Analysis: Support passing scoped locks betwee
@@ -3984,6 +3984,10 @@ def warn_thread_attribute_decl_not_lockable : Warning<
def warn_thread_attribute_decl_not_pointer : Warning<
"%0 only applies to pointer types; type here is %1">,
InGroup, DefaultIgnore;
+def warn_thread_attribute_not_on_scoped_lockable_param : Warnin
@@ -1915,6 +1936,101 @@ void BuildLockset::handleCall(const Expr *Exp, const
NamedDecl *D,
}
}
+ std::optional Args;
+ if (Exp) {
+if (const auto *CE = dyn_cast(Exp))
+ Args = CE->arguments();
+else if (const auto *CE = dyn_cast(Exp))
+ Args = CE->ar
https://github.com/malek203 updated
https://github.com/llvm/llvm-project/pull/110523
>From 70b03bd0532f55f25f51adda0604b10d4b2150e0 Mon Sep 17 00:00:00 2001
From: Malek Ben Slimane
Date: Wed, 11 Sep 2024 22:07:45 +0200
Subject: [PATCH] Thread Safety Analysis: Support passing scoped locks betwee
https://github.com/malek203 updated
https://github.com/llvm/llvm-project/pull/110523
>From b66684cb44abcf3b0a191303d1dc01e6aa0d8dec Mon Sep 17 00:00:00 2001
From: Malek Ben Slimane
Date: Wed, 11 Sep 2024 22:07:45 +0200
Subject: [PATCH] Thread Safety Analysis: Support passing scoped locks betwee
https://github.com/malek203 created
https://github.com/llvm/llvm-project/pull/110523
This is helpful when multiple functions operate on the same capabilities, but
we still want to use scoped lockable types for readability and exception safety.
- Introduce support for thread safety annotations o
https://github.com/malek203 created
https://github.com/llvm/llvm-project/pull/105526
This fixes false positives related to returning a scoped lockable object. At
the end of a function, we check managed locks instead of scoped locks.
At real join points, we skip checking managed locks because w
10 matches
Mail list logo