mirror of
https://github.com/open5gs/open5gs.git
synced 2026-04-28 03:19:31 +00:00
The clang scan-build procedure ``` Assume Ubuntu docker container with open5gs mounted to /src. Assume these tools are installed to docker container: sudo apt install -y clang-tools clang For easy reference to clang scan-build tool: Put normal open5gs build procedure into a file called /src/build ======================= Inside docker container: ======================= export CLANG_OUT_DIR=/src/scan_build_results scan-build -disable-checker deadcode.DeadStores --override-compiler --keep-going --exclude subprojects --exclude tests --exclude lib/asn1c -maxloop 200 -o $CLANG_OUT_DIR -plist-html /src/build 2>&1 | tee /src/logclang.txt ======================= Results: ======================= Results are in html format in $CLANG_OUT_DIR - top level index.html ``` Note that in this analysis the following suppressions were assumed: - no deadcode.DeadStores analysis since those are not functional findings - exclude lib/asn1c for reason that is outside of open5gs control - exclude tests for reason that those are not functional findings - exclude subprojects since those are outside of open5gs control |
||
|---|---|---|
| .. | ||
| contrib | ||
| custom | ||
| openapi | ||
| support | ||
| client.c | ||
| client.h | ||
| context.c | ||
| context.h | ||
| conv.c | ||
| conv.h | ||
| meson.build | ||
| message.c | ||
| message.h | ||
| mhd-server.c | ||
| nf-sm.c | ||
| nf-sm.h | ||
| nghttp2-server.c | ||
| nnrf-build.c | ||
| nnrf-build.h | ||
| nnrf-handler.c | ||
| nnrf-handler.h | ||
| nnrf-path.c | ||
| nnrf-path.h | ||
| ogs-sbi.h | ||
| path.c | ||
| path.h | ||
| server.c | ||
| server.h | ||
| timer.c | ||
| timer.h | ||
| types.c | ||
| types.h | ||
| yuarel.c | ||
| yuarel.h | ||