My clang-tidy lint collection
Find a file
outfoxxed f5c43c4fb4
initial setup
Buildscripts, nix shell, skeleton project
2023-10-27 03:03:57 -07:00
src initial setup 2023-10-27 03:03:57 -07:00
.clang-format initial setup 2023-10-27 03:03:57 -07:00
.clang-tidy initial setup 2023-10-27 03:03:57 -07:00
.editorconfig initial setup 2023-10-27 03:03:57 -07:00
.gitignore initial setup 2023-10-27 03:03:57 -07:00
CMakeLists.txt initial setup 2023-10-27 03:03:57 -07:00
default.nix initial setup 2023-10-27 03:03:57 -07:00
Justfile initial setup 2023-10-27 03:03:57 -07:00
package.nix initial setup 2023-10-27 03:03:57 -07:00
README.md initial setup 2023-10-27 03:03:57 -07:00
shell.nix initial setup 2023-10-27 03:03:57 -07:00

tidyfox

outfoxxed's clang-tidy lint collection. Lints I end up needing will go here.

Installation

There is a nix package in default.nix which can be used to install tidyfox in lib/libtidyfox.so.

If you aren't running nix, use the provided Justfile. Run just release to make a release build. You must have llvm and clang 16 dev packages in $PATH. (FindClang.cmake must exist)

Usage

Tidyfox lints are supplied under the tidyfox- namespace. Currently there are no lints. The plugin can be loaded via clang-tidy -load=/path/to/libtidyfox.so

Contributing

There is a shell.nix file which will load all the necessary dependencies. If not using nix the requirements are the same as in Installation above.

Run just build to create a debug build and a clang compilation database.

Run just fmt to format the sources.

Run just lint to run clang-tidy on tidyfox, with tidyfox itself as a plugin.

Run just release to create a release build.

Run just pre-commit before committing to catch anything.

When committing, follow conventional commits.