You must create compile_commands.json file if you want to analyzing your project's files.
Create compile_commands.json. Ubuntu. Cmake
- Go to project directory, where files for analyzing is located
- mkdir _build && cd _build
- cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release/Debug ..
Create compile_commands.json. Windows. Cmake
On windows cmake project generator from Visual Studio can't create compile_commands.json, so you must using another cmake project generator, for example, Unix Makefiles
- Go to project directory, where files for analyzing is located
- mkdir _build && cd _build
- cmake -G "Unix Makefiles" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release/Debug ..
Qmake can't generated compile_commands.json, so you have to using Bear. Bear is a tool that generates a compilation database for clang tooling.
Create compile_commands.json. Ubuntu. Qmake
- Go to project directory, where files for analyzing is located
- mkdir _build && cd _build
- qmake .. && bear make
YAML parser
Program is using yaml-parser. Install yaml-parser:
- Go to project directory
git clone https://github.com/jbeder/yaml-cpp.git
Boost Libraries
Program is using Boost libraries. You can install Boost libraries from https://www.boost.org/
Clang-Tidy
Install on Ubuntu: sudo apt-get install -y clang-tidy
Clazy-standalone
You can find clazy-standalone in QtCreator. Or install from github
Build programm
- Go to project directory
- mkdir _build && cd _build
- cmake -DCMAKE_BUILD_TYPE=Release/Debug ..
- cmake --build .