================
@@ -4333,6 +4333,12 @@ def warn_var_deref_requires_any_lock : Warning<
"%select{reading|writing}1 the value pointed to by %0 requires holding "
"%select{any mutex|any mutex exclusively}1">,
InGroup<ThreadSafetyAnalysis>, DefaultIgnore;
+def warn_variable_requires_any_of_locks : Warning<
+ "reading variable %0 requires holding at least one of %1">,
----------------
melver wrote:
I'd prefer printing the full set of locks instead of abbreviating with "...",
and I think saying "one of 'a, b'" for the 2 lock case isn't bad - I feel it's
also more consistent/predictable output.
https://github.com/llvm/llvm-project/pull/186838
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits