[PATCH] D59455: Thread safety analysis: Add note for unlock kind mismatch

Aaron Puchert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 16 08:22:26 PDT 2019


aaronpuchert created this revision.
aaronpuchert added reviewers: aaron.ballman, delesley.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Similar to D56967 <https://reviews.llvm.org/D56967>, we add the existing diag::note_locked_here to tell
the user where we saw the locking that isn't matched correctly.


Repository:
  rC Clang

https://reviews.llvm.org/D59455

Files:
  include/clang/Analysis/Analyses/ThreadSafety.h
  lib/Analysis/ThreadSafety.cpp
  lib/Sema/AnalysisBasedWarnings.cpp
  test/Sema/warn-thread-safety-analysis.c
  test/SemaCXX/warn-thread-safety-analysis.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59455.190962.patch
Type: text/x-patch
Size: 5995 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190316/4db61923/attachment.bin>


More information about the cfe-commits mailing list