diff --git a/Changelog b/Changelog index 0401baaf5..78500b22a 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,2215 @@ +2009-08-16 Slava Semushin + + * .gitignore: .gitignore: added src/Makefile generated by qmake. + +2009-08-16 Slava Semushin + + * src/checkautovariables.cpp: CheckAutoVariables(autoVariables): + make code more readable. - Reduce indentation - Don't check bindent in many conditions - Move inner if-s to outer condition Should be no functional change. + +2009-08-16 Slava Semushin + + * src/checkautovariables.cpp: CheckAutoVariables: const modifier + propagation. No functional change. + +2009-08-16 Slava Semushin + + * src/checkautovariables.cpp: CheckAutoVariables: don't save and + search for local variables with varId 0. + +2009-08-16 Slava Semushin + + * src/checkautovariables.cpp: CheckAutoVariables: added braces. No functional change. + +2009-08-16 Slava Semushin + + * src/checkautovariables.cpp: + CheckAutoVariables(returnPointerToLocalArray): replace std::list to + std::set Use std::set and std::set::find() instead of std::list and + std::find(). First should be faster (runs in the logarithmic time) + than second (runs in linear time). No functional change. + +2009-08-16 Slava Semushin + + * src/checkautovariables.cpp, src/checkautovariables.h: + CheckAutoVariables: change type of vp_list member to std::set. Change type of vda_list from std::list to std::set. It allows to us + use find() method instead of self-written loop which may be slow. No functional change. + +2009-08-16 Slava Semushin + + * src/checkautovariables.cpp, src/checkautovariables.h: + CheckAutoVariables: change type of vd_list member to std::set. Change type of vda_list from std::list to std::set. It allows to us + use find() method instead of self-written loop which may be slow. No functional change. + +2009-08-16 Slava Semushin + + * src/checkautovariables.cpp, src/checkautovariables.h: + CheckAutoVariables: change type of vda_list member to std::set. Change type of vda_list from std::list to std::set. It allows to us + use find() method instead of self-written loop which may be slow. No functional change. + +2009-08-16 Slava Semushin + + * src/checkautovariables.cpp, src/checkautovariables.h: + CheckAutoVariables: use varId instead of variable names. This change similar to be89be8c30326954369c6132c6ebfb47d5ea0ab0 but + for vd_list member. + +2009-08-16 Slava Semushin + + * src/checkautovariables.cpp, src/checkautovariables.h, + test/testautovariables.cpp: Fixed #590 (False positive: Invalid + deallocation when variables have same name) http://sourceforge.net/apps/trac/cppcheck/ticket/590 + +2009-08-16 Daniel Marjamäki + + * gui/cppcheck_se.ts: Swedish: Updated the translation file + +2009-08-15 Reijo Tomperi + + * gui/csvreport.cpp, src/filelister.cpp: line change and encoding + fixes + +2009-08-15 Slava Semushin + + * src/preprocessor.cpp, src/preprocessor.h: Fixed #588 + (Preprocessor: Sort the configurations) http://sourceforge.net/apps/trac/cppcheck/ticket/588 + +2009-08-14 danmar + + * src/checkmemoryleak.h, src/tokenize.h: Visual C++: Fixed + testrunner compilation problems + +2009-08-14 danmar + + * cppcheck.cbproj, src/filelister.cpp: Borland C++ Builder: Fixed + compilation problems when compiling cppcheck + +2009-08-14 Reijo Tomperi + + * src/preprocessor.cpp, test/testpreprocessor.cpp: fix ticket #586 + (Preprocessor: Lines like "#error don't" can cause "no pair for + character" errors) + http://sourceforge.net/apps/trac/cppcheck/ticket/586 + +2009-08-13 Daniel Marjamäki + + * src/mathlib.cpp: mathlib: minor fix + +2009-08-13 danmar + + * src/checkbufferoverrun.cpp, src/mathlib.cpp, src/token.cpp, + test/testmemleak.cpp, testrunner.cbproj: Borland C++ Builder: Fixed + compilation and testrunner problems + +2009-08-12 Reijo Tomperi + + * cppcheck.cbp, src/classinfo.h, src/tokenize.cpp, src/tokenize.h, + test/testtokenize.cpp: Initial work for class and member + function/variable list in tokenizer. + +2009-08-12 Daniel Marjamäki + + * test/testpreprocessor.cpp: preprocessor: added todo testcase for + detecting redundant preprocessor conditions + +2009-08-12 Daniel Marjamäki + + * src/checkother.cpp, test/testother.cpp: Fixed #583 (False + positive: the nullpointer check doesn't handle goto properly) + +2009-08-12 Slava Semushin + + * test/testautovariables.cpp, test/testother.cpp: Fixed ticket #541 + (Wrong testcases produce unlogged error at Tokenizer::syntaxError) http://sourceforge.net/apps/trac/cppcheck/ticket/541 + +2009-08-12 Slava Semushin + + * src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #584 + (Tokenizer: don't set varId for class declaration) http://sourceforge.net/apps/trac/cppcheck/ticket/584 + +2009-08-11 Daniel Marjamäki + + * src/checkother.cpp, src/checkother.h, test/testother.cpp: + Refactoring: updated the nullPointer message so it contains the name + of the pointer + +2009-08-10 Daniel Marjamäki + + * src/checkmemoryleak.cpp, src/checkmemoryleak.h, + test/testmemleak.cpp: Fixed #566 (False positive when assigning the + return value of realloc(NULL,..) to a pointer variable holding a + freed memory address) + +2009-08-10 Daniel Marjamäki + + * src/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #582 + (Preprocessor: Remove assembler code inside pragmas) + +2009-08-10 Reijo Tomperi + + * src/checkclass.cpp, test/testclass.cpp: Fixed ticket #578 (missing + virtual destructor not detected) + http://sourceforge.net/apps/trac/cppcheck/ticket/578 + +2009-08-09 Vesa Pikki + + * gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts, + gui/cppcheck_pl.ts, gui/cppcheck_ru.ts, gui/cppcheck_se.ts, + gui/gui.pro, gui/translationhandler.cpp: Added a Polish translation + file. Also added some missing Finnish and English translations. + +2009-08-09 Daniel Marjamäki + + * src/checkclass.cpp, test/testclass.cpp: Hoangtuansu: Fixed #537 + (false positive::operator= should return something) + +2009-08-09 Daniel Marjamäki + + * win_installer/cppcheck.wxs: Created an experimental wix + installation file + +2009-08-09 Gianluca Scacco + + * src/checkautovariables.cpp: Style check + +2009-08-09 Gianluca Scacco + + * test/testautovariables.cpp: Added new test for invalid + deallocation + +2009-08-09 Gianluca Scacco + + * src/checkautovariables.cpp, src/checkautovariables.h: Invalid + deallocation check done + +2009-08-09 Slava Semushin + + * src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #574 + (Tokenizer: not assign varId when variable first afer keyword and + has long type) http://sourceforge.net/apps/trac/cppcheck/ticket/574 + +2009-08-09 Slava Semushin + + * src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #572 + (Tokenizer: improve detection of arrays) http://sourceforge.net/apps/trac/cppcheck/ticket/572 + +2009-08-09 Slava Semushin + + * src/checkstl.cpp, test/teststl.cpp: Fixed ticket #573 (False + positive of set range check when we dereferencing iterator) http://sourceforge.net/apps/trac/cppcheck/ticket/573 + +2009-08-09 Slava Semushin + + * src/checkbufferoverrun.cpp: checkbufferoverrun.cpp: get rid of + Match() usage with varid 0. + +2009-08-08 Slava Semushin + + * src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed + ticket #570 (Buffer overrun not detected when sprintf() format + string greater then buffer size) http://sourceforge.net/apps/trac/cppcheck/ticket/570 + +2009-08-08 Slava Semushin + + * src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed + ticket #571 (Buffer overrun for sprintf() not detected after first + ')' symbol) http://sourceforge.net/apps/trac/cppcheck/ticket/571 + +2009-08-08 Slava Semushin + + * src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #565 + (Tokenizer: simplify variable declaraion like 'int z = x >> 16') http://sourceforge.net/apps/trac/cppcheck/ticket/565 + +2009-08-08 Reijo Tomperi + + * src/tokenize.cpp: Improve speed with files containing classes. + E.g. measured speed difference was 1m11.042s --> 0m45.005s with one + large test file. + +2009-08-07 Daniel Marjamäki + + * src/checkstl.cpp, test/teststl.cpp: Fixed #525 (false positive: + vector range checking with <) + +2009-08-07 Reijo Tomperi + + * src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #564 + (set variable id for "struct ABC **p") + http://sourceforge.net/apps/trac/cppcheck/ticket/564 + +2009-08-06 Reijo Tomperi + + * src/checkbufferoverrun.cpp, src/tokenize.cpp, + test/testsimplifytokens.cpp: Fix ticket #563 (set variable id for + **p) http://sourceforge.net/apps/trac/cppcheck/ticket/563 + +2009-08-06 Daniel Marjamäki + + * src/checkbufferoverrun.cpp: Bail out if variable id is 0. This + should be reverted when #563 has been fixed + +2009-08-05 Reijo Tomperi + + * src/tokenize.cpp: Improve speed a lot for files that have long + number lists like = { 0,1,2,3,4, etc. } + +2009-08-05 Daniel Marjamäki + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #555 (False + positive: [CuTest.c:25]: (error) Memory leak: len) + +2009-08-05 Daniel Marjamäki + + * src/tokenize.cpp, test/testtokenize.cpp: Fixed #558 (Tokenizer: + Bad simplification of 'for(unsigned i = 0; i < 100; ++i)') + +2009-08-05 Daniel Marjamäki + + * src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #528 + (Tokenizer: Simplify: 'if(!(a->x=b()))') + +2009-08-04 Reijo Tomperi + + * : commit c6a1f173182b128a8f03168cd48265f8b66e44b2 Author: Reijo + Tomperi Date: Tue Aug 4 22:41:32 + 2009 +0300 + +2009-08-04 Daniel Marjamäki + + * src/check.h, src/checkautovariables.h, + src/checkbufferoverrun.cpp, src/checkbufferoverrun.h, + src/checkclass.h, src/checkdangerousfunctions.h, + src/checkmemoryleak.cpp, src/checkmemoryleak.h, src/checkother.h, + src/checkstl.h, src/cppcheck.cpp: Listing error messages in XML + format + +2009-08-04 Daniel Marjamäki + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #554 + (resource leak false positive) + +2009-08-04 Daniel Marjamäki + + * src/checkother.h, src/tokenize.h, test/testmemleak.cpp, + test/testredundantif.cpp, test/testsimplifytokens.cpp, + test/testtokenize.cpp: Refactoring the unit testing + +2009-08-04 Reijo Tomperi + + * src/checkclass.cpp, test/testclass.cpp: Fix ticket #531 (false + positive about missing virtual destructor) + http://sourceforge.net/apps/trac/cppcheck/ticket/531 + +2009-08-03 Kimmo Varis + + * gui/test.cpp: Oops. Didn't mean to commit the change to + gui/test.cpp. But since I did, lets remove the linefeeds and make + the function look like it gets called. + +2009-08-02 Reijo Tomperi + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: Fix ticket #552 + (False positive with --all when realloc is used with two variables.) + http://sourceforge.net/apps/trac/cppcheck/ticket/552 + +2009-08-02 Reijo Tomperi + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: TODO test case + realloc5 added and "Checkmemoryleak: simplifycode result for" debug + info added. + +2009-08-02 Reijo Tomperi + + * gui/test.cpp, src/mathlib.cpp, src/tokenize.cpp: astyle fix + +2009-08-02 Slava Semushin + + * src/checkbufferoverrun.cpp: src/checkbufferoverrun.cpp: fixed + regression. + +2009-08-02 Slava Semushin + + * src/checkbufferoverrun.cpp: src/checkbufferoverrun.cpp: don't call + Token::Match() for variables with varId 0. + +2009-08-02 Slava Semushin + + * src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Improved + "index out of bounds" check. Corrected 342acaaaf2f56e1de18371a1a726425127939178 commit. + +2009-08-02 Slava Semushin + + * test/testbufferoverrun.cpp: test/testbufferoverrun.cpp: improve + test cases. + +2009-08-02 Slava Semushin + + * src/mathlib.cpp, src/mathlib.h, src/tokenize.cpp: MathLib: + introduce and use calculate() method. No functional change. + +2009-08-02 Kimmo Varis + + * gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts, + gui/cppcheck_ru.ts, gui/cppcheck_se.ts: GUI: update translation + files. + +2009-08-02 Kimmo Varis + + * gui/common.h, gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h, + gui/resultstree.cpp, gui/test.cpp: Add 'possible style error' + severity for the GUI. Fixes ticket #436 (GUI: All style -severity). The possible style + errors can be now selected visible / hidden so all severities have + their own menu item. + +2009-08-02 Kimmo Varis + + * gui/mainwindow.cpp: GUI: Use native path separators in main window + caption. + +2009-08-02 Slava Semushin + + * src/tokenize.cpp: src/tokenize.cpp: don't call std::string.c_str() + for Token::str() argument. In 4286fdbabb64014fd6ef968e163257a977400d3e commit I introduce + Token::str() method with std::string argument and now we may get rid + of useless std::string.c_str() calls. No functional change. + +2009-08-02 Slava Semushin + + * src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #549 + (Tokenizer: improve calculation simplification) http://sourceforge.net/apps/trac/cppcheck/ticket/549 + +2009-08-02 Slava Semushin + + * src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed #547 + (index out of bounds not detected when addition used as array index) http://sourceforge.net/apps/trac/cppcheck/ticket/547 + +2009-08-01 Slava Semushin + + * src/tokenize.cpp, test/testtokenize.cpp: Fixed #542 (Tokenizer: + allow numbers in templates parameters) http://sourceforge.net/apps/trac/cppcheck/ticket/542 + +2009-08-01 Kimmo Varis + + * : commit 5ce15eeb232e3f4a73b4285e0e5fb4c187ce443f Author: Kimmo + Varis Date: Sat Aug 1 18:28:21 2009 +0300 + +2009-08-01 Slava Semushin + + * src/checkstl.cpp: src/checkstl.cpp(iterators): some corrections. Corrections for my changes in + 12ca70fe5a61fa9a7b847411ca23329c52544402 and + 347802f81983bf94494c50bd71522f5c5d8f1e15 commits. + +2009-08-01 Slava Semushin + + * src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #539 + (Tokenizer: don't replace constants variables with varid 0) http://sourceforge.net/apps/trac/cppcheck/ticket/539 + +2009-08-01 Daniel Marjamäki + + * src/preprocessor.cpp, test/testpreprocessor.cpp: preprocessor: + fixed problem in Preprocessor::expandMacros when macro argument is + for example 'unsigned long' + +2009-08-01 Daniel Marjamäki + + * src/checkother.cpp, test/testother.cpp: null pointers: fixed a + false positive + +2009-08-01 Kimmo Varis + + * gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts, + gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/resultsview.cpp: GUI: + Make two report saving errors translatable. + +2009-07-31 Daniel Marjamäki + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #511 (false + positive, memory leak when using 'var = ({});') + +2009-07-31 Kimmo Varis + + * gui/resultsview.cpp: GUI: Fix bug that GUI didn't close the report + file. + +2009-07-31 Kimmo Varis + + * gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts, + gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/mainwindow.h, + gui/resultstree.cpp: GUI: Fix GUI to recognize and use "possible + error" type (was "all" earlier). + +2009-08-01 Slava Semushin + + * src/checkstl.cpp, src/tokenize.cpp, test/testtokenize.cpp: Fixed + #521 (Tokenizer: improve static variable detection) Also change cppcheck default behavior to don't show "If you see + this, there is a bug" message for each variable without varId. This + feature was very helpful for developers but may annoying users. http://sourceforge.net/apps/trac/cppcheck/ticket/521 + +2009-07-31 Slava Semushin + + * src/tokenize.cpp: Fixed ticket #534 (Segmentation fault when + checking VLC sourcecode) Fixed all valgrind errors. http://sourceforge.net/apps/trac/cppcheck/ticket/534 + +2009-07-31 Daniel Marjamäki + + * test/testtokenize.cpp: astyle formatting + +2009-07-31 Daniel Marjamäki + + * src/checkother.cpp, test/testother.cpp: null pointers: detect when + there are possible null pointer dereferencing when looping through a + linked list both in inner and outer loops at the same time + +2009-07-30 Daniel Marjamäki + + * test/testother.cpp: null pointers: Added a todo testcase + +2009-07-31 Slava Semushin + + * src/checkstl.cpp, test/teststl.cpp: Fixed ticket #503 + (Dereferencing after erase() not work if we try to get access to + member) http://sourceforge.net/apps/trac/cppcheck/ticket/503 + +2009-07-31 Slava Semushin + + * src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #523 + (Tokenizer: set varId for types with long namespaces) FIXME: skip namespaces by the best way. http://sourceforge.net/apps/trac/cppcheck/ticket/533 + +2009-07-31 Slava Semushin + + * src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #532 + (Tokenizer: set varId for types which have comma in template + parameter) http://sourceforge.net/apps/trac/cppcheck/ticket/532 + +2009-07-30 Slava Semushin + + * src/checkstl.cpp: src/checkstl.cpp(iterators): skip already + processed tokens. No functional change. + +2009-07-30 Slava Semushin + + * src/checkstl.cpp: src/checkstl.cpp(iterators): simplify condition. + +2009-07-30 Slava Semushin + + * src/checkstl.cpp: src/checkstl.cpp(iterators): fixed coding + mistake. + +2009-07-30 Reijo Tomperi + + * src/cppcheck.cpp: include for clock_t (fix compile + problem) + +2009-07-30 Daniel Marjamäki + + * src/preprocessor.cpp, src/preprocessor.h, + test/testpreprocessor.cpp: Preprocessor: Speedup of the + match_cfg_def function + +2009-07-30 Reijo Tomperi + + * test/testsimplifytokens.cpp: Added more tests to test case + TestSimplifyTokens::ifassign1 + +2009-07-30 Reijo Tomperi + + * src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #529 + (Tokenizer: simplify if((x==0))) + http://sourceforge.net/apps/trac/cppcheck/ticket/529 + +2009-07-29 Daniel Marjamäki + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leak for + struct member: fixed false positive when the struct pointer is + stored away + +2009-07-29 Daniel Marjamäki + + * src/checkother.cpp, test/testother.cpp: null pointers: Fixed false + positive when 'do' are used + +2009-07-29 Slava Semushin + + * src/checkstl.cpp, test/teststl.cpp: Fixed ticket #524 (Containers + range check shouldn't stop at first founded error) http://sourceforge.net/apps/trac/cppcheck/ticket/524 + +2009-07-29 Slava Semushin + + * src/checkstl.cpp: src/checkstl.cpp(stlBoundries): simplify + condition. No functional change. + +2009-07-29 Slava Semushin + + * src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #522 + (Tokenizer: recognize comma in container with STL type declaration) http://sourceforge.net/apps/trac/cppcheck/ticket/522 + +2009-07-29 Slava Semushin + + * src/checkstl.cpp: src/checkstl.cpp(iterators): reduce indentation. No functional change. + +2009-07-29 Slava Semushin + + * src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #520 + (Tokenizer: properly set varId for containers with STL types) http://sourceforge.net/apps/trac/cppcheck/ticket/520 + +2009-07-28 Slava Semushin + + * src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #519 + (Tokenizer converts commas in for-loops) http://sourceforge.net/apps/trac/cppcheck/ticket/519 + +2009-07-28 Slava Semushin + + * src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #514 + (false positive:: memory leak when using comma near delete[]) http://sourceforge.net/apps/trac/cppcheck/ticket/514 + +2009-07-28 Slava Semushin + + * test/testautovariables.cpp: test/testautovariables.cpp: renamed + some testcases. Make it readable. No functional change. + +2009-07-28 Slava Semushin + + * src/checkautovariables.cpp, test/testautovariables.cpp: + checkautovariables: added newlines to make code more readable. No code change. + +2009-07-28 Slava Semushin + + * src/checkautovariables.cpp, test/testautovariables.cpp: Fixed + ticket #517 (False positive for extern variables: return of the + address of an auto-variable) http://sourceforge.net/apps/trac/cppcheck/ticket/517 + +2009-07-27 Slava Semushin + + * src/checkclass.cpp, src/checkmemoryleak.cpp, src/checkother.cpp: + Replace Match() to operator==() from std::string. No functional change. + +2009-07-27 Slava Semushin + + * src/checkautovariables.cpp, src/checkclass.cpp, + src/checkmemoryleak.cpp, src/checkother.cpp, src/checkstl.cpp, + src/checkunusedfunctions.cpp, src/preprocessor.cpp, + src/tokenize.cpp: Replace simpleMatch() to operator==() from + std::string. No functional change. + +2009-07-27 Slava Semushin + + * src/checkautovariables.cpp: + src/checkautovariables.cpp(autoVariables): simplify condition. No functional change. + +2009-07-27 Slava Semushin + + * src/checkautovariables.cpp: src/checkautovariables.cpp: assign + default value to std::string during object creation. No functional change. + +2009-07-27 Daniel Marjamäki + + * src/cppcheck.cpp, src/settings.cpp, src/settings.h: gcc: added an + option '--showtime' => show some simple timing information + +2009-07-27 Reijo Tomperi + + * test/testsimplifytokens.cpp: Improve test case + TestSimplifyTokens::comma_keyword + +2009-07-26 Reijo Tomperi + + * src/preprocessor.cpp: Update to ticket #265 (Log a warning when an + include file is not found) Only warn about "foo.h", don't warn about + http://sourceforge.net/apps/trac/cppcheck/ticket/265 + +2009-07-26 Daniel Marjamäki + + * src/tokenize.cpp, test/testsimplifytokens.cpp: astyle formatting + +2009-07-26 Slava Semushin + + * src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fixed + ticket #499 (buffer overflow not detected when using macros) sprintf() buffer overrun detection works wrong due to typo (since + time when it was added in commit + a604f56f1960d3abe7a7c4bbc221bf62ccb676a2). Also reports buffer overrun when sprintf() writes bytes equal to + buffer size -- in this case off-by-one error appears. http://sourceforge.net/apps/trac/cppcheck/ticket/499 + +2009-07-26 Slava Semushin + + * src/tokenize.cpp, src/tokenize.h, test/testsimplifytokens.cpp: + Fixed ticket #496 (Tokenizer: simplify statements with "," better) https://sourceforge.net/apps/trac/cppcheck/ticket/496 + +2009-07-26 Daniel Marjamäki + + * src/checkother.cpp: Fixed #506 (###### If you see this, there is a + bug ###### Token::Match()) + +2009-07-26 Slava Semushin + + * gui/cppcheck_ru.ts: gui/cppcheck_ru.ts: start Russian translation. + +2009-07-26 Slava Semushin + + * gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts, + gui/cppcheck_ru.ts, gui/cppcheck_se.ts: gui: regenerate ts-files. + +2009-07-26 Reijo Tomperi + + * src/preprocessor.cpp: Removed some debug output which should not + be on and cleaned up a little. + +2009-07-25 Reijo Tomperi + + * src/cppcheck.cpp, src/preprocessor.cpp, src/preprocessor.h, + test/testpreprocessor.cpp: Fix ticket #265 (Log a warning when an + include file is not found) + http://sourceforge.net/apps/trac/cppcheck/ticket/265 + +2009-07-25 Daniel Marjamäki + + * src/checkother.cpp, test/testother.cpp: Fixed #504 (false + positive: null pointer dereference) + +2009-07-25 Daniel Marjamäki + + * src/checkother.cpp: speedup of CheckOther::postIncrement + +2009-07-25 Daniel Marjamäki + + * test/testpreprocessor.cpp: Added more tests to the + TestPreprocessor::match_cfg_def (#505) + +2009-07-25 Daniel Marjamäki + + * src/tokenize.cpp: astyle formatting + +2009-07-25 Daniel Marjamäki + + * src/preprocessor.h, test/testpreprocessor.cpp: Preprocessor: Added + todo test case for better evaluation of #if conditions + +2009-07-25 Daniel Marjamäki + + * src/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #501 + (Preprocessor should read open configurations that are defined + within the file) + +2009-07-25 Slava Semushin + + * src/checkother.cpp: src/checkother.cpp: simplify condition a bit. No functional change. + +2009-07-25 Slava Semushin + + * src/checkmemoryleak.cpp, src/checkother.cpp, src/tokenize.cpp, + src/tokenize.h, test/testtokenize.cpp: Fixed ticket #500 (Tokenizer: + simplify the "(p != NULL)" conditions) Also teach simplifyIfNot() to handle variables like Foo::var. https://sourceforge.net/apps/trac/cppcheck/ticket/500 + +2009-07-25 Slava Semushin + + * test/testtokenize.cpp: test/testtokenize.cpp: use + tokenizeAndStringify() function. Instead of self-written code. No functional change. + +2009-07-24 booga + + * src/checkother.cpp, src/checkstl.cpp, test/testother.cpp, + test/teststl.cpp: astyle FTW (should have read about that sooner) + +2009-07-24 booga + + * src/checkother.cpp, src/checkother.h, src/checkstl.cpp, + src/checkstl.h, test/testother.cpp, test/teststl.cpp: Fix #476 STL + Container checks. Fix #473 Add post increment check for STL objects + and Classes. + +2009-07-24 Daniel Marjamäki + + * src/checkmemoryleak.cpp, src/tokenize.cpp, + test/testsimplifytokens.cpp: Tokenizer: simplify return statements - + remove redundant parantheses + +2009-07-24 Daniel Marjamäki + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leaks: fixed + false positive for struct members - better handling of if/else + +2009-07-23 Daniel Marjamäki + + * test/testmemleak.cpp: memory leaks: added a todo test case for + struct members when using if-else + +2009-07-23 Daniel Marjamäki + + * src/checkother.cpp, test/testother.cpp: null pointers: fixed false + positives when checking if pointer is null at many locations (#485) + +2009-07-23 Daniel Marjamäki + + * src/checkother.cpp, test/testother.cpp: null pointers: fixed false + positives (#49) + +2009-07-23 Daniel Marjamäki + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #493 (Memory + leak: False positive when using the exit(0)) + +2009-07-23 Daniel Marjamäki + + * src/checkother.cpp, test/testother.cpp: null pointers: + dereferencing a pointer and then checking if it's null (#49) + +2009-07-23 Daniel Marjamäki + + * src/tokenize.cpp, test/testsimplifytokens.cpp: tokenizer: simplify + '?:' better when the condition is always true + +2009-07-22 Daniel Marjamäki + + * src/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor: + Better evaluation of conditions such as '#if defined A || defined B' + (#469) + +2009-07-22 Daniel Marjamäki + + * src/tokenize.cpp: tokenizer: added todo for simplifying + '(true?x:y)' => '(x)' + +2009-07-22 Daniel Marjamäki + + * test/testother.cpp: astyle formatting + +2009-07-22 Daniel Marjamäki + + * src/preprocessor.cpp, test/testpreprocessor.cpp: Fixed #469 + (Preprocessor should read open configurations that are defined + within the file) + +2009-07-22 Daniel Marjamäki + + * src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed #497 + (Templates are not expanded correctly) + +2009-07-22 Daniel Marjamäki + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #494 (False + positives of checking leaks struct members) Better handling of + function calls + +2009-07-21 Daniel Marjamäki + + * src/checkother.cpp, src/checkother.h, test/testother.cpp: null + pointers: better checking when dereferencing pointer and then + checking if it is null (#485) + +2009-07-21 Daniel Marjamäki + + * src/checkmemoryleak.cpp, test/testcppcheck.cpp, + test/testmemleak.cpp: dereferencing deallocated memory: it is ok to + take the address to deallocated memory but it is not ok to + dereference the address + +2009-07-21 Daniel Marjamäki + + * src/checkother.cpp, src/checkother.h, test/testother.cpp: invalid + pointer usage: broke out CheckOther::invalidPointer from the + CheckOther::nullPointer (#485) + +2009-07-21 Daniel Marjamäki + + * : commit d2278b5ce0d23b864cd99a998866b45e1bdf257b Author: Reijo + Tomperi Date: Mon Jul 20 23:24:23 + 2009 +0300 + +2009-07-20 Reijo Tomperi + + * src/checkother.cpp, test/testother.cpp: Fix ticket #486 (C-style + pointer casting misses const pointers) + http://sourceforge.net/apps/trac/cppcheck/ticket/486 + +2009-07-20 Daniel Marjamäki + + * src/checkother.cpp, test/testother.cpp: null pointer + dereferencing: fixed another false positive (#485) + +2009-07-20 Daniel Marjamäki + + * src/checkother.cpp, test/testother.cpp: null pointer + dereferencing: removed a few false positives in the new check that I + added (#485) + +2009-07-20 Daniel Marjamäki + + * src/checkother.cpp: fix bug in previous commit that fixed #485 + +2009-07-20 Daniel Marjamäki + + * src/checkother.cpp, test/testother.cpp: Fixed #485 (detect when + code is checking for null after dereferencing) + +2009-07-20 Daniel Marjamäki + + * src/preprocessor.cpp: preprocessor: Fixed hanging in + Preprocessor::expandMacros when trying to replace all '__VA_ARGS__' + with '__VA_ARGS__' + +2009-07-20 Daniel Marjamäki + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: memory leak for + struct member: made the checking more sensitive. Skip bail-out + execution paths were the member is properly deallocated + +2009-07-19 Daniel Marjamäki + + * src/checkmemoryleak.cpp, src/checkmemoryleak.h, + test/testmemleak.cpp: memleak: implemented simple checking for + leaking struct members + +2009-07-19 Slava Semushin + + * test/testrunner.cpp: test/testrunner.cpp: fixed exit code when + count of fails tests equals to 256. When 256 tests fails return code was 0 and it was wrong. Now exit + code may be only 0 or 1 and not show how many tests fails. Thanks to aggro80@ for pointing to this! + +2009-07-18 Daniel Marjamäki + + * src/checkother.cpp, test/testmemleak.cpp, test/testtokenize.cpp: + astyle formatting + +2009-07-18 Slava Semushin + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: + src/checkmemoryleak.cpp: added fchmod() function to white list. + +2009-07-18 Slava Semushin + + * src/checkother.cpp, test/testother.cpp: Finally fixed ticket #284 + (style check: redundant condition improvement) http://sourceforge.net/apps/trac/cppcheck/ticket/284 + +2009-07-18 Slava Semushin + + * test/testrunner.cpp, test/testsuite.cpp, test/testsuite.h: Fixed + ticket #481 (testrunner should exit with non-zero status if one of + tests fails) http://sourceforge.net/apps/trac/cppcheck/ticket/481 + +2009-07-18 Slava Semushin + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed ticket #464 + (resource leak not detected when getc is used on the file handle) http://sourceforge.net/apps/trac/cppcheck/ticket/464 + +2009-07-18 Slava Semushin + + * src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #479 (varId + not assigned to reference to standart container) http://sourceforge.net/apps/trac/cppcheck/ticket/479 + +2009-07-18 Kimmo Varis + + * : commit d1eb7e65584421d346c69371594301c227cf05c8 Author: Kimmo + Varis Date: Sat Jul 18 13:34:00 2009 +0300 + +2009-07-18 Kimmo Varis + + * src/src.pro: Enable more warnings in QMake-generated makefiles. Use same warning levels for GCC than in original makefile. Use W4 + level for Visual Studio. + +2009-07-18 Slava Semushin + + * test/teststl.cpp: Fixed ticket #477 (Bug in Token::Match() during + process TestStl::pushback3) http://sourceforge.net/apps/trac/cppcheck/ticket/477 + +2009-07-18 Kimmo Varis + + * : commit 180a04316d511d743508adc595d2cab6ef564711 Author: Kimmo + Varis Date: Sat Jul 18 11:25:22 2009 +0300 + +2009-07-18 Daniel Marjamäki + + * src/tokenize.cpp, test/testsimplifytokens.cpp: tokenizer: improved + the Tokenizer::simplifyIfNot + +2009-07-18 Daniel Marjamäki + + * src/main.cpp: astyle formatting + +2009-07-17 Slava Semushin + + * src/checkclass.cpp, test/testclass.cpp: Fixed ticket #459 (false + positive::Member variable not initialized in constructor) http://sourceforge.net/apps/trac/cppcheck/ticket/459 + +2009-07-17 Daniel Marjamäki + + * gui/aboutdialog.h, gui/applicationdialog.h, + gui/applicationlist.h, gui/checkthread.h, gui/common.h, + gui/csvreport.h, gui/fileviewdialog.h, gui/mainwindow.h, + gui/projectfile.h, gui/report.h, gui/resultstree.h, + gui/resultsview.h, gui/settingsdialog.h, gui/threadhandler.h, + gui/threadresult.h, gui/translationhandler.h, gui/txtreport.h, + gui/xmlreport.h, src/check.h, src/checkautovariables.h, + src/checkbufferoverrun.h, src/checkclass.h, + src/checkdangerousfunctions.h, src/checkheaders.h, + src/checkmemoryleak.h, src/checkother.h, src/checkstl.h, + src/checkunusedfunctions.h, src/cppcheck.h, src/errorlogger.h, + src/filelister.h, src/mathlib.h, src/preprocessor.h, + src/settings.h, src/token.h, src/tokenize.h: doc: updated doxygen + comments. three groups where created - 'GUI', 'Core' and 'Checks' + +2009-07-16 Daniel Marjamäki + + * cppcheck.geany, src/main.cpp: doc: changed the doxygen comments + for the mainpage + +2009-07-16 Vesa Pikki + + * gui/main.cpp, gui/mainwindow.cpp, gui/mainwindow.h, + src/preprocessor.cpp, src/tokenize.cpp: Added support for checking + files via commandline arguments. + +2009-07-14 Kimmo Varis + + * : commit c6b82cab21cffa6d7ec6ae5d8f15bb6dbd861707 Author: Kimmo + Varis Date: Tue Jul 14 18:47:38 2009 +0300 + +2009-07-14 Kimmo Varis + + * .gitignore: Add generated GUI header files to gitignore. + +2009-07-14 Daniel Marjamäki + + * src/tokenize.cpp: doxygen: added a todo to simplify 'for' loops + better in the tokenizer + +2009-07-14 Kimmo Varis + + * gui/gui.pro: GUI: Place intermediate resource files to temp + folder. + +2009-07-14 Kimmo Varis + + * src/src.pro, test/test.pro: Add QMake project files for core and + tests. Ticket #472 (QMake project file to build cppcheck core). + +2009-07-14 Daniel Marjamäki + + * src/checkstl.cpp, test/teststl.cpp: fixed todo test case - detect + iterator usage after push_front|push_back + +2009-07-14 Daniel Marjamäki + + * src/tokenize.cpp, src/tokenize.h, test/testsimplifytokens.cpp: + tokenizer: simplify the '?:' operator + +2009-07-14 Daniel Marjamäki + + * test/testsimplifytokens.cpp: simplify tokens: simplify test cases + +2009-07-14 Daniel Marjamäki + + * src/checkclass.cpp, src/checkmemoryleak.cpp, + src/checkmemoryleak.h, src/checkunusedfunctions.cpp, + src/preprocessor.cpp, src/token.cpp, src/tokenize.cpp: doxygen: made + the todos visible in the doxygen output + +2009-07-13 Daniel Marjamäki + + * src/check.h, src/checkheaders.cpp, src/checkunusedfunctions.cpp, + src/cppcheck.cpp, src/tokenize.cpp, src/tokenize.h, + test/testpreprocessor.cpp, test/testsimplifytokens.cpp, + test/teststl.cpp, test/testtokenize.cpp: minor refactoring: header + cleanup. use forward declarations instead of includes + +2009-07-13 Kimmo Varis + + * : commit 7f7e85390f72ee63ec9bdf4642a36b144dcb69f3 Author: Kimmo + Varis Date: Mon Jul 13 18:53:43 2009 +0300 + +2009-07-13 Daniel Marjamäki + + * src/checkbufferoverrun.cpp, src/checkbufferoverrun.h, + src/checkdangerousfunctions.cpp, src/checkdangerousfunctions.h, + test/testbufferoverrun.cpp, test/testdangerousfunctions.cpp: + refactoring: Renamed checking classes + +2009-07-13 Kimmo Varis + + * : commit 6393498966e7e030445cca0387c85942826964d7 Author: Kimmo + Varis Date: Mon Jul 13 16:51:35 2009 +0300 + +2009-07-13 Daniel Marjamäki + + * src/checkmemoryleak.h, src/errorlogger.h: astyle formatting + +2009-07-13 Kimmo Varis + + * gui/common.h, gui/main.ui, gui/mainwindow.cpp, gui/mainwindow.h, + gui/resultstree.cpp: GUI: Remove security-category. The security-category was removed from core in commits + 03f3ee62a0d9a7e38f1dfcbefae872cd08990dbc and + 11bc5195b84c18cc59f336cc0588dc07294a1de7. + +2009-07-13 Daniel Marjamäki + + * src/checkmemoryleak.cpp, src/checkmemoryleak.h: refactoring: + Refactoring of the leak-checking classes + +2009-07-13 Daniel Marjamäki + + * src/main.cpp, src/token.h: doxygen: updated a few comments + +2009-07-13 Kimmo Varis + + * : commit d88cf4d3e4caa2a7d9234d8be9aefa67df081dc0 Author: Kimmo + Varis Date: Mon Jul 13 11:39:46 2009 +0300 + +2009-07-13 Daniel Marjamäki + + * src/check.h, src/checkautovariables.cpp, + src/checkautovariables.h, src/checkbufferoverrun.cpp, + src/checkclass.cpp, src/checkdangerousfunctions.cpp, + src/checkmemoryleak.cpp, src/checkmemoryleak.h, src/checkother.cpp, + src/checkstl.cpp, src/errorlogger.h, test/testbufferoverrun.cpp, + test/testconstructors.cpp, test/testdivision.cpp, + test/testmemleak.cpp: refactoring: renamed the severity "all" to + "possible error" + +2009-07-12 Daniel Marjamäki + + * gui/gui.pro, gui/mainwindow.cpp, src/errorlogger.h, + src/settings.cpp, src/settings.h: cleanup: continued with the + removing of the security. Some more work is needed but now + everything compiles and runs at least. + +2009-07-12 Daniel Marjamäki + + * src/checkother.h: doc: add link + +2009-07-12 Daniel Marjamäki + + * Makefile, src/checksecurity.cpp, src/checksecurity.h, + test/testsecurity.cpp, tools/dmake.cpp, tools/errmsg.cpp: cleanup: + removed deprecated files. security checking and errmsg + +2009-07-12 Daniel Marjamäki + + * createrelease, src/cppcheck.cpp, win_installer/cppcheck.iss: + updated version to 1.34 + +2009-07-12 Daniel Marjamäki + + * src/checkclass.cpp, test/testunusedprivfunc.cpp: unused private + functions: don't check classes declared in header files unless it is + known that their whole implementation is seen + +2009-07-12 Kimmo Varis + + * gui/about.ui, gui/cppcheck_de.ts, gui/cppcheck_en.ts, + gui/cppcheck_fi.ts, gui/cppcheck_ru.ts, gui/cppcheck_se.ts: GUI: + Improve About-dialog layout. Add vertical spacer above texts to that icon box becomes narrow and + text box wide. + +2009-07-12 Kimmo Varis + + * gui/about.ui: GUI: Wordwrap texts in the About-dialog. Fixes ticket #454 (About-dialog size/text problems). + +2009-07-11 Daniel Marjamäki + + * src/main.cpp: doxygen: wrote a simple text for the mainpage + +2009-07-11 Daniel Marjamäki + + * src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: better + description for the message with id strncatUsage + +2009-07-10 Daniel Marjamäki + + * src/cppcheck.cpp, src/cppcheckexecutor.cpp, src/errorlogger.cpp, + src/errorlogger.h, src/settings.cpp, src/settings.h, + src/threadexecutor.cpp, test/testcppcheck.cpp, test/testsuite.cpp: + Revert "cppcheck: Now it's possible to change the output format, for + example to a visual studio compliant format" This reverts commit 91a8dbd7b987d6af5f0c00b850bcdd82fe848459. + +2009-07-09 Daniel Marjamäki + + * cppcheck.geany: geany: updated the project file + +2009-07-08 Daniel Marjamäki + + * src/check.h, src/checkclass.cpp, src/checkclass.h, + src/checksecurity.h, src/checkstl.h, src/preprocessor.cpp, + src/preprocessor.h: refactoring: minor refactorings and added some + doxygen comments + +2009-07-08 Daniel Marjamäki + + * src/cppcheck.cpp, src/cppcheckexecutor.cpp, src/errorlogger.cpp, + src/errorlogger.h, src/settings.cpp, src/settings.h, + src/threadexecutor.cpp, test/testcppcheck.cpp, test/testsuite.cpp: + cppcheck: Now it's possible to change the output format, for example + to a visual studio compliant format + +2009-07-08 Daniel Marjamäki + + * src/check.h, src/checkother.cpp, src/checkstl.cpp: doc: added more + information when '--verbose' is used for these error messages: * dangerous usage of erase * overlapping data buffer + +2009-07-08 Daniel Marjamäki + + * test/testsimplifytokens.cpp: templates: simplified a todo test + case by removing a redundant function from the code + +2009-07-07 Daniel Marjamäki + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: memleak: fixed todo + test case + +2009-07-07 Daniel Marjamäki + + * src/checkclass.cpp, test/testunusedprivfunc.cpp: Fixed #431 + (Unused private function, wrong line when two functions with same + name) + +2009-07-07 Daniel Marjamäki + + * src/checkclass.cpp, test/testunusedprivfunc.cpp: Fixed #382 (False + positive: public function flagged as 'Unused private function') + +2009-07-06 Daniel Marjamäki + + * gui/cppcheck_se.ts: Translation: Updated the translation file for + swedish + +2009-07-06 Daniel Marjamäki + + * test/testmemleak.cpp: addon to previous commit - changed + ASSERT_EQUALS to TODO_ASSERT_EQUALS for the todo test case + +2009-07-06 Daniel Marjamäki + + * test/testmemleak.cpp: Memory leaks: Added a simple todo test case + +2009-07-06 Daniel Marjamäki + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #446 (memory + leak false positive when variable is static) + +2009-07-06 Daniel Marjamäki + + * src/tokenize.cpp, test/testtokenize.cpp: tokenizer: Don't simplify + declarations of static variables + +2009-07-06 Kimmo Varis + + * gui/resultsview.cpp: GUI: Add icons for error messages of failed + report saving. + +2009-07-06 Kimmo Varis + + * gui/csvreport.h, gui/txtreport.h, gui/xmlreport.h: GUI: Make + report class destructors virtual. + +2009-07-06 Kimmo Varis + + * gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts, + gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/csvreport.cpp, + gui/csvreport.h, gui/gui.pro, gui/mainwindow.cpp, gui/report.h, + gui/resultsview.cpp, gui/resultsview.h: GUI: Add new CSV report + type. CSV files are handy (and commonly used) to export/import data + to other programs. CSV reports allow easy import of cppcheck error + data to other programs for further processing. + +2009-07-06 Kimmo Varis + + * win_installer/cppcheck.iss: Installer: Add option to create + desktop icon for GUI. + +2009-07-06 Kimmo Varis + + * win_installer/cppcheck.iss: Installer: Remove QT-based from GUI + description and use only GUI. Users don't care and don't need to + know that GUI is QT-based. It may even confuse some who don't know + what QT is. So use simply GUI. + +2009-07-06 Kimmo Varis + + * win_installer/cppcheck.iss: Installer: Label GUI as Beta. + +2009-07-05 Reijo Tomperi + + * cppcheck.cbp, gui/mainwindow.cpp, src/checkbufferoverrun.cpp, + src/checkbufferoverrun.h, src/checkclass.cpp, src/checkclass.h, + src/checkheaders.cpp, src/checkheaders.h, src/checkmemoryleak.cpp, + src/checkmemoryleak.h, src/checkother.cpp, src/checkother.h, + src/cppcheck.cpp, src/filelister.cpp, src/filelister.h, + src/tokenize.cpp, src/tokenize.h, test/testcharvar.cpp, + test/testcppcheck.cpp, test/testdivision.cpp, + test/testincompletestatement.cpp, test/testother.cpp, + test/testpreprocessor.cpp, test/testtokenize.cpp, + test/testunusedvar.cpp, tools/dmake.cpp: Refactoring: Rename member + functions to follow naming guidelines. + +2009-07-05 Reijo Tomperi + + * src/tokenize.h, test/testmemleak.cpp: Test case improvement, + unused function removed from tokenizer. + +2009-07-05 Reijo Tomperi + + * src/tokenize.cpp, src/tokenize.h, test/testsimplifytokens.cpp: Fix + ticket #457 (False positive: Member variable not assigned a value in + copy constructor) + http://sourceforge.net/apps/trac/cppcheck/ticket/457 Simplify "a = + 0, b = 0;" into "a = 0; b = 0;" + +2009-07-04 Kimmo Varis + + * : commit b6e543fd4f0e98410527500f2b7f60986304189f Author: Kimmo + Varis Date: Sat Jul 4 22:33:18 2009 +0300 + +2009-07-04 Kimmo Varis + + * gui/resultstree.cpp: Fix ticket #456 (GUI:: save only the results + selected in view settings) + http://sourceforge.net/apps/trac/cppcheck/ticket/456 + +2009-07-04 Reijo Tomperi + + * test/testsimplifytokens.cpp: TODO Test case + TestSimplifyTokens::remove_comma added + +2009-07-04 Reijo Tomperi + + * gui/mainwindow.cpp, gui/translationhandler.cpp: astyle fix + +2009-07-04 Vesa Pikki + + * gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts, + gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/translationhandler.cpp: + I reverted back the translation file checking. Allthough I put it + after QTranslator had failed to load the translation. This still + allows QTranslator to try and open the file with several variations + of the file. To user we'll tell that the default file is missing. + +2009-07-04 Vesa Pikki + + * gui/translationhandler.cpp: Removed an unnecessary translation + file check. It was missing the file extension and QTranslator + returns false if it was unable to find the translation file which is + just as good. QTranslator can also check for several variations of + the given filename. + +2009-07-04 Vesa Pikki + + * : commit e656c951e59bbde0eba9e23dfb3c7f10a4249af3 Author: Vesa + Pikki Date: Sat Jul 4 11:06:29 2009 +0300 + +2009-07-04 Kimmo Varis + + * gui/mainwindow.cpp, gui/projectfile.cpp, gui/projectfile.h: GUI: + Read include directories from project file. + +2009-07-04 Kimmo Varis + + * src/cppcheck.cpp, src/cppcheck.h, src/settings.h: Move include + paths list to Settings class so we can set include paths from GUI. + +2009-07-03 Reijo Tomperi + + * src/tokenize.cpp, test/testsimplifytokens.cpp: Fix ticket #448 + (false positive:: resource leak) + http://sourceforge.net/apps/trac/cppcheck/ticket/448 Tokenizer + improved to simplify "if( (p)==-1 )" + +2009-07-03 Reijo Tomperi + + * src/checkclass.cpp, test/testclass.cpp: Fix ticket #452 (Failure + to detect "member var not initialized in constructor" if class + inherits) http://sourceforge.net/apps/trac/cppcheck/ticket/452 + +2009-07-03 Kimmo Varis + + * gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts, + gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/resultstree.cpp: GUI: + Show instructions instead of error when viewer application is not + configured. + +2009-07-03 Kimmo Varis + + * gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts, + gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/mainwindow.cpp, + gui/translationhandler.cpp: GUI: Further improve error message for + lang file not found. Not being able to switch language is critical + error, not just warning. Also show full file name (with extension) + of the file not found. + +2009-07-03 Kimmo Varis + + * gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts, + gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/translationhandler.cpp: + GUI: Check translation file exists before loading it. This allows + more accurate error message for the user. + +2009-07-03 Kimmo Varis + + * gui/resultsview.ui: Fix EOL style for gui/resultsview.ui that got + converted to Windows style. Apparently QT Creator blindly converts + file EOL style without any warning to user. + +2009-07-03 Kimmo Varis + + * gui/resultsview.ui: GUI: Remove doubled margin from main window. + The main window sets default margin for central widget. And layout + was setting another margin so margin was doubled. + +2009-07-03 Kimmo Varis + + * win_installer/cppcheck.iss, win_installer/readme.txt: Installer: + Install translation files. + +2009-07-03 Kimmo Varis + + * gui/mainwindow.cpp: Remove unused variable. + +2009-07-02 Vesa Pikki + + * : commit 7a4115236aa61e3c8d3ca9264d816515e572a3a5 Author: Vesa + Pikki Date: Thu Jul 2 23:41:37 2009 +0300 + +2009-07-02 Reijo Tomperi + + * src/cppcheck.cpp: Fix ticket #434 (Unused function gets reported + dozens of times) + http://sourceforge.net/apps/trac/cppcheck/ticket/434 Using + --unused-functions with -j will now print out error message: + "cppcheck: error: --unused-functions can't be used with -j option." + +2009-07-02 Vesa Pikki + + * gui/translationhandler.cpp, gui/translationhandler.h: Added + missing license texts. + +2009-07-02 Vesa Pikki + + * gui/fileviewdialog.cpp, gui/fileviewdialog.h, gui/mainwindow.cpp, + gui/mainwindow.h, gui/resultsview.cpp, gui/resultsview.h, + gui/threadhandler.h: Disabling progressbar if stop button is + pressed. This actually had no visible effect on KDE. + +2009-07-02 Vesa Pikki + + * gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts, + gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/main.ui, + gui/mainwindow.cpp, gui/mainwindow.h: Checks if toolbar is closed + when opening view menu. Basically just reverted back Kimmo's code + that was lost in merge. + +2009-07-02 Vesa Pikki + + * gui/main.ui: Removed unused statusbar. + +2009-07-02 Vesa Pikki + + * gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts, + gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/file.ui, + gui/fileviewdialog.cpp, gui/fileviewdialog.h, gui/gui.pro, + gui/mainwindow.cpp: Fileview dialogs now use Qt Designer ui files. + Translation also updated. + +2009-07-02 Vesa Pikki + + * gui/about.ui, gui/aboutdialog.cpp, gui/aboutdialog.h, + gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts, + gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/gui.pro: About dialog + now uses Qt Designer ui file. Updated translations again. + +2009-07-02 Vesa Pikki + + * : commit 32725c872ec24903c3625ebb32605bb2eacf0e67 Author: Vesa + Pikki Date: Thu Jul 2 19:15:34 2009 +0300 + +2009-07-02 Vesa Pikki + + * gui/application.ui, gui/applicationdialog.cpp, + gui/applicationdialog.h, gui/mainwindow.cpp, gui/settings.ui, + gui/settingsdialog.cpp, gui/settingsdialog.h: Settings dialog and + application dialog now use Qt Designer ui files. + +2009-07-02 Kimmo Varis + + * gui/applicationlist.cpp, gui/mainwindow.cpp, gui/resultstree.cpp: + Astyle fixes. + +2009-07-02 Kimmo Varis + + * gui/aboutdialog.cpp, gui/cppcheck_de.ts, gui/cppcheck_en.ts, + gui/cppcheck_fi.ts, gui/cppcheck_ru.ts, gui/cppcheck_se.ts: GUI: Add + homepage URL to About-dialog. + +2009-07-02 Vesa Pikki + + * gui/application.ui, gui/cppcheck_de.ts, gui/cppcheck_en.ts, + gui/cppcheck_fi.ts, gui/cppcheck_ru.ts, gui/cppcheck_se.ts, + gui/gui.pro, gui/settings.ui: Added ui files for Settings and + Application dialogs. The code doesn't use those at the moment + though. Updated the translation files aswell. + +2009-07-02 Vesa Pikki + + * gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts, + gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/mainwindow.cpp, + gui/resultstree.cpp: Error types are now translated aswell. + +2009-07-02 Vesa Pikki + + * gui/mainwindow.cpp, gui/resultstree.cpp, gui/resultstree.h, + gui/resultsview.cpp, gui/resultsview.h: Toolbar can now be hidden. + Treeview's headers will now be translated when language changes. + +2009-07-02 Vesa Pikki + + * readme.txt: Added instructions to compile the GUI. + +2009-07-02 Vesa Pikki + + * gui/applicationlist.cpp, gui/applicationlist.h, gui/common.h, + gui/cppcheck_de.ts, gui/cppcheck_en.ts, gui/cppcheck_fi.ts, + gui/cppcheck_ru.ts, gui/cppcheck_se.ts, gui/fileviewdialog.cpp, + gui/gui.pro, gui/main.cpp, gui/main.ui, gui/mainwindow.cpp, + gui/mainwindow.h, gui/resultstree.cpp, gui/resultstree.h, + gui/resultsview.cpp, gui/resultsview.h, gui/resultsview.ui, + gui/settingsdialog.cpp, gui/settingsdialog.h, + gui/threadhandler.cpp, gui/translationhandler.cpp, + gui/translationhandler.h: Began adding translations and using Qt + Designer .ui files. Also added QSetting value names to common.h Work is halfway on both translations and .ui files. I added a very quick and rough finnish translation. The program now requires the translation files to be created before + running that can be done with lrelease gui.pro. To compile the whole GUI one must do the following cd gui qmake + lrelease gui.pro make + +2009-07-02 Kimmo Varis + + * gui/applicationlist.cpp, gui/mainwindow.cpp, gui/resultstree.cpp, + gui/settingsdialog.cpp, gui/threadhandler.cpp: GUI: Do not make + settings names translatable. Having translated settings names is a + bad idea. If user changes GUI language one loses settings. Also + settings might be exported/imported and translated names might not + work between systems/users. + +2009-07-02 Kimmo Varis + + * : commit c79d50a7103ac08f31c392d9c7ebac6affff68b0 Author: Kimmo + Varis Date: Thu Jul 2 00:05:09 2009 +0300 + +2009-07-01 Kimmo Varis + + * gui/applicationlist.cpp, gui/applicationlist.h, + gui/resultstree.cpp, gui/threadhandler.cpp: Astyle fixes. + +2009-07-01 Kimmo Varis + + * gui/mainwindow.cpp, gui/mainwindow.h: GUI: Add View-menu item to + show/hide standard toolbar. + +2009-06-30 Reijo Tomperi + + * src/checkbufferoverrun.cpp, test/testbufferoverrun.cpp: Fix ticket + #445 (simple to avoid false positive for buffer overflow) + http://sourceforge.net/apps/trac/cppcheck/ticket/445 Simple bailout + in case "if" is found inside the for-loop. + +2009-06-27 Kimmo Varis + + * gui/mainwindow.h: Fix couple of typos in comments. + +2009-06-27 Kimmo Varis + + * gui/common.h, gui/mainwindow.cpp, gui/mainwindow.h, + gui/resultstree.cpp: GUI: Remove GUI for showing unused functions. + Implements ticket #443 (Remove checking of unused functions from + GUI) https://sourceforge.net/apps/trac/cppcheck/ticket/443 See also + ticket #434 https://sourceforge.net/apps/trac/cppcheck/ticket/434 + +2009-06-27 Kimmo Varis + + * gui/mainwindow.cpp: GUI: Disable checking unused functions. + Implements ticket #443 (Remove checking of unused functions from + GUI) https://sourceforge.net/apps/trac/cppcheck/ticket/443 See also + ticket #434 https://sourceforge.net/apps/trac/cppcheck/ticket/434 + +2009-06-26 Daniel Marjamäki + + * cppcheck.geany, src/cppcheck.cpp, src/preprocessor.cpp, + src/preprocessor.h, test/testpreprocessor.cpp: Fix ticket #267 + (Glued define and define name in output text) The handling of ifdef configurations where rewritten. Either a + configuration is handled properly or it is not handled at all. + +2009-06-24 Reijo Tomperi + + * cppcheck.cbp, gui/aboutdialog.h, gui/fileviewdialog.h, + gui/projectfile.h, gui/report.h, gui/txtreport.h, gui/xmlreport.h: + Fixed compile error in Linux Include guard naming fix (names + starting with underscore+capital letter are reserved in C++, so we + should not use those) Codeblocks project file update + +2009-06-24 Kimmo Varis + + * gui/projectfile.h: GUI: Add include guard for projectfile.h. + +2009-06-24 Kimmo Varis + + * : commit 678714419c562d67e12111fc6b5472b53ba34c45 Author: Kimmo + Varis Date: Wed Jun 24 10:54:56 2009 +0300 + +2009-06-23 Daniel Marjamäki + + * src/checkmemoryleak.cpp: minor fix of test case + +2009-06-23 Daniel Marjamäki + + * src/checkmemoryleak.cpp: calling unknown function -> use + +2009-06-23 Daniel Marjamäki + + * test/testmemleak.cpp: added test case + +2009-06-23 Kimmo Varis + + * gui/projectfile.cpp: Fix ticket #437 (Compile warnings in GUI (in + Linux)) https://sourceforge.net/apps/trac/cppcheck/ticket/437 Add + empty cases for XML element types we don't need to handle. + +2009-06-23 Reijo Tomperi + + * cppcheck.cbp: codeblocks project file updated + +2009-06-22 Reijo Tomperi + + * src/tokenize.cpp, test/testtokenize.cpp: Fix ticket #435 (False + positive: Invalid number of character when ({}) is used in code) + http://sourceforge.net/apps/trac/cppcheck/ticket/435 + +2009-06-22 Kimmo Varis + + * gui/mainwindow.cpp, gui/mainwindow.h: GUI: Add checked directory + path to main window caption. + +2009-06-22 Kimmo Varis + + * gui/gui.cppcheck, gui/projectfile.txt: Fix EOL style of project + file doc and example project file. + +2009-06-22 Kimmo Varis + + * gui/readme.txt, win_installer/cppcheck.iss, + win_installer/readme.txt: Add QT XML DLL to Windows installer and + update docs. + +2009-06-22 Kimmo Varis + + * : commit 1aafeebe7b2abd606043bcb212ad3fcca483e10b Author: Kimmo + Varis Date: Mon Jun 22 11:57:17 2009 +0300 + +2009-06-21 Daniel Marjamäki + + * src/checkmemoryleak.cpp: astyle formatting + +2009-06-21 Daniel Marjamäki + + * src/checkautovariables.h: doc: simplified the documentation for + autovariables a bit + +2009-06-21 Slava Semushin + + * src/checkmemoryleak.cpp, src/checkmemoryleak.h, + test/testmemleak.cpp: Fixed ticket #399 (Add detection for resource + leaks after open() usage) http://sourceforge.net/apps/trac/cppcheck/ticket/399 + +2009-06-21 Daniel Marjamäki + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: + CheckMemoryLeakInFunction: More sensitive checking when the code + calls an unknown function + +2009-06-21 Daniel Marjamäki + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: detect memory leak + when all is given when calling an unknown function + +2009-06-21 Daniel Marjamäki + + * src/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor: + Replace "#if !defined(A)" with "#ifndef A" + +2009-06-21 Kimmo Varis + + * gui/mainwindow.cpp: GUI: Don't allow to open Settings-dialog while + checking. + +2009-06-20 Kimmo Varis + + * gui/mainwindow.cpp: GUI: Rename Check all/Uncheck all View-menu + items to Show all/Hide all. It is not obvious for user what those + items do and after all it is about showing/hiding all items. + +2009-06-20 Kimmo Varis + + * gui/mainwindow.cpp, gui/resultstree.cpp, gui/resultstree.h, + gui/resultsview.cpp, gui/resultsview.h: GUI: Enable clearing/saving + results also if there are only hidden results. This commit fixes a + bug in my earlier commit that only checked visible results. + +2009-06-20 Kimmo Varis + + * : commit 71aa189efbbb221d755086958c63013be63d9362 Author: Kimmo + Varis Date: Sat Jun 20 23:23:54 2009 +0300 + +2009-06-20 Reijo Tomperi + + * src/checkclass.cpp, src/tokenize.h, test/testunusedprivfunc.cpp: + Fix ticket #426 (Problem with include) + http://sourceforge.net/apps/trac/cppcheck/ticket/426 + +2009-06-20 Kimmo Varis + + * gui/mainwindow.cpp: GUI: Clear results from view before starting + new compare. Strictly speaking this is not necessary but it is the + easiest way to set the GUI state to "no results"-state. + +2009-06-20 Kimmo Varis + + * gui/mainwindow.cpp, gui/resultstree.cpp, gui/resultstree.h, + gui/resultsview.cpp, gui/resultsview.h: GUI: Disable result cleaning + and saving during the checking. + +2009-06-20 Kimmo Varis + + * .gitignore: Add Doxygen output directory to gitignore. + +2009-06-20 Kimmo Varis + + * : commit 210014b930928b323dd5e592c35c674c6e61871c Author: Kimmo + Varis Date: Sat Jun 20 20:55:28 2009 +0300 + +2009-06-20 Daniel Marjamäki + + * src/checkother.cpp, test/testcharvar.cpp: Fixed #425 (False + positive: usage of char variable.. c = c & 0x03) Using char variables in bit operations are ok if: * the result is stored in a char * the variable is and'ed with a number that is less than 0x100 + +2009-06-20 Kimmo Varis + + * gui/mainwindow.cpp, gui/mainwindow.h, gui/threadhandler.cpp, + gui/threadhandler.h: GUI: Make ThreadHandler class part of object + tree. + +2009-06-20 Daniel Marjamäki + + * src/checkmemoryleak.cpp: CheckMemoryLeakInClass: Only show the + memory leak message when --all is used + +2009-06-20 Daniel Marjamäki + + * src/checkmemoryleak.cpp, src/tokenize.cpp, test/testmemleak.cpp, + test/testsimplifytokens.cpp: Fixed ticket #411 (false positive: + resource leak in while loop) + +2009-06-20 Daniel Marjamäki + + * test/testtokenize.cpp: refactoring testcases for + Tokenizer::simplifyAddBraces + +2009-06-20 Kimmo Varis + + * gui/resultstree.h, src/cppcheck.h, src/cppcheckexecutor.h, + src/errorlogger.h, src/token.h: Doxygen fixes. Wrong parameter names + etc. + +2009-06-19 Daniel Marjamäki + + * src/tokenize.cpp, test/testsimplifytokens.cpp: Tokenizer: Fixed + problem when simplifying casts + +2009-06-19 Reijo Tomperi + + * src/tokenize.cpp, test/testtokenize.cpp: Fix ticket #416 (False + positive: Redundant code) + http://sourceforge.net/apps/trac/cppcheck/ticket/416 + +2009-06-19 Daniel Marjamäki + + * src/preprocessor.cpp, test/testpreprocessor.cpp: Preprocessor: + Better handling of macros that has parantheses but not parameters + such as "#define AAA( ) aaa" + +2009-06-19 Reijo Tomperi + + * src/preprocessor.cpp: astyle fix + +2009-06-19 Daniel Marjamäki + + * src/preprocessor.cpp, test/testpreprocessor.cpp: Fixed ticket #417 + (Crashes in windows because of invalid char value) negative char values are allowed in strings and comments. but not in + other code. + +2009-06-19 Kimmo Varis + + * : commit 923e01af3fd18c9156601afc811206ab0a2146bd Author: Kimmo + Varis Date: Fri Jun 19 15:19:32 2009 +0300 + +2009-06-19 Daniel Marjamäki + + * src/checkother.h, test/testother.cpp: Fixed #420 + (WarningOldStylePointerCast() needs a test case) + +2009-06-19 Kimmo Varis + + * src/preprocessor.cpp, test/testpreprocessor.cpp: Revert "Fix + ticket #417 (Crashes in Windows because of invalid char value)" This reverts commit 70db2562f498cd29a310dc88d2b47a232cd89690. See the ticket - the fix was not correct fix. + +2009-06-19 Kimmo Varis + + * : commit d5d96d2535c6bcb0581e63818e0cbcf440e2d703 Merge: + 12f3ac5... e8d1905... Author: Daniel Marjamäki + Date: Thu Jun 18 23:10:16 2009 + +0200 + +2009-06-19 Kimmo Varis + + * : commit 12f3ac5a2fd77472ed4848bd39dfb47f9f9097b9 Author: Daniel + Marjamäki Date: Thu Jun 18 + 23:09:11 2009 +0200 + +2009-06-19 Kimmo Varis + + * src/preprocessor.cpp, test/testpreprocessor.cpp: Fix ticket #417 + (Crashes in Windows because of invalid char value) 8-bit characters + and UTF-8 characters are now converted to spaces. They can only + appear in the code files in comments or string/char constants. So we + cannot just ignore them as that would change length. + +2009-06-19 Reijo Tomperi + + * src/tokenize.cpp, test/testsimplifytokens.cpp: Fix ticket #418 + (delete a,b; not tokenized correctly) + http://sourceforge.net/apps/trac/cppcheck/ticket/418 + +2009-06-18 Reijo Tomperi + + * src/checkother.cpp, test/testother.cpp: Fix ticket #413 (false + positive: C-style pointer casting for pure virtual function) + http://sourceforge.net/apps/trac/cppcheck/ticket/413 + +2009-06-18 Reijo Tomperi + + * gui/fileviewdialog.cpp, gui/fileviewdialog.h: Encoding changed + from ISO* to UTF-8 + +2009-06-18 Reijo Tomperi + + * test/testtokenize.cpp: astyle fix + +2009-06-18 Slava Semushin + + * src/tokenize.cpp, test/testtokenize.cpp: Fixed ticket #278 + (variable id: references are not handled correctly) http://sourceforge.net/apps/trac/cppcheck/ticket/278 + +2009-06-18 Kimmo Varis + + * gui/applicationdialog.cpp: GUI: Use native file selection dialog + to select viewer application. In Windows use *.exe filter since + almost all executable applications have that extension so it makes + no sense to show all files. + +2009-06-18 Kimmo Varis + + * gui/mainwindow.cpp: GUI: Use native file selection dialog when + selecting report file. + +2009-06-17 Daniel Marjamäki + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed a false + positive (memory leak) This false positive was first discovered in the VLC sourcecode. The + TestMemoryLeakInFunction::simple11 test case is a simplified test + code of that code. + +2009-06-17 Kimmo Varis + + * gui/mainwindow.cpp, gui/mainwindow.h: GUI: Use native dialogs in + Windows for check file/directory selection. + +2009-06-17 Reijo Tomperi + + * src/checkclass.cpp, test/testconstructors.cpp: Fix ticket #309 + (false positive::is not assigned a value in 'A::operator=') + http://sourceforge.net/apps/trac/cppcheck/ticket/309 + +2009-06-16 Daniel Marjamäki + + * src/checkmemoryleak.h, test/testmemleak.cpp: Created a new class + for detecting leaks (forgetting to free struct members) + +2009-06-16 Daniel Marjamäki + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed #131 + (Regression: leak reported by 1.27 is not reported by 1.29) The leak will be reported as a definite bug again. Not just a + possible bug. cppcheck don't know if the execution path is + possible, but it knows that if the execution path is taken the + memory leak will be certain. + +2009-06-15 Daniel Marjamäki + + * src/checkmemoryleak.cpp, src/checkmemoryleak.h, + test/testmemleak.cpp: Improved the + "CheckMemoryLeak::functionReturnType" + +2009-06-15 Reijo Tomperi + + * src/cppcheckexecutor.cpp, src/errorlogger.cpp, src/errorlogger.h: + getXMLFooter() and getXMLHeader() functions added and taken into use + +2009-06-15 Daniel Marjamäki + + * src/checkmemoryleak.cpp, src/checkmemoryleak.h, + test/testmemleak.cpp: Fixed #264 (Memory Leak: alloc by assigning to + a return value) The fix was inspired by the previous patch submitted by hoangtuansu + +2009-06-15 Kimmo Varis + + * gui/mainwindow.cpp, gui/mainwindow.h: GUI: Refactor menu and + toolbar creation to own methods. + +2009-06-14 Reijo Tomperi + + * src/preprocessor.cpp, test/testpreprocessor.cpp: Fixed ticket #405 + (#ifdef A and #if defined A should be handled as same configuration) + http://sourceforge.net/apps/trac/cppcheck/ticket/405 + +2009-06-14 Reijo Tomperi + + * gui/mainwindow.cpp: astyle fix + +2009-06-15 Slava Semushin + + * src/checkmemoryleak.cpp, src/tokenize.cpp, test/testmemleak.cpp, + test/testtokenize.cpp: Fixed ticket #346 (adding a "const" token + prevents detection of memory leak) http://sourceforge.net/apps/trac/cppcheck/ticket/346 + +2009-06-14 Vesa Pikki + + * gui/mainwindow.cpp: Made License and Authors dialogs a bit bigger. + +2009-06-14 Daniel Marjamäki + + * src/token.cpp, src/tokenize.cpp, test/testsimplifytokens.cpp, + test/testtokenize.cpp: Fixed #387 (Templates: template functions + that return a pointer are not simplified correctly) * Fixed so that the tokenizer handle variable declarations better + when the variable is assigned the return value of a template + function * Fixed so that the simplifyTemplates detect that a template + function is used when its return value is taken + +2009-06-14 Kimmo Varis + + * gui/resultstree.cpp, gui/resultstree.h: GUI: Add new context menu + items to copy filename/full path to clipboard. + +2009-06-14 Kimmo Varis + + * : commit 801a241e0b6452ab773b9c9c769fa8b0c3fa775b Author: Kimmo + Varis Date: Sun Jun 14 12:57:43 2009 +0300 + +2009-06-14 Daniel Marjamäki + + * : commit be52e573f3573af2497138719bb00d101ccef663 Author: Daniel + Marjamäki Date: Sun Jun 14 + 11:28:25 2009 +0200 + +2009-06-14 Slava Semushin + + * src/token.cpp, src/token.h, src/tokenize.cpp: Token: introduce + str(const std::string &) method. Get rid of useless std::string.c_str() calls. No functional change. + +2009-06-14 Slava Semushin + + * src/tokenize.cpp, test/testtoken.cpp: Replace + tok->previous()->previous() call to tok->tokAt(-2). Done by command: git grep -l 'previous()->previous()' | xargs sed -i + 's|previous()->previous()|tokAt(-2)|' No functional change. + +2009-06-14 Slava Semushin + + * src/checkmemoryleak.cpp: Replace + tok->previous()->previous()->previous() call to tok->tokAt(-3). Done by command: git grep -l 'previous()->previous()->previous()' | + xargs sed -i 's|previous()->previous()->previous()|tokAt(-3)|' No functional change. + +2009-06-14 Slava Semushin + + * src/checkmemoryleak.cpp, src/tokenize.cpp, test/testtoken.cpp: + Replace tok->next()->next() call to tok->tokAt(2). Done by command: git grep -l 'next()->next()' | xargs sed -i + 's|next()->next()|tokAt(2)|' No functional change. + +2009-06-14 Slava Semushin + + * src/checkmemoryleak.cpp: Replace tok->next()->next()->next() call + to tok->tokAt(3). Done by command: git grep -l 'next()->next()->next(),' | xargs sed + -i 's|next()->next()->next()|tokAt(3)|' No functional change. + +2009-06-14 Slava Semushin + + * src/checkmemoryleak.cpp: Replace + tok->next()->next()->next()->next() call to tok->tokAt(4). Done by command: git grep -l 'next()->next()->next()->next(),' | + xargs sed -i 's|next()->next()->next()->next()|tokAt(4)|' No functional change. + +2009-06-14 Slava Semushin + + * test/testbufferoverrun.cpp, test/testconstructors.cpp, + test/testmemleak.cpp: Embed errout.str() into ASSERT_EQUALS() call. Get rid of useless variables. No functional change. + +2009-06-14 Daniel Marjamäki + + * src/checkunusedfunctions.cpp, test/testunusedfunctions.cpp: Fixed + ticket #373 (False unused functions) Skip template functions when checking for unused functions + +2009-06-14 Slava Semushin + + * src/preprocessor.cpp, test/testpreprocessor.cpp: Fixed ticket #403 + (false positive::Array index out of range) http://sourceforge.net/apps/trac/cppcheck/ticket/403 + +2009-06-14 Kimmo Varis + + * src/cppcheck.rc: Fix the copyright text in Windows executable. + +2009-06-14 Kimmo Varis + + * gui/gui.qrc: GUI: Remove the SVG icon from the resources file as + it is not used. + +2009-06-13 Kimmo Varis + + * gui/gui.pro: GUI: Move Windows-specific options and files to own + scope in project file. + +2009-06-13 Kimmo Varis + + * gui/cppcheck-gui.rc: GUI: Include Windows resources from resource + file having version info. + +2009-06-13 Kimmo Varis + + * gui/gui.pro: GUI: Add common.h to the project. + +2009-06-13 Reijo Tomperi + + * src/tokenize.cpp: Fixed ticket #398 (valgrind shows error when + running testrunner) + http://172.29.29.21/apps/trac/cppcheck/ticket/398 + +2009-06-12 Reijo Tomperi + + * gui/mainwindow.cpp, src/errorlogger.cpp: Fix ticket #397 (xml + output doesn't encode " and & -characters as it should) + http://sourceforge.net/apps/trac/cppcheck/ticket/397 + +2009-06-12 Vesa Pikki + + * gui/mainwindow.cpp: Force extension to the file and check save + type by filter and not by filename. + +2009-06-12 Daniel Marjamäki + + * src/checkmemoryleak.cpp, test/testmemleak.cpp: Fixed ticket #367 + (Deallocating a deallocated pointer false positive when va_list + used) The overall matching of functions when calls are made were improved. + +2009-06-12 Reijo Tomperi + + * src/cppcheck.cpp: astyle fix + +2009-06-12 Daniel Marjamäki + + * src/checkother.cpp, test/testother.cpp: Fixed ticket #374 (False + positive: The scope of variable can be limited) A few refactorings and fixes were made + +2009-06-12 Slava Semushin + + * src/tokenize.cpp, src/tokenize.h, test/testtokenize.cpp: Fixed + ticket #392 (false positive and wrong allocation and deallocation + not detected) http://sourceforge.net/apps/trac/cppcheck/ticket/392 + +2009-06-12 Slava Semushin + + * src/tokenize.cpp: Tokenizer::createLinks(): correct comment. No code change. + +2009-06-12 Daniel Marjamäki + + * src/checkautovariables.h: doc: minor update. The [BR] is not + working as I thought + +2009-06-12 Daniel Marjamäki + + * src/check.h, src/checkautovariables.h, src/checkbufferoverrun.h, + src/checkclass.h, src/checkdangerousfunctions.h, + src/checkheaders.h, src/checkmemoryleak.h, src/checkother.h, + src/checksecurity.h, src/checkstl.h, src/cppcheck.cpp: doc: + generating wiki documentation + +2009-06-12 Slava Semushin + + * src/tokenize.cpp, src/tokenize.h, test/testtokenize.cpp: Fixed + ticket #390 (wrong allocation and deallocation not detected) http://sourceforge.net/apps/trac/cppcheck/ticket/390 + +2009-06-12 Daniel Marjamäki + + * src/check.h, src/checkautovariables.h, src/checkbufferoverrun.h, + src/checkclass.h, src/checkdangerousfunctions.h, + src/checkmemoryleak.h, src/checkother.h, src/checksecurity.h, + src/checkstl.h: added a classInfo function for each check class + +2009-06-11 Reijo Tomperi + + * src/token.cpp, src/token.h, src/tokenize.cpp, src/tokenize.h, + test/testsimplifytokens.cpp: Fix ticket #386 (False positive (memory + leak) with comma) + http://apps.sourceforge.net/trac/cppcheck/ticket/386 + +2009-06-10 Daniel Marjamäki + + * src/tokenize.cpp, test/testsimplifytokens.cpp: Fixed ticket #377 + (False positive with "char a[]") Updated the tokenizer so "char a[]" is tokenized into "char *a" + +2009-06-09 Reijo Tomperi + + * src/errorlogger.cpp, src/errorlogger.h: Partial fix for ticket + #380 (Error reporting on unused functions) Returning hard coded line + number 1 and assumed that severity should be "style" + https://apps.sourceforge.net/trac/cppcheck/ticket/380 + +2009-06-09 Reijo Tomperi + + * cppcheck.cbp: codeblocks project file updated + +2009-06-10 Slava Semushin + + * src/checkunusedfunctions.h: src/checkunusedfunctions.h: assign + default values in initializer list. No functional change. + +2009-06-09 Reijo Tomperi + + * gui/resultstree.cpp: Fix compile error in GUI + +2009-06-10 Slava Semushin + + * src/cppcheck.cpp: Don't print message about missing source files + when --errorlist used. Also exit with zero status in this case. Fix for 5193a36a6a2490f199de41c430482586557d9894 commit. + +2009-06-10 Slava Semushin + + * : commit d9f2dd385b3f2ab16b45a2ef084fe7447fa04659 Author: Slava + Semushin Date: Wed Jun 10 01:52:42 2009 + +0700 + +2009-06-09 Daniel Marjamäki + + * src/checkautovariables.cpp, src/checkautovariables.h, + src/checkother.cpp, src/checkother.h, test/testautovariables.cpp, + test/testother.cpp: Refactoring: Moved + CheckOther::returnPointerToLocalVariable to CheckAutoVariables + +2009-06-09 Kimmo Varis + + * gui/resultstree.cpp: GUI: One messagebox was missing "this" + parameter. + +2009-06-09 Kimmo Varis + + * testrunner.vcproj: Update VS testrunner project. + +2009-06-09 Vesa Pikki + + * gui/resultsview.cpp: Astyle formatting. + +2009-06-09 Vesa Pikki + + * gui/mainwindow.cpp, gui/resultsview.cpp, gui/resultsview.h: Force + progressbar to be visible when checking starts. + +2009-06-09 Vesa Pikki + + * gui/applicationdialog.cpp, gui/mainwindow.cpp, + gui/resultstree.cpp, gui/resultstree.h, gui/resultsview.cpp, + gui/resultsview.h, gui/settingsdialog.cpp, gui/settingsdialog.h: + Added messagebox to inform user about not found/non visible errors. + +2009-06-09 Vesa Pikki + + * : commit 814cd37c905e9016aaf45f3189d8401dfbf166af Author: Vesa + Pikki Date: Tue Jun 9 09:30:28 2009 +0300 + +2009-06-09 Kimmo Varis + + * gui/readme.txt: GUI: Add readme file with instructions for running + and compiling the GUI. + +2009-06-08 Daniel Marjamäki + + * src/checkmemoryleak.h: Doxygen: Added a few simple doxygen + comments for the leaks checking + +2009-06-08 Daniel Marjamäki + + * src/checkmemoryleak.cpp, src/checkmemoryleak.h, + test/testmemleak.cpp: Refactoring: Split up the CheckMemoryLeak into + CheckMemoryLeakInFunction and CheckMemoryLeakInClass + +2009-06-08 Daniel Marjamäki + + * Makefile, src/checkmemoryleak.cpp, src/checkmemoryleak.h, + test/testmemleak.cpp: Refactoring: Renaming the CheckMemoryLeakClass + to CheckMemoryLeak. Deleted testmemleakmp + +2009-06-08 Daniel Marjamäki + + * test/testmemleakmp.cpp: deleted the testmemleakmp file + +2009-06-08 Kimmo Varis + + * gui/settingsdialog.cpp: GUI: If application list contains + applications select the first by default. + +2009-06-08 Kimmo Varis + + * gui/resultstree.cpp: GUI: Show error message when the viewer + application cannot be started. + +2009-06-08 Kimmo Varis + + * gui/applicationdialog.cpp: Fix #378 (GUI doesn't start application + if path contains spaces) In Windows we must surround paths including + spaces with quotation marks. This patch fixes application path when + it is read from Browse-dialog. + +2009-06-08 Kimmo Varis + + * gui/applicationdialog.cpp: GUI: Show application path with native + separators. + +2009-06-08 Kimmo Varis + + * cppcheck.vcproj: Update VS project file after files were renamed. + +2009-06-08 Kimmo varis + + * gui/gui.pro: GUI: Update project file after file renaming. + +2009-06-07 Daniel Marjamäki + + * Makefile, src/checkfunctionusage.cpp, src/checkfunctionusage.h, + src/checkunusedfunctions.cpp, src/checkunusedfunctions.h, + src/cppcheck.cpp, src/cppcheck.h, test/testfunctionusage.cpp, + test/testunusedfunctions.cpp: Refactoring: Renamed + CheckFunctionUsage to CheckUnusedFunctions + +2009-06-07 Daniel Marjamäki + + * src/checkautovariables.h, src/checkbufferoverrun.h, + src/checkclass.h, src/checkdangerousfunctions.h, + src/checkmemoryleak.h, src/checkother.h, src/checksecurity.h, + src/checkstl.h: Added headers to the "--errorlist" output + +2009-06-07 Kimmo Varis + + * : commit 8375d1f1aeef4273a73bd030357f373b2d360cae Author: Kimmo + Varis Date: Sun Jun 7 14:46:34 2009 +0300 + +2009-06-07 Daniel Marjamäki + + * Changelog: Added a Changelog file that is generated automaticly by + git2cl + 2009-06-07 Daniel Marjamäki * createrelease, src/cppcheck.cpp, win_installer/cppcheck.iss: diff --git a/createrelease b/createrelease index 42a412179..5b23c936b 100755 --- a/createrelease +++ b/createrelease @@ -2,13 +2,21 @@ # A script for creating source archives from a GIT tag # # Archive files are created in user's home directory. +# +# Remember to update version number in: +# - src/main.cpp +# - src/cppcheck.cpp +# - win_installer/cppcheck.iss # Tag to use -tag=1.34 +tag=1.35 # Name of release releasename=cppcheck-$tag +# wget http://josefsson.org/git2cl/git2cl +./git2cl > ChangeLog + git archive --format=tar --prefix=$releasename/ $tag | gzip > ~/$releasename.tar.gz git archive --format=tar --prefix=$releasename/ $tag | bzip2 > ~/$releasename.tar.bz2 git archive --format=zip -9 --prefix=$releasename/ $tag > ~/$releasename.zip diff --git a/src/cppcheck.cpp b/src/cppcheck.cpp index e4efdbca1..76da83c09 100644 --- a/src/cppcheck.cpp +++ b/src/cppcheck.cpp @@ -80,7 +80,7 @@ std::string CppCheck::parseFromArgs(int argc, const char* const argv[]) for (int i = 1; i < argc; i++) { if (strcmp(argv[i], "--version") == 0) - return "Cppcheck 1.34\n"; + return "Cppcheck 1.35\n"; // Flag used for various purposes during debugging if (strcmp(argv[i], "--debug") == 0) diff --git a/src/main.cpp b/src/main.cpp index 45ee67b55..ba8c5f489 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -20,7 +20,7 @@ /** * * @mainpage Cppcheck - * @version 1.34 + * @version 1.35 * * @section overview_sec Overview * Cppcheck is a simple tool for static analysis of C/C++ code. diff --git a/win_installer/cppcheck.iss b/win_installer/cppcheck.iss index a8c42d3e0..9cca70398 100644 --- a/win_installer/cppcheck.iss +++ b/win_installer/cppcheck.iss @@ -19,7 +19,7 @@ #define MyAppName "cppcheck" -#define AppVersion "1.34" +#define AppVersion "1.35" #define MyAppURL "http://cppcheck.wiki.sourceforge.net/" #define MyAppExeName "cppcheck.exe" #define QTGuiExe "gui.exe"