Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
building:advanced [2026/06/06 23:19] – [Run cppcheck] gaelbuilding:advanced [2026/07/21 20:11] (current) – Add key syntax for keyboard commands kevinbowen
Line 46: Line 46:
   meson compile -C build   meson compile -C build
      
-Then you can start ''GtkInspector'' for the application by pressing [CTRL][SHIFT][Dor [CTRL][SHIFT][Iduring runtime+Then you can start ''GtkInspector'' for the application by pressing {key>Ctrl+Shift+Dor {key>Ctrl+Shift+Iduring runtime
  
 [[https://developer.gnome.org/documentation/tools/inspector.html|Here some general gtk inspector information]] [[https://developer.gnome.org/documentation/tools/inspector.html|Here some general gtk inspector information]]
Line 73: Line 73:
 ==== Run cppcheck ==== ==== Run cppcheck ====
  
-You need to have xfce4-dev-tools >= 4.21.installed for this to work, so cppcheck founds the file ''$cppcheck_cfg_prefix/cppcheck/cfg/xfce.cfg''. If the default ''$cppcheck_cfg_prefix'' (''$libdir'') doesn't work for you (it works on ubuntu, so probably on any debian derived distro), you'll have to set it at configure time when building xfce4-dev-tools using the ''<nowiki>--with-cppcheck-cfg-prefix</nowiki>'' command line option.+You need to have xfce4-dev-tools >= 4.21.installed for this to work, so cppcheck founds the file ''$cppcheck_cfg_prefix/cppcheck/cfg/xfce.cfg''. If the default ''$cppcheck_cfg_prefix'' (''$libdir'') doesn't work for you (it works on ubuntu, so probably on any debian derived distro), you'll have to set it at configure time when building xfce4-dev-tools using the ''<nowiki>--with-cppcheck-cfg-prefix</nowiki>'' command line option.
  
 See also the comment in the cppcheck job in [[https://gitlab.xfce.org/xfce/xfce4-dev-tools/-/blob/master/ci/build_project.yml|xfce4-dev-tools/ci/build_project.yml]] for more info on how to populate the file ''.cppcheck-false-positives'', and [[https://gitlab.xfce.org/xfce/xfce4-dev-tools/-/blob/master/ci/xfce.cfg|xfce4-dev-tools/ci/xfce.cfg]] as an example for the file ''.cppcheck.cfg'' if necessary. See also the comment in the cppcheck job in [[https://gitlab.xfce.org/xfce/xfce4-dev-tools/-/blob/master/ci/build_project.yml|xfce4-dev-tools/ci/build_project.yml]] for more info on how to populate the file ''.cppcheck-false-positives'', and [[https://gitlab.xfce.org/xfce/xfce4-dev-tools/-/blob/master/ci/xfce.cfg|xfce4-dev-tools/ci/xfce.cfg]] as an example for the file ''.cppcheck.cfg'' if necessary.
Line 81: Line 81:
     --enable=style --suppress=variableScope --suppress=constParameterPointer --suppress=constVariablePointer --suppress=constParameterCallback \     --enable=style --suppress=variableScope --suppress=constParameterPointer --suppress=constVariablePointer --suppress=constParameterCallback \
     --enable=information --check-level=exhaustive --force --suppress=unmatchedSuppression \     --enable=information --check-level=exhaustive --force --suppress=unmatchedSuppression \
-    --enable=warning,performance,portability --error-exitcode=1 --quiet .+    --enable=warning,performance,portability --error-exitcode=1 $CPPCHECK_ARGS --quiet .