clang-analyzer-alpha.unix.PthreadLock check missin

2019-09-08 05:49发布

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.

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.

In both of these versions, I did not get any warnings regarding this alpha check. How do I enable it in version 4.0 ?

I am already using -checks=* while analyzing/running clang-tidy on my cpp file.

1条回答
可以哭但决不认输i
2楼-- · 2019-09-08 06:12

It looks like there's no way to enable those checks without building clang-tidy yourself: https://reviews.llvm.org/D28729#646548.

查看更多
登录 后发表回答