static analysis of C/C++ code
Go to file
Robert Reif c5b81c6a79 add another test case for #2614 (missing varid on function parameter) 2011-04-22 21:23:40 -04:00
Cppcheck.xcodeproj
cli astyle formatting 2011-04-16 12:08:26 +02:00
cmake/modules
externals/tinyxml
gui GUI: Move internal error option to Advanced-tab. 2011-04-16 18:55:53 +03:00
htdocs Web: Use Orbitron font for page head 2011-04-22 13:58:56 +02:00
htmlreport html report: better handling of non ASCII characters in C source code 2011-04-16 11:22:44 +02:00
lib Fixed #2740 (inline cmd // cppcheck-suppress does not work anymore for 1.48) 2011-04-22 20:25:17 +02:00
man
rules
scripts
test add another test case for #2614 (missing varid on function parameter) 2011-04-22 21:23:40 -04:00
tools Makefile: handle case where LDFLAGS is already defined (in dmake) 2011-04-23 00:20:38 +12:00
win_installer Change dialog bitmap from windows installer 2011-04-22 14:28:22 +02:00
.gitignore
AUTHORS
CMakeLists.txt
COPYING
Changelog
Makefile Makefile: handle case where LDFLAGS is already defined 2011-04-22 11:07:49 +12:00
build-pcre.txt
build.bat
cppcheck.cbp
cppcheck.cppcheck
cppcheck.sln
cppcheck_vs2010.sln
createrelease
doxyfile
generate_coverage_report
readme.txt Makefile: added option for compiling with/without rules 2011-04-19 20:53:40 +02:00
readme_64-bit_Windows.txt
readme_gui.txt
runastyle
runastyle.bat
webreport.sh

readme.txt

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


About

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

Manual

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

Compiling

    Any C++ compiler should work.

    To build the GUI, you need Qt.

    To build the command line tool, no dependencies are required. However for
    the handling of rules, PCRE is needed.

    There are multiple compilation choices:
      * qmake - cross platform build tool
      * Windows: Visual Studio
      * Windows: Qt Creator + mingw
      * 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. The pcre dll is needed, it can be downloaded from:
            http://cppcheck.sf.net/pcre-8.10-vs.zip

    Qt Creator + mingw
    ==================
        The PCRE dll is needed to build the CLI. It can be downloaded here:
            http://software-download.name/pcre-library-windows/

    gnu make
    ========
        To build Cppcheck with rules (pcre dependency):
            make

        To build Cppcheck without rules (no dependencies):
            make HAVE_RULES=no

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

        If you want to use --rule and --rule-file then dependencies are needed:
            g++ -o cppcheck -lpcre -DHAVE_RULES -Ilib -Iexternals cli/*.cpp lib/*.cpp externals/tinyxml/*.cpp
    mingw
    =====
        make LDFLAGS=-lshlwapi

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

Webpage

    http://cppcheck.sourceforge.net/