Commit Graph

1411 Commits

Author SHA1 Message Date
Daniel Marjamäki dfe417c369 msvc compatibility: /constexpr/const/ 2019-04-11 21:06:37 +02:00
Daniel Marjamäki 3c1f6ae5c2 appveyor: /constexpr/const/ 2019-04-10 21:27:07 +02:00
Daniel Marjamäki 37c540b380 Use constexpr 2019-04-10 16:54:16 +02:00
Daniel Marjamäki f6b410b469 GUI: add setting for 'checkHeaders', 'checkUnusedTemplates' and 'maxCtuDepth' to project 2019-04-10 16:49:24 +02:00
Daniel Marjamäki 7237acdb47 GUI: In the project dialog select libraries in a listbox 2019-04-06 16:44:43 +02:00
Sebastian 08d41ab8af
Load std.cfg before all other libraries (#1740)
- CLI: Save the libraries that should be loaded to a list and load them
after the std.cfg has been loaded.
- GUI: Load std.cfg (and windows.cfg / posix.cfg when applicable) before
setting other options and loading the other libraries.
In the project-file-dialog the std.cfg is searched first. If some
other library fails to load is is retried with first loading std.cfg.
- boost.cfg: Enable containers that depend on std containers.
2019-03-15 06:59:37 +01:00
Daniel Marjamäki 6717f49f20 Try to give some credit to the 3rd party libraries we use. 2019-02-10 17:16:53 +01:00
Daniel Marjamäki bd7790fd8c Update copyright year 2019-02-09 07:24:06 +01:00
Daniel Marjamäki 7ac43eda79 lupdate gui.pro 2019-02-09 07:20:17 +01:00
Lauri Nurmi a7a0a54557 Show a clear button in the Quick Filter text field in GUI. (#1603) 2019-01-15 10:35:23 +01:00
Daniel Marjamäki f629fa3d66 Fix Cppcheck warning
[ci skip]
2019-01-12 18:29:34 +01:00
amai2012 e259e7bc6c #8626 twin include. Remove redundant include 2018-12-31 19:47:23 +01:00
Oliver Schode 1dd4c7a71e Fixed typo in warning about modified variable inside assertion (#1542) 2018-12-28 15:24:50 +01:00
Sebastian b51f19d530
Fix some doxygen warnings/issues in the comments (#1537) 2018-12-21 21:23:03 +01:00
fu7mu4 2abb3aa263 fix japanese translation typo and manual version (#1515) 2018-12-09 09:06:56 +01:00
Daniel Marjamäki d9db20db96 Update copyright year 2018-12-08 07:53:28 +01:00
Daniel Marjamäki 7ad93fa1a2 lupdate 2018-12-08 07:51:03 +01:00
Daniel Marjamäki 2c5a31594c fix argument name 2018-12-08 07:37:27 +01:00
Daniel Marjamäki f5c2abaefa Fix shadow warning 2018-11-19 10:21:02 +01:00
Markus Elfring 02c2018f25 Addition of a null pointer check in ProjectFileDialog::removeSuppression() (#1457)
The function “QListWidget::takeItem” is documented in the way
that a null pointer can be returned. This result was not checked
by the function “ProjectFileDialog::removeSuppression” so far.
Thus add a corresponding check so that an inappropriate pointer access
should not happen any more here.

Link: https://sourceforge.net/p/cppcheck/discussion/development/thread/d1d0b65245/#a1bf
Link: https://trac.cppcheck.net/ticket/8814
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2018-10-29 14:21:56 +01:00
Daniel Marjamäki 4533eb0bd6 GUI: cleanup the code 2018-10-22 21:00:04 +02:00
tompollok ae657d49e8 enable AA_UseHighDpiPixmaps (#1446)
enables AA_UseHighDpiPixmaps for less pixeled icons on 4K displays
2018-10-22 19:07:02 +02:00
Daniel Marjamäki 1a75084d75 GUI: Refactor comparisons 2018-10-20 16:30:40 +02:00
fu7mu4 b31b4706c5 cppcheck_ja.ts is updated (#1435) 2018-10-17 16:03:41 +02:00
Alexander ee2cea026a Fixed bug with incorrect platform used for check if check is run from UI and platform settings is taken from xml file. (#1434) 2018-10-17 12:44:41 +02:00
Markus Elfring 937da6bd46 Put XmlReportV2 object on the stack in ResultsView::readErrorsXml() (#1430)
Dynamic memory allocation was used for a XmlReportV2 object
in the function “ResultsView::readErrorsXml”.
This object was put on the stack instead so that this software
became a bit safer and more efficient.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2018-10-17 06:38:14 +02:00
Daniel Marjamäki 7833ade128 Updated copyright year 2018-10-13 18:20:31 +02:00
Daniel Marjamäki f9157f2aeb lupdate gui.pro 2018-10-13 18:17:43 +02:00
PKEuS 8f32811b80 Updated german translation 2018-10-13 09:31:02 +02:00
alex babafd75e3 Added support for -U option to the GUI. 2018-10-09 15:05:05 +02:00
Daniel Marjamäki 59731d70e8 triage: set error line properly 2018-09-01 06:39:22 +02:00
Daniel Marjamäki c4000b27f8 Fix Cppcheck warning 2018-08-11 15:31:26 +02:00
Matthias Krüger 017f910c57 gui: fix 2 findings by cppcheck
[gui/projectfiledialog.h:283]: (performance) Function parameter 'shortText' should be passed by const reference.
[gui/projectfiledialog.cpp:675]: (performance) Function parameter 'shortText' should be passed by const reference.

also run dmake
2018-08-09 09:43:11 +02:00
Daniel Marjamäki 9e3b392ec6 GUI: Edit existing suppression in the project file dialog 2018-08-09 06:50:35 +02:00
Daniel Marjamäki ddf7b186bb GUI: Cleanup non-existing projects from the MRU 2018-08-08 11:03:51 +02:00
Daniel Marjamäki f68f793256 GUI: load other results when open recent project 2018-08-08 09:07:05 +02:00
Daniel Marjamäki 90a3759479 Refactoring: early return 2018-08-08 09:00:04 +02:00
Daniel Marjamäki b66af545ca GUI: cleanup the details window 2018-08-07 10:45:00 +02:00
Daniel Marjamäki a24c3b1d36 Fix GUI build 2018-08-05 14:25:43 +02:00
fu7mu4 41d4a6bde6 update cppcheck_ja.ts for 1.84 (#1306) 2018-07-13 22:49:30 +02:00
Daniel Marjamäki 8c228c6ced GUI: better handling of suppressions 2018-07-01 14:24:37 +02:00
Daniel Marjamäki 5e34847592 GUI: Use relative paths in analysis 2018-07-01 08:00:05 +02:00
Daniel Marjamäki db6f4f4a3b Fix a few 'const reference' warnings by Cppcheck 2018-06-23 23:04:54 +02:00
Daniel Marjamäki 73a5aafba4 astyle formatting
[ci skip]
2018-06-19 14:02:58 +02:00
Daniel Marjamäki d6b976fd21 GUI: Renamed private variable LangCodeRole 2018-06-18 14:19:14 +02:00
Daniel Marjamäki bae36bddd2 GUI: Renamed private variable minsizes 2018-06-18 14:15:13 +02:00
Daniel Marjamäki dbc19d6503 GUI: Renamed private variables 2018-06-18 14:11:34 +02:00
Daniel Marjamäki 7d00b30488 GUI: Rename private variable ui to mUi 2018-06-18 10:13:33 +02:00
Daniel Marjamäki 86c5f44d19 GUI: Rename private variables 2018-06-18 10:10:11 +02:00
amai2012 134d0be8b9 #8620 include used twice. Clean up includes. 2018-06-12 08:34:44 +02:00
Daniel Marjamäki 45379a3aa6 Updated copyright year for modified files
[ci skip]
2018-06-10 22:07:21 +02:00
Daniel Marjamäki ff7e08bf0d Run 'lupdate gui.pro'
[ci skip]
2018-06-10 22:05:27 +02:00
PKEuS 3e856c2e03 Updated german translation 2018-06-10 21:00:38 +02:00
Daniel Marjamäki 4da406baab GUI: Better handling of addon output 2018-06-06 15:01:06 +02:00
Susi Lehtola 3f4aae75e2 LinguistTools is not a library. (#1274) 2018-06-03 07:13:39 +02:00
Susi Lehtola f2fc38a5b4 Use modern CMake syntax. (#1273)
* Use modern CMake syntax.

* Update way of finding Qt5 components
2018-06-02 18:31:33 +02:00
orbitcowboy ca449a7f27 Running astlye 2018-05-25 08:36:02 +02:00
bwoester 1af983dd95 Gui select bcb6 projects (#1258)
* Allow selecting bcb6 projects in "Analyze" -> "Files..."
This change also splits the filters for files which can be analyzed into multiple entries and includes a helper class to construct filter strings.

* move FilterStringBuilder to its own class and document it

* add new files to .pro

* add missing include for Q_DECLARE_TR_FUNCTIONS macro

* re-run astyle

* allow to import bcb6 project when creating a new cppcheck project
exchange class FilterStringBuilder with a toFilterString() helper method

* add missing include
2018-05-25 07:09:49 +02:00
IOBYTE ce50df8047 Fix override warnings. (#1234) 2018-05-15 16:37:40 +02:00
Daniel Marjamäki e5c4e31da6 Fix a number of noOperatorEq and noCopyConstructor warnings 2018-05-01 09:36:21 +02:00
Sebastian b1bd6bb9ff
GUI: Applicationlist: Add Microsoft Visual Studio Code (on Windows) (#1193) 2018-04-26 16:26:10 +02:00
Sebastian 389fc0c1ee
GUI: Fix wrong receivers in connect calls (#1178)
Since the slots (functions) are not existent in the class MainWindow and
Qt complains that it can not connect the slots i guess it has been
forgotten to change the receiver.
The ResultsView class (from which mUI.mResults is an instance) contains
these slots, so i guess they should be connected there.
2018-04-18 21:37:09 +02:00
Sebastian 7aefdeb089 GUI: Remove connect call with nonexistent slot function (#1177)
When starting the application Qt prints this message:
QObject::connect: No such slot CodeEditor::highlightCurrentLine() in
..\gui\codeeditor.cpp:141
And this function really does not exist, i guess it is some relict. If
it is planned to implement it this PR can just be closed.
2018-04-18 15:42:03 +02:00
Daniel Marjamäki ebb3912396 GUI: Refactoring 2018-04-16 19:57:23 +02:00
versat 024f84ea60 GUI: Add "Check library" and "Check configuration" menu entries
They both are only enabled when a project is loaded and when started
they reanalyze the project one time with the according settings.
2018-04-14 08:10:35 +02:00
Daniel Marjamäki fb803789fd astyle formatting
[ci skip]
2018-04-13 19:57:48 +02:00
Daniel Marjamäki c4c678383e GUI: copy selected warnings 2018-04-13 17:31:51 +02:00
Daniel Marjamäki ff2c376fe8 GUI: Cleanup NewSuppressionDialog interface 2018-04-13 17:24:58 +02:00
versat 80a26312dc GUI: Applicationlist: Find UltraEdit 32/64 on Windows 2018-04-12 22:07:08 +02:00
Daniel Marjamäki 308e044769 GUI: minor gui updates
* when loading xml results, show filename in window title
 * when xml results are loaded, enable the save/print/etc buttons
2018-04-12 08:15:04 +02:00
Daniel Marjamäki a0906140a6 Suppressions: New extensible Suppressions xml format that allow more attributes. To start with it also allows symbolName. 2018-04-09 06:43:48 +02:00
Daniel Marjamäki e240f8cee8 Fixed #8473 (GUI: Missing addon, not looking in executable path subfolder) 2018-04-07 10:32:10 +02:00
Daniel Marjamäki a828d2a199 GUI: Fix so correct tab is shown first in ProjectFileDialog 2018-04-07 10:20:47 +02:00
Sebastian 48d33da1d5 German translation: Fixed typo and punctuation marks. (#1144) 2018-04-04 14:19:57 +02:00
amai 3cc3bd7066 #8471 GUI German spelling: correct typo 2018-04-03 22:05:32 +02:00
amai fe20a96013 #8467 Remove redundant include 2018-04-02 21:10:35 +02:00
Daniel Marjamäki b4583d6e37 Made Report::close() non-virtual, it is not overriden and it is called from the Report destructor 2018-04-02 18:30:12 +02:00
PKEuS e4273be2bc Updated german translation 2018-04-02 08:52:09 +02:00
Daniel Marjamäki 7e4dba6a7e Updated copyright year 2018-03-31 20:59:09 +02:00
Daniel Marjamäki 9edc2ac360 lupdate gui.pro 2018-03-31 20:55:29 +02:00
Daniel Marjamäki 588ec80122 misra: the user must provide the rule texts in text file. 2018-03-24 13:28:40 +01:00
Sebastian e4becc5616
GUI: Fix loading of platform files in project file dialog (#1122)
Platform::loadPlatformFile needs the path to the binary not only the
path to the directory where the binary is in. Otherwise the last
directory could get stripped away and the platform files maybe will not
be found.
2018-03-16 05:35:30 +01:00
Sebastian ad5f7cbf71 GUI: Minor fix: Rename one of the two layout items with the same name (#1121)
Qt warns about two QVBoxLayout objects with the same name and
automatically renames one.
This fixes the warning.
2018-03-15 14:59:34 +01:00
Daniel Marjamäki 9800e82d13 GUI: Allow that platform is selected in project dialog 2018-03-13 13:07:10 +01:00
Sebastian 004da46664 GUI: Make edit define tooltip more clear via example (#1113) 2018-03-12 15:20:09 +01:00
Sebastian df34164b9f
GUI: Scratchpad: Add help texts; run astyle (#1104)
This adds labels with short explanations on how the scratchpad can be
used.
2018-03-07 12:38:50 +01:00
Martin Ettl 5fc8f13fd6 GUI: Expand found results when using the scratchpad. 2018-03-07 00:18:47 +01:00
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
Sebastian 857da29967 GUI: Remove redundant code (#1102)
The checked state of the addon checkboxes is already set in the
updateAddonCheckBox function directly above the removed code. I do not
see any reason to set it again and only for three of the four
checkboxes.
2018-03-06 22:49:33 +01:00
Sebastian 3c5ab13a6d GUI: Add context menu entry for copying line nr (#1100)
* GUI: Add context menu entry for copying line nr

As requested in ticket 7947 (https://trac.cppcheck.net/ticket/7947) also
copying the line nr is implemented.

* Use early return for the new function and similar ones
2018-03-06 15:34:14 +01:00
fu7mu4 428d067f19 Cppcheck_ja.ts is updated (#1099)
* update to 1.82

* update cppcheck_ja.ts
2018-02-25 13:50:03 +01:00
Daniel Marjamäki 1b53e3ec1d GUI: Updated codeeditor formatting 2018-02-23 22:17:40 +01:00
Luxon JEAN-PIERRE 211b5ba9fb GUI: added new french translations (#1094) 2018-02-22 22:02:56 +01:00
Daniel Marjamäki bd21d7fff6 GUI: Improved scrolling in code display 2018-02-21 22:49:50 +01:00
Daniel Marjamäki 9da0e785ef GUI: Improve user interface when mCheckPath is not set 2018-02-20 22:23:02 +01:00
Daniel Marjamäki be67b75035 GUI: early return 2018-02-20 14:32:07 +01:00
Daniel Marjamäki 5236bfd845 GUI: load xml => set check path to file path if that seems to match 2018-02-20 13:40:10 +01:00
Daniel Marjamäki b1ae56736d GUI: early return 2018-02-20 13:10:36 +01:00
Daniel Marjamäki feef8f3ebe GUI: Updated code viewer 2018-02-18 12:06:54 +01:00