]> granicus.if.org Git - clang/commit
Thread safety analysis: Improve diagnostics for double locking
authorAaron Puchert <aaron.puchert@sap.com>
Tue, 29 Jan 2019 22:11:42 +0000 (22:11 +0000)
committerAaron Puchert <aaron.puchert@sap.com>
Tue, 29 Jan 2019 22:11:42 +0000 (22:11 +0000)
commit0bd1f2b0ea7a222df573e380ce6571633a6faae3
treef9fe6aaa93aca49c198484c02af723404bfdbff1
parent4fa24f1025d9245000e40c5e082d3c23597a750a
Thread safety analysis: Improve diagnostics for double locking

Summary:
We use the existing diag::note_locked_here to tell the user where we saw
the first locking.

Reviewers: aaron.ballman, delesley

Reviewed By: aaron.ballman

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352549 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/Analyses/ThreadSafety.h
lib/Analysis/ThreadSafety.cpp
lib/Sema/AnalysisBasedWarnings.cpp
test/SemaCXX/warn-thread-safety-analysis.cpp