clang-tidy版本3.8和4.0中缺少clang-analyzer-alpha.unix.PthreadLock检查? [英] clang-analyzer-alpha.unix.PthreadLock check missing from clang-tidy version 3.8 and 4.0?
问题描述
我正在尝试使用clang-tidy现代化模块的C ++源代码.几周前,我下载并构建了 clang和clang工具 3.9版,并在其上运行我得到的一个cpp文件之一clang-analyzer-alpha.unix.PthreadLock
表示已经采取了锁定措施.
I am trying to modernize my module's C++ source code using clang-tidy. A few weeks ago, I downloaded and built clang and clang tools version 3.9 and when I ran it on one of my cpp files I got clang-analyzer-alpha.unix.PthreadLock
saying that lock has already been taken.
后来,由于篇幅所限,我删除了该版本的clang,并使用了我们的第三方存储库中可用的3.8和4.0版本.
Later, because of space constraints I removed that version of clang and used version 3.8 and 4.0 available in our 3rd party repos.
在这两个版本中,我都没有收到有关此alpha检查的任何警告.如何在4.0版中启用它?
In both of these versions, I did not get any warnings regarding this alpha check. How do I enable it in version 4.0 ?
在分析/运行cpp文件中的clang-tidy时,我已经在使用-checks=*
.
I am already using -checks=*
while analyzing/running clang-tidy on my cpp file.
推荐答案
It looks like there's no way to enable those checks without building clang-tidy yourself: https://reviews.llvm.org/D28729#646548.
这篇关于clang-tidy版本3.8和4.0中缺少clang-analyzer-alpha.unix.PthreadLock检查?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!