C/C++ pre-commit hooks for static analyzers and linters

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • cmake-lint

    Fork of https://github.com/richq/cmake-lint to continue maintenance

    Not C++, but of interest to many: cmake-lint https://github.com/cmake-lint/cmake-lint

  • pre-commit-hooks

    C/C++ hooks to integrate with pre-commit (by pocc)

    I maintain pre-commit hooks for C/C++ linters and static analyzers using the pre-commit framework. These allow you to verify that your code is free of common errors and to format it consistently. Included are

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • uncrustify

    Code beautifier

    these two C/C++ code formatters: * clang-format * uncrustify

  • cpplint

    Static code checker for C++

    and five C/C++ static code analyzers: * clang-tidy * oclint * cppcheck * cpplint (recently added!) * include-what-you-use (recently added!)

  • pre-commit

    A framework for managing and maintaining multi-language pre-commit hooks.

    I maintain pre-commit hooks for C/C++ linters and static analyzers using the pre-commit framework. These allow you to verify that your code is free of common errors and to format it consistently. Included are

  • include-what-you-use

    A tool for use with clang to analyze #includes in C and C++ source files

    and five C/C++ static code analyzers: * clang-tidy * oclint * cppcheck * cpplint (recently added!) * include-what-you-use (recently added!)

  • OCLint

    A static source code analysis tool to improve quality and reduce defects for C, C++ and Objective-C

    and five C/C++ static code analyzers: * clang-tidy * oclint * cppcheck * cpplint (recently added!) * include-what-you-use (recently added!)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • Cppcheck

    static analysis of C/C++ code

    and five C/C++ static code analyzers: * clang-tidy * oclint * cppcheck * cpplint (recently added!) * include-what-you-use (recently added!)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts