[all-commits] [llvm/llvm-project] 24485a: [clang analysis] Make mutex guard detection more r...
Eli Friedman via All-commits
all-commits at lists.llvm.org
Mon Mar 30 11:46:28 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 24485aec4750255574a9a8211b3aef1ce00e83b6
https://github.com/llvm/llvm-project/commit/24485aec4750255574a9a8211b3aef1ce00e83b6
Author: Eli Friedman <efriedma at quicinc.com>
Date: 2020-03-30 (Mon, 30 Mar 2020)
Changed paths:
M clang/lib/Analysis/ThreadSafety.cpp
M clang/test/SemaCXX/warn-thread-safety-analysis.cpp
Log Message:
-----------
[clang analysis] Make mutex guard detection more reliable.
-Wthread-safety was failing to detect certain AST patterns it should
detect. Make the pattern detection a bit more comprehensive.
Due to an unrelated bug involving template instantiation, this showed up
as a regression in 10.0 vs. 9.0 in the original bug report. The included
testcase fails on older versions of clang, though.
Fixes https://bugs.llvm.org/show_bug.cgi?id=45323 .
Differential Revision: https://reviews.llvm.org/D76943
More information about the All-commits
mailing list