Skip to content

Lint-combine is a tool that lets you combine several linters and use them all in an IDE that supports only some (e.g. only one).

License

Notifications You must be signed in to change notification settings

EGabov-bc/cpp-lint-combine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

cpp-lint-combine

Current linters

You must create compile_commands.json file if you want to analyzing your project's files.

Create compile_commands.json. Ubuntu. Cmake

  1. Go to project directory, where files for analyzing is located
  2. mkdir _build && cd _build
  3. 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

  1. Go to project directory, where files for analyzing is located
  2. mkdir _build && cd _build
  3. 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

  1. Go to project directory, where files for analyzing is located
  2. mkdir _build && cd _build
  3. qmake .. && bear make

Build lintWrapper

For build you have to install several tools:

YAML parser

Program is using yaml-parser. Install yaml-parser:

  1. Go to project directory
  2. 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

  1. Go to project directory
  2. mkdir _build && cd _build
  3. cmake -DCMAKE_BUILD_TYPE=Release/Debug ..
  4. cmake --build .

About

Lint-combine is a tool that lets you combine several linters and use them all in an IDE that supports only some (e.g. only one).

Resources

License

Stars

Watchers

Forks

Packages

No packages published