/C_Template

A simple template for starting a C project. Includes linters, unit testing, code style checkers and more

Primary LanguageCMIT No AttributionMIT-0

C Template

gperftools valgrind clang-format clang-tidy cppcheck cpplint Smoke Test Unit Tests

Over time I have build a set of linters, checkers and other tools that I find very helpful to use when working with pure C code. This repository contains a basic setup of those tools on a very simple application.

It has the following set up:

  1. clang-format (Code style)
  2. clang-tidy (Linter)
  3. cppcheck (Linter)
  4. cpplint (Linter)
  5. gproftools (Heap checker)
  6. Valgrind (Heap checker)
  7. Unity (C Unit Testing framework)

It also has a smoke test CI stage that simply runs the executable with a few different args. This is mostly to check that it at least runs and exits properly.

Usage

  1. Fork / clone this repo
  2. Hack away

License

All the contents of this repository are released under a MIT No Attribution License, unless otherwise noted (such as the files under deps/). See LICENSE for more details.