Skip to content
Snippets Groups Projects
Commit 99dc465d authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

start dev/dev/manual_checks: describe xunused usage (#759)

parent c3d61501
No related branches found
No related tags found
1 merge request!2182doc/dev describe tool for detecting unused code (#759)
Pipeline #121401 passed
+++
title = "Manual checks"
weight = 20
+++
## Manual checks
Tests that cannot be automatized should occasionally be run manually.
#### Unused code
Unused code, in particular unused functions, can be detected with the tool
[xunused](https://github.com/mgehre/xunused).
```bash
cd build
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
vi compile_commands.json # rm source files in 3rdparty and Fit/3rdparty
xunused compile_commands.json 2>&1 >/dev/null | tee /io/unused.txt
```
Use judgement: not all currently unused functions must be removed.
#### Static code analysis with clang-tidy
...
#### Coverage
...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment