]> granicus.if.org Git - clang/commit
Thread safety analysis: Add note for unlock kind mismatch
authorAaron Puchert <aaron.puchert@sap.com>
Mon, 18 Mar 2019 23:26:54 +0000 (23:26 +0000)
committerAaron Puchert <aaron.puchert@sap.com>
Mon, 18 Mar 2019 23:26:54 +0000 (23:26 +0000)
commitae6410c918412e7921d3722e20b3a5600ae3e46c
tree4083d770341eca3f4647024683861928c8489938
parent1752683c9362f7357d7ed3ff55ea5b4eac70caaf
Thread safety analysis: Add note for unlock kind mismatch

Summary:
Similar to D56967, we add the existing diag::note_locked_here to tell
the user where we saw the locking that isn't matched correctly.

Reviewers: aaron.ballman, delesley

Reviewed By: aaron.ballman

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D59455

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356427 91177308-0d34-0410-b5e6-96231b3b80d8
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