Bear is very useful. "bear make" generates the compile_commands.json file that clang-tidy needs to do static code analysis. I had to build if from git because the version in Ubuntu 15.10 has a crash.

That file is usually generated by CMake (though not by default), which always felt like an odd thing to require:
(The documentation is also confusing because it uses LLVM itself as an example of the source code on which you might run clang-tidy, confusing the building of clang-tidy with the use of clang-tidy.)

I actually converted a mini project to CMake to try out clang-tidy before finding Bear.

Shared publiclyView activity