Thread safety analysis:
* When we detect that a CFG block has inconsistent lock sets, point the diagnostic at the location where we found the inconsistency, and point a note at somewhere the inconsistently-locked mutex was locked. * Fix the wording of the normal (non-loop, non-end-of-function) case of this diagnostic to not suggest that the mutex is going out of scope. * Fix the diagnostic emission code to keep a warning and its note together when sorting the diagnostics into source location order. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149669 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Analysis/Analyses/ThreadSafety.h 6 additions, 2 deletionsinclude/clang/Analysis/Analyses/ThreadSafety.h
- include/clang/Basic/DiagnosticSemaKinds.td 3 additions, 2 deletionsinclude/clang/Basic/DiagnosticSemaKinds.td
- lib/Analysis/ThreadSafety.cpp 83 additions, 13 deletionslib/Analysis/ThreadSafety.cpp
- lib/Sema/AnalysisBasedWarnings.cpp 43 additions, 31 deletionslib/Sema/AnalysisBasedWarnings.cpp
- test/SemaCXX/warn-thread-safety-analysis.cpp 70 additions, 48 deletionstest/SemaCXX/warn-thread-safety-analysis.cpp
Loading
Please register or sign in to comment