static analysis of C/C++ code
Go to file
Kimmo Varis 9a9266b042 GUI: Add lib to include- and dependency-directories. 2010-07-27 17:39:33 +03:00
Cppcheck.xcodeproj Fix build error on XCode 2010-07-27 12:08:05 +02:00
cli Windows: Add _CRT_SECURE_NO_WARNINGS define. 2010-07-27 17:34:13 +03:00
gui GUI: Add lib to include- and dependency-directories. 2010-07-27 17:39:33 +03:00
htdocs
htmlreport
lib Windows: Add _CRT_SECURE_NO_WARNINGS define. 2010-07-27 17:34:13 +03:00
man manual: Added a chapter about the GUI 2010-07-13 16:23:02 +02:00
test Windows: Add _CRT_SECURE_NO_WARNINGS define. 2010-07-27 17:34:13 +03:00
tools updated dmake. updated Makefile (includes cleanup). 2010-07-27 15:25:03 +02:00
win_installer 1.44: updated version information 2010-07-10 11:29:07 +02:00
.gitignore Fix build error on XCode 2010-07-27 12:08:05 +02:00
AUTHORS added Martin Ettl to authors list 2010-06-07 12:23:29 +02:00
COPYING
Changelog Changelog: updated for release 2010-07-10 11:30:03 +02:00
Makefile updated dmake. updated Makefile (includes cleanup). 2010-07-27 15:25:03 +02:00
all.pro
build.bat
cppcheck.cbp Add testthreadexecutor.cpp 2010-06-14 23:18:09 +03:00
cppcheck.cbproj Borland C++: Updated project files 2010-07-19 21:29:39 +02:00
cppcheck.sln Moved shared files back into executable projects - it caused the instances of the checks to be optimized away 2010-04-14 17:52:46 +02:00
cppcheck_vs2010.sln
createrelease createrelease: more details about dmake 2010-05-08 19:07:49 +02:00
doxyfile
generate_coverage_report coverage report script: Extract only relevant data from the .info file. 2010-06-01 15:21:29 -03:00
readme.txt readme.txt: mention the online manual 2010-05-08 10:01:26 +02:00
readme_gui.txt
runastyle astyle: Update to astyle 1.24 2010-04-15 20:08:51 +02:00
runastyle.bat runastyle.bat: updated astyle script 2010-04-18 21:27:02 +02:00
testrunner.cbproj Borland C++: Updated project files 2010-07-19 21:29:39 +02:00
webreport.sh

readme.txt

=========
Cppcheck
=========


About

    The original name of this program is "C++check" but it was later changed to "cppcheck".


Compiling

    Any C++ compiler should work.

    To build the GUI, you need Qt. The command line tool doesn't have any dependencies.

    There are multiple compilation choices:
      * qmake - cross platform build tool - but only the GUI can be built
      * Visual Studio - Windows
      * gnu make
      * g++


    qmake
    =====
        You can use the gui/gui.pro file to build the gui.
            cd gui
            qmake
            make


    Visual Studio
    =============
        Use the cppcheck.sln file.


    gnu make
    ========
            make


    g++ (for experts)
    =================
        If you just want to build Cppcheck then you can use this command:
            g++ -o cppcheck -Ilib cli/*.cpp lib/*.cpp


Cross compiling Win32 (CLI) version of Cppcheck in Linux

    sudo apt-get install mingw32
    make CXX=i586-mingw32msvc-g++ LDFLAGS="-lshlwapi"
    mv cppcheck cppcheck.exe

Usage

    A manual is available online: http://cppcheck.sf.net/manual.pdf

Webpage

    http://www.sf.net/projects/cppcheck