Commit Graph

2259 Commits

Author SHA1 Message Date
Daniel Marjamäki 91a8dbd7b9 cppcheck: Now it's possible to change the output format, for example to a visual studio compliant format 2009-07-08 14:38:13 +02:00
Daniel Marjamäki 89115bd417 doc: added more information when '--verbose' is used for these error messages:
* dangerous usage of erase
 * overlapping data buffer
2009-07-08 12:57:36 +02:00
Daniel Marjamäki 0ea09b1cb6 templates: simplified a todo test case by removing a redundant function from the code 2009-07-08 09:38:59 +02:00
Daniel Marjamäki 2a02041fd8 memleak: fixed todo test case 2009-07-07 15:22:37 +02:00
Daniel Marjamäki ddc1ad7d4d Fixed #431 (Unused private function, wrong line when two functions with same name) 2009-07-07 08:55:14 +02:00
Daniel Marjamäki 9d1d7ebf8d Fixed #382 (False positive: public function flagged as 'Unused private function') 2009-07-07 08:30:23 +02:00
Daniel Marjamäki 1a97090526 Translation: Updated the translation file for swedish 2009-07-06 17:04:17 +02:00
Daniel Marjamäki 7b2f6b6173 addon to previous commit - changed ASSERT_EQUALS to TODO_ASSERT_EQUALS for the todo test case 2009-07-06 12:38:04 +02:00
Daniel Marjamäki 5efb834f36 Memory leaks: Added a simple todo test case 2009-07-06 12:33:31 +02:00
Daniel Marjamäki 9beb73824b Fixed #446 (memory leak false positive when variable is static) 2009-07-06 12:20:13 +02:00
Daniel Marjamäki a6ac747830 tokenizer: Don't simplify declarations of static variables 2009-07-06 11:45:14 +02:00
Kimmo Varis c8493e31ef GUI: Add icons for error messages of failed report saving. 2009-07-06 12:37:54 +03:00
Kimmo Varis 3884b4f997 GUI: Make report class destructors virtual. 2009-07-06 12:33:10 +03:00
Kimmo Varis 58c21dde1c 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 12:30:49 +03:00
Kimmo Varis d4e6d42104 Installer: Add option to create desktop icon for GUI. 2009-07-06 11:02:45 +03:00
Kimmo Varis dfc2a29e1e 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 10:51:19 +03:00
Kimmo Varis 3743cd0b6c Installer: Label GUI as Beta. 2009-07-06 10:44:44 +03:00
Reijo Tomperi 8b0e481d46 Refactoring: Rename member functions to follow naming guidelines. 2009-07-05 23:16:43 +03:00
Reijo Tomperi f676deb208 Test case improvement, unused function removed from tokenizer. 2009-07-05 22:37:53 +03:00
Reijo Tomperi e858ab2f0d 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-05 21:29:09 +03:00
Kimmo Varis c43073049d Merge branch 'master' of git@github.com:danmar/cppcheck 2009-07-04 22:37:56 +03:00
Kimmo Varis b6e543fd4f Add generated GUI translation files to gitignore. 2009-07-04 22:33:18 +03:00
Kimmo Varis 81ab6a75c3 Fix ticket #456 (GUI:: save only the results selected in view settings)
http://sourceforge.net/apps/trac/cppcheck/ticket/456
2009-07-04 22:29:48 +03:00
Reijo Tomperi 290aefaa3d TODO Test case TestSimplifyTokens::remove_comma added 2009-07-04 18:06:25 +03:00
Reijo Tomperi 6e378615cf astyle fix 2009-07-04 15:54:28 +03:00
Vesa Pikki a7c1d99d01 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 12:06:31 +03:00
Vesa Pikki f603dfde82 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 11:13:04 +03:00
Vesa Pikki d5762b8003 Merge branch 'master' of git@github.com:danmar/cppcheck 2009-07-04 11:07:23 +03:00
Vesa Pikki e656c951e5 Settings are now saved before window has closed.
This enables us to check if toolbar is visible or not. Earlier
we saved settings after the window was closed and checking for
toolbar visibility was not feasible anymore.
2009-07-04 11:06:29 +03:00
Kimmo Varis 462117485d GUI: Read include directories from project file. 2009-07-04 01:38:47 +03:00
Kimmo Varis 3132041de3 Move include paths list to Settings class so we can set include paths from GUI. 2009-07-04 01:23:37 +03:00
Reijo Tomperi 26358debcf 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 21:57:44 +03:00
Reijo Tomperi b2474fd980 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 21:22:14 +03:00
Kimmo Varis 3b1c9098b8 GUI: Show instructions instead of error when viewer application is not configured. 2009-07-03 17:46:39 +03:00
Kimmo Varis f1847e736d 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 17:20:54 +03:00
Kimmo Varis 8c2f5b42df GUI: Check translation file exists before loading it.
This allows more accurate error message for the user.
2009-07-03 14:18:35 +03:00
Kimmo Varis e2248c35f9 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 13:44:45 +03:00
Kimmo Varis a155d895fd 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 12:57:25 +03:00
Kimmo Varis ff957af0b2 Installer: Install translation files. 2009-07-03 12:05:45 +03:00
Kimmo Varis 71eaf8f58f Remove unused variable. 2009-07-03 10:56:08 +03:00
Vesa Pikki e76b9b974c Merge branch 'master' of git@github.com:danmar/cppcheck 2009-07-02 23:43:17 +03:00
Vesa Pikki 7a4115236a TranslationHandler now suggests a language based on sysytem locale.
Also made sure toolbar visibility is updated before saving settings.
2009-07-02 23:41:37 +03:00
Reijo Tomperi ea0035ec3a 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 23:29:52 +03:00
Vesa Pikki a415ab1e5c Added missing license texts. 2009-07-02 21:28:05 +03:00
Vesa Pikki 27d630f58d Disabling progressbar if stop button is pressed.
This actually had no visible effect on KDE.
2009-07-02 20:23:44 +03:00
Vesa Pikki 8f516a5638 Checks if toolbar is closed when opening view menu.
Basically just reverted back Kimmo's code that was lost in merge.
2009-07-02 20:13:22 +03:00
Vesa Pikki e1701d5b27 Removed unused statusbar. 2009-07-02 19:55:25 +03:00
Vesa Pikki 7e043b182d Fileview dialogs now use Qt Designer ui files.
Translation also updated.
2009-07-02 19:46:26 +03:00
Vesa Pikki 8694f6e982 About dialog now uses Qt Designer ui file.
Updated translations again.
2009-07-02 19:36:45 +03:00
Vesa Pikki 7d2c26bd25 Merge branch 'master' of git@github.com:danmar/cppcheck
Conflicts:
	gui/mainwindow.cpp
2009-07-02 19:16:50 +03:00