static analysis of C/C++ code
Go to file
Daniel Marjamäki 03bcdf9e6e Tokenize: improved the preprocessing of 'sizeof(type)' 2007-05-28 06:17:18 +00:00
internaltesting Test: Updated "testloop" 2007-05-19 19:23:34 +00:00
testbufferoverrun1 Test: minor update to TestBufferOverrun1 2007-05-21 17:19:26 +00:00
testbufferoverrun2 Test: Updated 'TestBufferOverrun2'. Bufferusage out of bounds. 2007-05-21 17:18:50 +00:00
testbufferoverrun3 Test: Buffer overrun 2007-05-21 09:54:42 +00:00
testbufferoverrun4 Test: Added 'TestBufferOverrun4' 2007-05-21 17:17:11 +00:00
testbufferoverrun5 Tests: Added 'TestBufferOverrun5' 2007-05-21 18:04:19 +00:00
testbufferoverrun6 Test: Added a buffer overrun test that contains a calculation that points at an illegal index 2007-05-26 06:43:35 +00:00
testclass1 Testing: Added warning messages. 2007-05-21 17:16:35 +00:00
testclass2 Testing: Added warning messages. 2007-05-21 17:16:35 +00:00
testclass4 Testing: Added warning messages. 2007-05-21 17:16:35 +00:00
testclass7 Testing: Added warning messages. 2007-05-21 17:16:35 +00:00
testclass8 Testing: Added warning messages. 2007-05-21 17:16:35 +00:00
testclass10 Testing: Added warning messages. 2007-05-21 17:16:35 +00:00
testclass12 Testing: Renamed 'warnclass12' to 'testclass12' 2007-05-18 18:24:13 +00:00
testdangerousfunc1 Buffer Overrun: Using dangerous functions 2007-05-20 17:02:24 +00:00
testdelete1 Testing: Added warning messages. 2007-05-21 17:16:35 +00:00
testfunc2 Added files from local repository. 2007-05-07 17:31:35 +00:00
testfunc3 Added files from local repository. 2007-05-07 17:31:35 +00:00
testh1 Testing: Added warning messages. 2007-05-21 17:16:35 +00:00
testh2 Testing: Added warning messages. 2007-05-21 17:16:35 +00:00
testh5 Testing: Added warning messages. 2007-05-21 17:16:35 +00:00
testif1 Test: Added "testif1", contains "if (ab);" 2007-05-19 19:20:43 +00:00
testmemcheck1 Test: updated the error message output by memcheck1 2007-05-16 17:17:29 +00:00
testmemcheck2 Added test for memory checking 2007-05-17 17:25:50 +00:00
testmemcheck3 Testing: memcheck3 - new and delete (no error) 2007-05-18 17:51:35 +00:00
testmemcheck4 Test: Updated 'testmemcheck4' and 'testmemcheck5' (continue/break) 2007-05-20 06:36:47 +00:00
testmemcheck5 Test: Updated 'testmemcheck4' and 'testmemcheck5' (continue/break) 2007-05-20 06:36:47 +00:00
testmemset1 Added files from local repository. 2007-05-07 17:31:35 +00:00
teststdfunc1 Tests: Modified the test 'teststdfunc1'. Warnings has been deactivated. 2007-05-18 18:27:04 +00:00
CheckBufferOverrun.cpp CheckBufferOverrun: Improved checking for types other than char 2007-05-26 06:41:41 +00:00
CheckBufferOverrun.h CheckBufferOverrun: Added 'CheckDangerousFunctions' 2007-05-25 06:44:53 +00:00
CheckClass.cpp CheckClass: Moved 'IsName' from main to commoncheck 2007-05-25 06:47:04 +00:00
CheckClass.h CheckClass; Added files (Check for mistakes related to classes) 2007-05-24 13:07:30 +00:00
CheckHeaders.cpp CheckHeaders: Added files (Check for mistakes in headers or related to headers) 2007-05-24 13:08:18 +00:00
CheckHeaders.h CheckHeaders: Added files (Check for mistakes in headers or related to headers) 2007-05-24 13:08:18 +00:00
CheckMemoryLeak.cpp CheckMemoryLeak: Added files (Check for memory leaks) 2007-05-24 13:08:51 +00:00
CheckMemoryLeak.h CheckMemoryLeak: Added files (Check for memory leaks) 2007-05-24 13:08:51 +00:00
CheckOther.cpp CheckOther: Added files. This will contain checks that don't fit in the other checking files. 2007-05-25 06:51:18 +00:00
CheckOther.h CheckOther: Added files. This will contain checks that don't fit in the other checking files. 2007-05-25 06:51:18 +00:00
CommonCheck.cpp CommonCheck: Moved 'IsName' and 'IsNumber' from main.cpp 2007-05-25 06:45:47 +00:00
CommonCheck.h CommonCheck: Moved 'IsName' and 'IsNumber' from main.cpp 2007-05-25 06:45:47 +00:00
Makefile Makefile: Updated because the program has been split up into several files. 2007-05-26 06:42:31 +00:00
Statements.cpp Statements: Moved 'IsName' from main to commoncheck 2007-05-25 06:47:45 +00:00
Statements.h CheckClass; Added files (Check for mistakes related to classes) 2007-05-24 13:07:30 +00:00
TestTok.cpp tok: Added a program that tests the tokenizer. 2007-05-26 06:45:00 +00:00
checknpp.bat Updated script that checks notepad++ 2007-05-10 17:24:52 +00:00
cppcheck.bpf Files needed to build with Borland C++ Builder 2007-05-08 15:21:24 +00:00
cppcheck.bpr cppcheck: added checkothers to the project 2007-05-25 06:52:02 +00:00
cppcheck.res Files needed to build with Borland C++ Builder 2007-05-08 15:21:24 +00:00
internaltesting.bat Building Statement List: CONTINUE, BREAK 2007-05-19 17:01:42 +00:00
main.cpp Main: Moved 'IsName' and 'IsNumber' to commoncheck. Moved remaining checks to checkother and checkbufferoverrun. 2007-05-25 06:48:56 +00:00
readme.txt readme: minor updates 2007-05-23 07:49:44 +00:00
tok.bpf tok: Added a program that tests the tokenizer. 2007-05-26 06:45:00 +00:00
tok.bpr tok: Added a program that tests the tokenizer. 2007-05-26 06:45:00 +00:00
tok.res tok: Added a program that tests the tokenizer. 2007-05-26 06:45:00 +00:00
tokenize.cpp Tokenize: improved the preprocessing of 'sizeof(type)' 2007-05-28 06:17:18 +00:00
tokenize.h CheckClass; Added files (Check for mistakes related to classes) 2007-05-24 13:07:30 +00:00

readme.txt

=========
C++ check
=========


Compiling

  Any C++ compiler should work. 
  There are no dependencies.

  Linux:
      g++ -o cppcheck main.cpp

  Windows:
      gxx -o cppcheck main.cpp



Usage

  The syntax is:
      cppcheck [-w] filename.cpp

  The error messages will be printed to stderr.

  If you specify '-w', additional warning 
  messages will be printed.



Recommendations

  Create a shell script that checks all files.



Author

  Daniel Marjamäki
  A 29 year old from sweden who works in
  Stockholm as a programmer (developing 
  a RAD tool for control systems that
  control hydraulics).