feat: add tidyfox-explicit-thisptr
Enforces explicit usage of the thisptr unconditionally
This commit is contained in:
parent
f5c43c4fb4
commit
cb4ae697f7
5 changed files with 50 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue