Questions about using CPPCheck with Codelite 6
Posted: Thu Jul 03, 2014 1:18 pm
Windows 8.1 / MinGW 4.7.1 / wxWidgets 3.0.0 / Codelite 6
I've just tried running CPPCheck on a minimal app, which was created using Create New Project -> "Executable (wxWidgets + wxFBFrame)"
[1] Running CPPCheck on Minimal gave the following results
Thanks for any help/information, Colin
I've just tried running CPPCheck on a minimal app, which was created using Create New Project -> "Executable (wxWidgets + wxFBFrame)"
[1] Running CPPCheck on Minimal gave the following results
[2] Next thing was to run cppcheck from commandline with the --check config optionStarting cppcheck: "E:\Dev\CodeLite\codelite_cppcheck.exe" --enable=style --enable=performance --enable=portability --enable=unusedFunction --enable=missingInclude --enable=information --std=posix --std=c99 --std=c++11 --force --template gcc --file-list="F:\CodeliteWorkspaces\Play\.codelite\cppcheck.list"
Checking F:\CodeliteWorkspaces\Play\Minimal\gui.cpp...
Checking F:\CodeliteWorkspaces\Play\Minimal\main.cpp...
F:\CodeliteWorkspaces\Play\Minimal\main.cpp:23: style: The function 'OnInit' is never used.
:: information: Cppcheck cannot find all the include files (use --check-config for details)
Checking usage of global functions..
===== cppcheck analysis ended. Found 0 possible errors=====
which gave the following results"E:\Dev\CodeLite\codelite_cppcheck.exe" --check-config --file-list="F:\CodeliteWorkspaces\Play\.codelite\cppcheck.list"
Are these results what I should expect, or are there any settings/actions I can do so that CPPCheck can find the wx include files?Checking F:\CodeliteWorkspaces\Play\Minimal\gui.cpp...
[F:\CodeliteWorkspaces\Play\Minimal\gui.h:11]: (information) Include file: <wx/artprov.h> not found.
[F:\CodeliteWorkspaces\Play\Minimal\gui.h:12]: (information) Include file: <wx/xrc/xmlres.h> not found.
[F:\CodeliteWorkspaces\Play\Minimal\gui.h:13]: (information) Include file: <wx/intl.h> not found.
[F:\CodeliteWorkspaces\Play\Minimal\gui.h:14]: (information) Include file: <wx/string.h> not found.
[F:\CodeliteWorkspaces\Play\Minimal\gui.h:15]: (information) Include file: <wx/bitmap.h> not found.
[F:\CodeliteWorkspaces\Play\Minimal\gui.h:16]: (information) Include file: <wx/image.h> not found.
[F:\CodeliteWorkspaces\Play\Minimal\gui.h:17]: (information) Include file: <wx/icon.h> not found.
[F:\CodeliteWorkspaces\Play\Minimal\gui.h:18]: (information) Include file: <wx/menu.h> not found.
[F:\CodeliteWorkspaces\Play\Minimal\gui.h:19]: (information) Include file: <wx/gdicmn.h> not found.
[F:\CodeliteWorkspaces\Play\Minimal\gui.h:20]: (information) Include file: <wx/font.h> not found.
[F:\CodeliteWorkspaces\Play\Minimal\gui.h:21]: (information) Include file: <wx/colour.h> not found.
[F:\CodeliteWorkspaces\Play\Minimal\gui.h:22]: (information) Include file: <wx/settings.h> not found.
[F:\CodeliteWorkspaces\Play\Minimal\gui.h:23]: (information) Include file: <wx/sizer.h> not found.
[F:\CodeliteWorkspaces\Play\Minimal\gui.h:24]: (information) Include file: <wx/statusbr.h> not found.
[F:\CodeliteWorkspaces\Play\Minimal\gui.h:25]: (information) Include file: <wx/frame.h> not found.
1/2 files checked 54% done
Checking F:\CodeliteWorkspaces\Play\Minimal\main.cpp...
[F:\CodeliteWorkspaces\Play\Minimal\main.h:18]: (information) Include file: <wx/wx.h> not found.
2/2 files checked 100% done
Thanks for any help/information, Colin