feat: add tidyfox-explicit-thisptr

Enforces explicit usage of the thisptr unconditionally
This commit is contained in:
outfoxxed 2023-10-27 03:10:01 -07:00
parent f5c43c4fb4
commit cb4ae697f7
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
5 changed files with 50 additions and 4 deletions

View file

@ -8,8 +8,11 @@ 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`
Tidyfox lints are supplied under the `tidyfox-` namespace.
The plugin can be loaded via `clang-tidy -load=/path/to/libtidyfox.so`.
## Lints
`tidyfox-explicit-thisptr` - requires that `this->` is used unconditionally for class members.
# Contributing
There is a `shell.nix` file which will load all the necessary dependencies.