#clang-format #linter #clang-tidy

bin+lib cpp-linter

Run clang-format and clang-tidy on a batch of files

4 releases

new 2.0.0-rc4 Sep 21, 2024
2.0.0-rc1 Sep 19, 2024

#963 in Development tools

Download history 283/week @ 2024-09-16

283 downloads per month

MIT license

180KB
4K SLoC

cpp-linter

This crate contains the the library used as a backend for the cpp-linter binary executable. The main focus of cpp-linter is as follows:

  • Lint C/C++ sources using clang-format and clang-tidy.
  • Respect file changes when run in a CI workflow on Github.
  • Provide feedback via Github's REST API in the any of the following forms:
    • step summary
    • thread comments
    • file annotation
    • pull request review suggestions

Since the cpp-linter python package now uses this library as a binding, the native binary's main() behavior is also present in this library (see run::run_main()).

See also the CLI document hosted on github.

Dependencies

~19–35MB
~620K SLoC