static analysis of C/C++ code
Go to file
Daniel Marjamäki 8a0d989190 Refactoring: Don't throw exceptions in the tokenizer upon errors. Ticket: #1866 2010-07-23 14:02:29 +02:00
Cppcheck.xcodeproj
cli Update Visual Studio projects. 2010-07-17 17:59:47 +03:00
gui pulled changes from kimmov (filelocation-refactor) 2010-07-19 18:06:49 +02:00
htdocs webpage: removed main.html and top.html 2009-11-08 19:26:59 +01:00
htmlreport cppcheck-htmlreport now takes a parameter for source code encoding to support non ascii characters. 2010-01-14 09:47:38 +01:00
lib Refactoring: Don't throw exceptions in the tokenizer upon errors. Ticket: #1866 2010-07-23 14:02:29 +02:00
man manual: Added a chapter about the GUI 2010-07-13 16:23:02 +02:00
test Refactoring: The preprocessor will report errors instead of throwing exceptions. Ticket: #1866 2010-07-23 13:54:52 +02:00
tools
win_installer
.gitignore
AUTHORS
COPYING
Changelog
Makefile
all.pro
build.bat
cppcheck.cbp
cppcheck.cbproj
cppcheck.sln
cppcheck_vs2010.sln
createrelease
doxyfile
generate_coverage_report
readme.txt
readme_gui.txt
runastyle
runastyle.bat runastyle.bat: updated astyle script 2010-04-18 21:27:02 +02:00
testrunner.cbproj
webreport.sh webreport: detect duplicate code 2010-04-03 14:16:29 +02:00

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