Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| building:advanced [2026/05/29 10:07] – [Use introspection / GtkInspector] alexxcons | building:advanced [2026/07/21 20:11] (current) – Add key syntax for keyboard commands kevinbowen | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| thread apply all bt | thread apply all bt | ||
| - | |||
| - | ===== Build with scan-build ===== | ||
| - | |||
| - | '' | ||
| - | |||
| - | # using --reconfigure won't work ... you need to remove the build folder! | ||
| - | rm -rf build | ||
| - | | ||
| - | # setup and build the project ... the concrete version of scan-build to use can differ | ||
| - | CC=clang scan-build-19 --use-cc=clang meson setup build | ||
| - | CC=clang scan-build-19 --use-cc=clang meson compile -C build | ||
| - | |||
| - | The reports are in HTML and can be viewed with a browser | ||
| ===== Build with documentation ===== | ===== Build with documentation ===== | ||
| Line 59: | Line 46: | ||
| meson compile -C build | meson compile -C build | ||
| | | ||
| - | Then you can start '' | + | Then you can start '' |
| + | |||
| + | [[https:// | ||
| + | |||
| + | ===== Static analysis ===== | ||
| + | |||
| + | ==== Build with scan-build ==== | ||
| + | |||
| + | '' | ||
| + | |||
| + | # using --reconfigure won't work ... you need to remove the build folder! | ||
| + | rm -rf build | ||
| + | |||
| + | # setup and build the project ... the concrete version of scan-build to use can differ | ||
| + | CC=clang scan-build-19 --use-cc=clang meson setup build | ||
| + | CC=clang scan-build-19 --use-cc=clang meson compile -C build | ||
| + | |||
| + | The reports are in HTML and can be viewed with a browser | ||
| + | |||
| + | ==== Build with gcc static analyzer ==== | ||
| + | |||
| + | rm -rf build | ||
| + | CPPFLAGS=-fanalyzer meson setup build | ||
| + | meson compile -C build | ||
| + | |||
| + | ==== Run cppcheck ==== | ||
| + | |||
| + | You need to have xfce4-dev-tools >= 4.21.2 installed for this to work, so cppcheck founds the file '' | ||
| + | |||
| + | See also the comment in the cppcheck job in [[https:// | ||
| - | [[https://wiki.gnome.org/action/show/ | + | cppcheck -i build -j $(nproc) $([ -f .cppcheck.cfg ] && echo --library=.cppcheck.cfg) --library=gtk --library=xfce -I . \ |
| + | --suppressions-list=< | ||
| + | --enable=style --suppress=variableScope --suppress=constParameterPointer --suppress=constVariablePointer --suppress=constParameterCallback \ | ||
| + | --enable=information | ||
| + | --enable=warning, | ||