From 99dc465d420bcaf0a9bded062e88a82a17e44528 Mon Sep 17 00:00:00 2001 From: Joachim Wuttke <j.wuttke@fz-juelich.de> Date: Mon, 27 Nov 2023 10:57:17 +0100 Subject: [PATCH] start dev/dev/manual_checks: describe xunused usage (#759) --- hugo/content/dev/dev/manual_checks.md | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 hugo/content/dev/dev/manual_checks.md diff --git a/hugo/content/dev/dev/manual_checks.md b/hugo/content/dev/dev/manual_checks.md new file mode 100644 index 00000000000..735a61ee097 --- /dev/null +++ b/hugo/content/dev/dev/manual_checks.md @@ -0,0 +1,30 @@ ++++ +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 + +... -- GitLab