<div dir="ltr">Hello, is this the right place to ask about clang-tidy problems? Please direct me somewhere else if appropriate. In a nutshell, I've got a situation where clang-tidy on Mac OS Catalina (installed by compiling LLVM 10.0.0 through Homebrew) will correctly find issues in a source file; but when a standard library header is included, it stops finding them all.<div><br></div><div>A trivial example reproduces the issue:<div>-----<br></div><div>// #include <vector></div>typedef int MyInt;<br>typedef float MyFloat;<div>-----</div><div><br></div><div>Running "clang-tidy main.cpp -checks=-*,modernize-use-using" with the include commented out:</div><div>-----</div><div>2 warnings generated.<br>/Users/andrew.mcdonald/Desktop/Test/main.cpp:2:1: warning: use 'using' instead of 'typedef' [modernize-use-using]<br>typedef int MyInt;<br>^~~~~~~~~~~~~~~~~<br>using MyInt = int<br>/Users/andrew.mcdonald/Desktop/Test/main.cpp:3:1: warning: use 'using' instead of 'typedef' [modernize-use-using]<br>typedef float MyFloat;<br>^~~~~~~~~~~~~~~~~~~~~<br>using MyFloat = float<br></div><div>-----</div><div><br></div><div>With the include enabled, it only reports one of them:</div><div>-----</div><div>1044 warnings generated.<br>/Users/andrew.mcdonald/Desktop/Test/main.cpp:3:1: warning: use 'using' instead of 'typedef' [modernize-use-using]<br>typedef float MyFloat;<br>^~~~~~~~~~~~~~~~~~~~~<br>using MyFloat = float<br>Suppressed 1043 warnings (1043 in non-user code).<br></div><div>-----</div><div><br></div><div><div><div>It seems to work fine through Godbolt, so I'm wondering if there's a specific installation issue. Are there any verbose or debugging flags that would help to show what's going wrong?</div></div></div><div>Thanks for any help<br></div></div></div>