[PATCH] D76943: [clang analysis] Make mutex guard detection more reliable.

Aaron Puchert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 28 09:08:02 PDT 2020


aaronpuchert added inline comments.


================
Comment at: clang/test/SemaCXX/warn-thread-safety-analysis.cpp:5659
+  }
+  struct Convertible { Convertible(); operator ReadLockedPtr<Object>(); };
+  void use_conversion() {
----------------
Honestly I'd prefer the annotation to be on this operator instead of the move constructor, but that's an independent issue that existed before this change. (rC322316#294681)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76943/new/

https://reviews.llvm.org/D76943





More information about the cfe-commits mailing list