static analysis of C/C++ code
Go to file
Daniel Marjamäki 148ac8a57a CheckHeaders: Bug fix 2007-06-08 16:57:20 +00:00
internaltesting Tokenize: Simplify declarations 2007-05-29 06:24:36 +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
testfunc4 Invalid Function Parameter: Check calls to strtol and strtoul 2007-06-05 18:58:27 +00:00
testfunc5 Added check: suspicious usage of strtok 2007-06-05 20:29:03 +00:00
testfunc6 Added check: "if (condition) var=true;" can be written as "var|=(condition);" 2007-06-06 17:33:28 +00:00
testh1 Tests: Updated the tests. Checking for unneeded includes 2007-06-04 06:36:08 +00:00
testh2 Tests: Updated the tests. Checking for unneeded includes 2007-06-04 06:36:08 +00:00
testh5 Testing: Added warning messages. 2007-05-21 17:16:35 +00:00
testh6 CheckHeaders: Check if all included headers are needed 2007-06-08 16:46:06 +00:00
testif1 Test: Added "testif1", contains "if (ab);" 2007-05-19 19:20:43 +00:00
testif2 Test: Updated 'testif2' which is testing the 'a=b; if (a!=b)' 2007-06-02 16:37:06 +00:00
testif3 Test: Test that 'a=b; if (a==b)' is detected 2007-06-02 16:32:45 +00:00
testif4 Test: Test that 'a=b; if (a==b)' don't generate false positives 2007-06-02 16:33:46 +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 Buffer overrun: also check the 'memcopy' parameters. 2007-06-05 20:29:58 +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: Bug fix 2007-06-08 16:57:20 +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 Modified comments 2007-06-08 16:46:51 +00:00
CheckMemoryLeak.h CheckMemoryLeak: Added files (Check for memory leaks) 2007-05-24 13:08:51 +00:00
CheckOther.cpp Modified comments 2007-06-08 16:46:51 +00:00
CheckOther.h Added check: suspicious usage of strtok 2007-06-05 20:29:03 +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 minor updates 2007-05-29 17:12:14 +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 Added check: suspicious usage of strtok 2007-06-05 20:29:03 +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 minor updates 2007-05-29 17:12:14 +00:00
tok.res tok: Added a program that tests the tokenizer. 2007-05-26 06:45:00 +00:00
tokenize.cpp tokenize: bug fixes. Handling typedefs. 2007-06-03 17:08:30 +00:00
tokenize.h tokenizer: made the 'SizeOfType' public. bug fix in the tokenizer (strings longer than 1000 characters). 2007-05-30 20:08:05 +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).