Commit Graph

3059 Commits

Author SHA1 Message Date
Henrik Nilsson 628f4ad6e7 cppcheck-htmlreport now takes a parameter for source code encoding to support non ascii characters.
Also present a nicer error message if highlighting fail for a file.
2010-01-14 09:47:38 +01:00
Henrik Nilsson f6c24f9070 cppcheck-htmlreport now takes a --title parameter that will be displayed on top of every page. 2010-01-13 14:11:54 +01:00
Henrik Nilsson c4775b7ee4 Added !DOCTYPE declaration for html generated by the cppcheck-htmlreport tool. 2010-01-13 14:01:45 +01:00
Henrik Nilsson 5240e1a8bf cppcheck-htmlreport now annotates the highlighted source code with the cppcheck error message. 2010-01-12 21:35:54 +01:00
Henrik Nilsson e85cfd8041 Fixed some markup errors in generated html from the cppcheck-htmlreport script. 2010-01-12 20:34:55 +01:00
Robert Reif 5e8e4fd3e9 Fixed #1252 (Internal error in Cppcheck while parsing struct) 2010-01-12 17:38:36 +01:00
Robert Reif 7b6bf80057 Fixed #1250 (tokenize typedef of union) 2010-01-11 22:58:57 +01:00
Daniel Marjamäki d3b7f5931f Fixed #1174 (improve check: Unintialized variable not detected in subfunction) 2010-01-11 22:28:07 +01:00
Daniel Marjamäki c666a9662b BufferOverrun: negative index is out of bounds 2010-01-11 21:18:07 +01:00
Daniel Marjamäki b8b6b0ec32 Uninitialized variables: fixed false positives when using pointer aliasing 2010-01-11 19:25:01 +01:00
Robert Reif 94d5e32aa1 Fixed #1248 (tokenize typedef of array) 2010-01-11 17:09:04 +01:00
Daniel Marjamäki 8be54b592d ExecutionPath: better handling of for/while/do/switch, it doesn't bail out everything 2010-01-10 22:05:51 +01:00
Daniel Marjamäki c5966bba59 Fixed #1225 (false negative :: uninitialized variable not detected when using enums) 2010-01-10 20:36:15 +01:00
Daniel Marjamäki 3fb420cbf0 fixed unlogged errors from the tokenizer and also some errors reported by valgrind 2010-01-10 20:03:46 +01:00
Daniel Marjamäki 1c69d54fb3 ivoire: 64-bit portability fix 2010-01-10 17:30:35 +01:00
Daniel Marjamäki a50ec2eded memory leaks: better handling of loops and switch 2010-01-10 15:40:50 +01:00
Daniel Marjamäki f65bf6d565 Fixed #1220 (False memory leak when using while) 2010-01-10 14:00:32 +01:00
Daniel Marjamäki 3fabe53570 Memory leaks: Better handling of switch 2010-01-10 10:37:54 +01:00
Daniel Marjamäki b82cb2e41e Fixed #1218 (Improve check: incrementing uninitialized variable i++) 2010-01-10 09:09:37 +01:00
Robert Reif 19ba151531 Fixed #1244 (tokenize typedef of unnamed struct) 2010-01-10 08:49:02 +01:00
Daniel Marjamäki 4c641ed80c Fixed #1189 (false negative: using uninitialized variable i 'a[i] = 0;') 2010-01-09 22:26:05 +01:00
Daniel Marjamäki 0908728601 Fixed #1231 (Preprocessor: Fail to evaluate '#if ! defined _ABCD_') 2010-01-09 21:54:20 +01:00
Kimmo Varis c48eb090e0 Add "all" target for build.bat. 2010-01-09 13:54:56 +02:00
Kimmo Varis 888fe5ac9d Make release the default target in build.bat. 2010-01-09 13:49:54 +02:00
Kimmo Varis d1b43c521d Allow building both debug and release targets using build.bat. 2010-01-09 13:46:43 +02:00
Kimmo Varis b927255da0 Improve build.bat to support building from QT prompt. 2010-01-09 12:26:34 +02:00
Kimmo Varis fada751442 Fix build.bat after directory renames. 2010-01-09 12:09:00 +02:00
Kimmo Varis 940b51ed77 Update build2.bat to point to latest Qt SDK. 2010-01-09 11:34:00 +02:00
Daniel Marjamäki 6ec5b797ab Borland C++: Fixed compiler error 2010-01-09 10:24:35 +01:00
Daniel Marjamäki 2dd0907146 fixed segmentation fault 2010-01-08 21:54:24 +01:00
Daniel Marjamäki ca74f57fd0 Fixed #1237 (Uninitialized variable false positive for return-value pattern in pan source code.) 2010-01-08 21:24:48 +01:00
Robert Reif 60ef3ef872 Fixed #1233 (false positive: operator = should check for assignment to self) 2010-01-08 19:15:24 +01:00
Daniel Marjamäki 686137415f Fixed #1235 (CheckMemoryLeakInFunction: Wrong handling of 'fcloseall') 2010-01-07 21:36:51 +01:00
Kimmo Varis 83545ab11f Update batch file for latest Qt SDK location. 2010-01-07 20:32:35 +02:00
Robert Reif b30b07beee Fixed #1232 (segmentation fault of cppcheck when scanning templates) 2010-01-07 18:09:35 +01:00
Daniel Marjamäki b366dba682 After suggestion from Jim Vollner, remove dead pointers from the used list 2010-01-06 21:29:39 +01:00
Daniel Marjamäki 94b0cbbcff uncomment validation of Tokenizer::_tokensBack 2010-01-06 21:18:42 +01:00
Daniel Marjamäki 57d1da3910 Ticket #1228 : Handle tokensBack in the Token class. When adding&removing tokens the Token class can make sure that this pointer is updated accordingly. It is very important that the tokensBack has the same scope as the token list, otherwise there will be a dead pointer problem. 2010-01-06 20:19:27 +01:00
Daniel Marjamäki 485f3c7708 Fixed #1221 ([False positive] Member variable not initialized with operator[] gives wrong result) 2010-01-06 19:04:15 +01:00
Kimmo Varis 0010a98316 CMake - build Docbook manual in Linux.
Add XMLTO macro to build Docbook manual using xmlto program. xmlto
is not available in Windows so limit building to Linux.

Adds new target "html" to build which is not run automatically.
2010-01-06 12:54:27 +02:00
Kimmo Varis 0186d59cbe Fixed #1229 (GUI: project file not read when checking a file) 2010-01-06 11:34:02 +02:00
Kimmo Varis e1b30721cd Fixed #1226 (GUI: project include file relative path search problem)
Thanks for Robert Reif for finding and reporting problem in previous commit.
2010-01-06 03:15:56 +02:00
Kimmo Varis df64a15f2d Merge branch 'master' of github.com:danmar/cppcheck 2010-01-06 01:40:52 +02:00
Kimmo Varis 5bb3c5898b Fixed #1226 (GUI: project include file relative path search problem) 2010-01-06 01:40:26 +02:00
Reijo Tomperi ff0573998a Added more validating code to tokenizer. Currently commented out. 2010-01-06 01:32:05 +02:00
Kimmo Varis 16df0e69b2 Add lib directory to gui "project file" include. 2010-01-06 01:12:59 +02:00
Robert Reif e6cc897e29 Fixed #1224 (segmentation fault of cppcheck) 2010-01-05 21:55:33 +01:00
Kimmo Varis a753c41ced CMake - Include test project's header file to VS IDE project. 2010-01-05 22:16:53 +02:00
Kimmo Varis 4c2a77db9b CMake - Include test project when creating VS IDE project. 2010-01-05 22:11:48 +02:00
Robert Reif 13f627d0d5 Fixed #1215 (are enums processed properly?) 2010-01-04 17:22:06 +01:00