Commit Graph

438 Commits

Author SHA1 Message Date
Daniel Marjamäki b66a214ce5 astyle formatting
[ci skip]
2018-03-06 22:51:06 +01:00
Sebastian 6b45be6c94 GUI: Avoid path concatenation when path is absolute (#1103)
When using an absolute path for import project, prepending the current
directory results in an invalid path and the analysis (silently, no
error shown in the GUI) fails.
2018-03-06 22:50:16 +01:00
Daniel Marjamäki b1ae56736d GUI: early return 2018-02-20 13:10:36 +01:00
Daniel Marjamäki 79be1257ca GUI: Minor tweaks. Rename variables. Make sure statistics menu option is enabled at startup if there are last results 2018-02-16 22:22:13 +01:00
Daniel Marjamäki 5acbae8cfa GUI: If no analysis has been done, there are no statistics to show 2018-02-16 22:15:15 +01:00
Daniel Marjamäki 6f2d4361df Misra: Integration of MISRA in the GUI. The misra addon can now extract the rule texts from the PDF. 2018-01-20 14:13:09 +01:00
Daniel Marjamäki c4caee6b18 Updated copyright year 2018-01-14 15:37:52 +01:00
Sebastian 2f861070de GUI: Fix: Create all directories in build dir (#1009)
mkdir() only creates the "last" directory, if more directories in the
path are missing it fails and does not create any directory.
With mkpath() all missing directories are created now.
2017-12-05 20:44:09 +01:00
Daniel Marjamäki 120a7dd42e GUI: Refactoring pythonCmd lookup 2017-10-12 22:24:45 +02:00
Daniel Marjamäki abf97c2c26 GUI: refactoring 2017-10-12 17:02:25 +02:00
Daniel Marjamäki 09cdead6cb GUI: Fixed problem with absolute build dir 2017-10-08 15:01:03 +02:00
Daniel Marjamäki 92314b65e9 GUI: Set PYTHONPATH 2017-10-07 16:21:35 +02:00
Daniel Marjamäki ec55313c28 GUI: DataDir - use application path if datadir is not set 2017-10-07 16:09:14 +02:00
Daniel Marjamäki ecc90c040e GUI: When creating a new project, set a default value for build dir 2017-09-25 09:19:22 +02:00
Daniel Marjamäki 1b93e2fad9 GUI: Make last results work better 2017-09-23 15:11:42 +02:00
Daniel Marjamäki 9f306cf3aa Added C++14 option 2017-09-22 22:00:00 +02:00
Daniel Marjamäki 6ddcfc3d1c GUI: Updated handling of clang and clang-tidy 2017-09-22 15:41:27 +02:00
Daniel Marjamäki 33664a88d1 Fixed CID 1378777, uncaught exception 2017-09-02 11:11:35 +02:00
Daniel Marjamäki 34a96a56be GUI: Added buttons to show/hide clang/cppcheck results 2017-08-20 12:21:46 +02:00
Daniel Marjamäki f6184bba0d Fixed #8169 (GUI: Show checking log in mainwindow) 2017-08-19 22:55:13 +02:00
Daniel Marjamäki 330ceccdc9 GUI: Rework handling of tags. The allowed tags are now userdefined in the project file 2017-08-18 17:25:08 +02:00
Matthias Krüger 2ea8754088 gui: MainWindow::reAnalyzeSelected(): remove unused parameter 'all'.
Was:
mainwindow.cpp:998:60: warning: unused parameter ‘all’ [-Wunused-parameter]
 void MainWindow::reAnalyzeSelected(QStringList files, bool all)
                                                            ^~~
.
2017-08-14 12:56:16 +02:00
Daniel Marjamäki 71f52b77a4 GUI: Configuration of python path for the addons 2017-08-14 00:23:21 +02:00
Daniel Marjamäki 928e053efc GUI: VS headers for clang-tidy 2017-08-13 17:13:24 +02:00
Daniel Marjamäki f8c4d6cbc7 GUI: Clang settings 2017-08-12 12:04:42 +02:00
Daniel Marjamäki ad82f49ae2 GUI: Suppressing results 2017-08-11 07:45:29 +02:00
Daniel Marjamäki 1afebfa96d improve the clang settings 2017-08-10 15:47:20 +02:00
Daniel Marjamäki 0561d59d28 GUI: Added checkbox 'Analyze all Visual Studio configurations' in the projectfile dialog 2017-08-10 00:18:04 +02:00
Daniel Marjamäki 9e10c2fc78 GUI: Clear results when closing project 2017-08-09 11:23:47 +02:00
Daniel Marjamäki ff8c5f7457 GUI: Added configuration for VS include paths 2017-08-07 23:00:24 +02:00
Daniel Marjamäki e1a086f83a Restore mode 644 for gui/mainwindow.cpp 2017-08-06 21:37:15 +02:00
Daniel Marjamäki c0c7a0a877 GUI: ensure Settings::terminated is false when analysis is started 2017-08-06 21:28:49 +02:00
Daniel Marjamäki 7f1db7b716 GUI: Working on Clang support on Windows 2017-08-04 20:08:01 +02:00
Matthias Krüger 0e40a4cc39 gui: ThreadHandler::check() remove unused parameter "all".
Was:
threadhandler.cpp:78:58: warning: unused parameter ‘all’ [-Wunused-parameter]
 void ThreadHandler::check(const Settings &settings, bool all)
                                                          ^~~
2017-08-03 22:48:38 +02:00
PKEuS b4cf79f1b7 GUI: Refactorizations 2017-08-03 12:43:44 +02:00
Daniel Marjamäki dfc48be70e Fixed #2363 (GUI: Using addons in the checking) 2017-08-03 12:30:28 +02:00
Daniel Marjamäki 952c31638c Fixed #1862 (GUI: Allow user to tag errors) 2017-08-02 22:28:45 +02:00
Daniel Marjamäki 78e30e735e GUI: Better history. Prepare for tagging messages. 2017-08-02 20:24:23 +02:00
Daniel Marjamäki c4ee9799bc GUI: load/save data automatically in the ProjectFileDialog 2017-07-31 16:14:01 +02:00
Daniel Marjamäki 17d9f88d9e GUI: modernize, replace NULL with nullptr 2017-07-31 15:19:51 +02:00
Daniel Marjamäki 037fc6e3a4 GUI: Remove Project class 2017-07-31 12:02:51 +02:00
Daniel Marjamäki e589c4fc7d GUI: modernize connect in MainWindow 2017-07-31 07:36:42 +02:00
Daniel Marjamäki 5ef3de7c88 GUI: Reanalyze all for projects 2017-07-30 23:02:30 +02:00
Daniel Marjamäki abcabba88e GUI: When loading project, try to load last results 2017-07-30 13:42:34 +02:00
Daniel Marjamäki 0b509e9e35 GUI: Update strings 'check' => 'analyze' 2017-07-30 13:31:02 +02:00
Daniel Marjamäki 23ed35b1e6 GUI: Renamed methods 'Check' => 'Analyze' 2017-07-30 11:50:08 +02:00
Daniel Marjamäki d423a8c640 GUI: Renamed methods 'Check' => 'Analyze' 2017-07-30 11:19:47 +02:00
Daniel Marjamäki d09cdfd63f GUI: Rename 'Check' to 'Analyze' 2017-07-30 09:46:01 +02:00
Daniel Marjamäki fcce43fb8d GUI: reopen project after restart. If build dir is specified the last results will also be shown. 2017-07-30 00:13:00 +02:00
PKEuS 2aa1523a2d GUI: Removed XML format version 1 2017-07-29 19:36:19 +02:00
Daniel Marjamäki a698f58b6e GUI: If build dir does not exist, ask user if it should be created 2017-07-28 19:39:11 +02:00
Daniel Marjamäki c1eb71e84d GUI: Rename methods 2017-07-28 13:43:49 +02:00
Daniel Marjamäki 98803bb14c GUI: Renamed methods in ThreadHandler 2017-07-28 12:39:28 +02:00
Daniel Marjamäki 90dd04d317 GUI: Update connect() 2017-07-28 12:22:15 +02:00
Daniel Marjamäki 73cbf617e2 GUI: Renamed methods in ResultsView 2017-07-28 12:10:10 +02:00
Daniel Marjamäki 1f0720db3f GUI: Renamed LowView methods 2017-07-28 11:37:17 +02:00
Daniel Marjamäki 252fab2181 GUI: Renamed common functions 2017-07-28 11:20:35 +02:00
Daniel Marjamäki c4bd70210c GUI: Rename methods in FileList and PathMatch 2017-07-28 10:55:51 +02:00
Daniel Marjamäki 24bdd6d246 GUI: Rename MainWindow slots 2017-07-28 10:41:03 +02:00
Daniel Marjamäki 213f17e79f GUI: Rename methods in MainWindow 2017-07-28 05:44:15 +02:00
Daniel Marjamäki 24ce4292f2 GUI: Rename methods in ApplicationList 2017-07-28 05:18:43 +02:00
Daniel Marjamäki 8d704f7709 GUI: Rename methods in ProjectFile 2017-07-28 05:08:59 +02:00
Daniel Marjamäki 6c424709b6 GUI: Rename methods in Project 2017-07-28 04:57:28 +02:00
Daniel Marjamäki 80367095db Fixed #7946 (GUI-CLI: Priorize specific command line parameters to guessing) 2017-06-25 22:18:51 +02:00
David Korth 310226bb6b gui: Check CFGDIR if it's defined.
For quite a while, cppcheck-gui hasn't shown any of the standard
library packages on my Gentoo system. It turns out that cppcheck-gui
doesn't use CFGDIR, but it does use a DATADIR variable stored in
QSettings. Problem is, DATADIR isn't set unless you manually specify
--data-dir, which isn't very intuitive.

This commit adds CFGDIR to the default list of cfg paths if the
CFGDIR macro is defined during the build.
2017-05-11 11:02:10 +02:00
Daniel Marjamäki 549fec1628 GUI: Try to clarify --data-dir message 2017-05-03 21:44:59 +02:00
Daniel Marjamäki 6f2480fb4d GUI: update whole program analysis 2016-12-09 20:48:32 +01:00
Daniel Marjamäki 84e6163cb8 GUI: Add cppcheck build dir 2016-11-19 20:38:50 +01:00
Daniel Marjamäki 6f133a397b Fixed #3492 (GUI: after edit project recheck use old settings) 2016-10-01 13:08:58 +02:00
Daniel Marjamäki cf9ece4187 astyle formatting
[ci skip]
2016-10-01 12:04:13 +02:00
Daniel Marjamäki 1beb22a247 Fixed #7746 (Cppcheck can not open compile_commands.json (only compile_database.json)) 2016-10-01 11:25:58 +02:00
Daniel Marjamäki bea35ee04c GUI: Select configuration that is checked 2016-08-21 15:57:38 +02:00
Daniel Marjamäki 4745d844ad GUI: don't auto-skip configurations when checking .sln file 2016-08-20 16:14:52 +02:00
Daniel Marjamäki fe2fa4d343 GUI: Only check current platform when checking sln/vcxproj file 2016-08-20 13:47:25 +02:00
Daniel Marjamäki 9cced993aa GUI: You can now select Visual Studio files and Compile databases in the Check files dialog 2016-08-20 13:32:48 +02:00
Daniel Marjamäki f555abb0b5 GUI: Expose --project to gui 2016-08-18 21:58:50 +02:00
PKEuS ec4a85ecef Added deprecation warning for XML format 1, which will be removed in cppcheck 1.81 2016-08-07 13:50:52 +02:00
Daniel Marjamäki 85c7456546 http://cppcheck.sourceforge.net => http://cppcheck.net 2016-06-05 18:17:47 +02:00
Akhilesh Nema efff2c5397 Fixed #7294 (GUI: Add option in 'Settings' for 'Statistics Dialog' display.) 2016-01-16 17:43:57 +01:00
Akhilesh Nema 2f29efce68 Fixed #7295 (GUI: 'Edit Project' and 'Close Project' actions getting enabled after Files/Directory check.) 2016-01-16 09:59:02 +01:00
Akhilesh Nema 4aa2876ca0 Fixed #7278 (GUI: error rechecking with some files) 2016-01-15 16:52:22 +01:00
Daniel Marjamäki 79e663dd6f Settings: Remove '_' prefix for public member variables 2016-01-03 16:18:17 +01:00
Lauri Nurmi 996c9244d8 Update copyright year to 2007-2016. 2016-01-01 15:34:45 +02:00
Akhilesh Nema 997d7dc695 Fixed #7231 (GUI: 'Selected File Recheck' being performed multiple times if file selection includes existing error messages.) 2015-12-29 01:38:36 +01:00
Akhilesh Nema 0886ef9c5f Fixed #3192 (GUI: Allow opening project file without extra parameter from CLI) 2015-12-26 11:47:07 +01:00
Daniel Marjamäki cc987d8ff5 astyle formatting 2015-12-23 23:05:26 +01:00
Akhilesh Nema bedd85fa50 Fixed #1459 (GUI: Allow re-checking selected files/folders) 2015-12-23 10:28:07 +01:00
PKEuS 8f22e4924c Updated AStyle to version 2.05.1
Tweaked runastyle.bat a little bit.
2015-12-17 15:53:13 +01:00
Akhilesh Nema ca3c19c63d GUI: Fixed compiler warnings 2015-12-07 11:24:54 +01:00
Daniel Marjamäki 0f9d90d2be Changed Copyrights. Removed my name. 2015-11-18 20:04:50 +01:00
Aleksandr Pikalev e1342435ca Fixed #7063 (GUI: better extensions filtering)
Make filtering case insensitive to let check *.C, *.CPP, etc files.
Show in file open dialog only files that could be checked.
2015-11-13 20:21:07 +01:00
PKEuS dfe61f415d GUI: Improved handling of inconclusive messages (#3815)
- Moved setting from "Advanced" to "General" tab
-> Moved remaining single item, too, as it does not make sense to keep a tab for a single option. This option is now shown at the bottom of the dialog
- Replaced [inconclusive] string in "Summary" Column by extra column "Inconclusive", which is only visible if inconclusive checking is enabled
2015-10-15 11:59:17 +02:00
PKEuS 6dcb918b78 GUI: Implemented "Recheck all files" button (#3614), renamed "Recheck files" button to "Recheck modified files" (#3624) 2015-10-14 19:07:20 +02:00
PKEuS 61d8a73f4c GUI:
- Support enforcing language (#5456)
- Fixed several broken settings by saving them before creating Settings instance (changing them required restarting cppcheck)
- Updated german translation
2015-10-14 14:32:21 +02:00
Daniel Marjamäki f5c6561e18 GUI: Readd library editor 2015-09-04 20:46:26 +02:00
Daniel Marjamäki b7bac8c920 GUI: Disable and hide library editor for now. It will be readded after the release. 2015-09-04 14:20:49 +02:00
Daniel Marjamäki 4946f772ef GUI: Add libraryeditor 2015-08-16 17:36:10 +02:00
Jan Hellwig 308e7d9ae4 Allow project roots that are relative to the project file's location 2015-08-10 20:48:08 +02:00
PKEuS cfde690bb2 Fixed two comments and GUI build 2015-07-25 19:17:40 +02:00
Ameen Ali 8379b0e667 GUI: show statistics after check is done 2015-07-14 18:48:51 +02:00