Scott Furry
a5c1884810
Minor changes to gui code to silence repeated build warnings ( #1872 )
...
Compile of gui would result in repeated warnings from two conditions:
1) gui/erroritem.h:104:30: warning: extra ‘;’ [-Wpedantic]
Message points to Qt Macro Q_DECLARE_METATYPE usage.
Semi Colon at EOL removed.
2) gui/resultstree.h:201:10: warning [-Woverloaded-virtual]
Message is indicating that function ResultsTree::selectionChanged
is being iterpreted as overloading function of the same name
in base clase (QTreeView::selectionChanged).
Refactored - function renamed to ResultsTree::treeSelectionChanged
2019-06-05 10:13:37 +02:00
Scott Furry
dc5a38e61c
Modify Qt5 CMake and include Qt Charts Option ( #1837 )
...
Update CMake search for Qt5 componets to be consistent
with recommended practice from Kitware.
(see https://blog.kitware.com/cmake-finding-qt5-the-right-way/ )
Incorporate ability to build cppcheck-gui with Qt Charts
via CMake switch. Option "WITH_QCHARTS" will enable
search for Qt Charts to Qt5 component search and add
build flag "HAVE_QCHART".
2019-05-17 10:17:51 +02:00
Daniel Marjamäki
5b07901253
GUI: Add C++20 option
2019-05-05 10:44:09 +02:00
Daniel Marjamäki
0053476bef
Fix Cppcheck warnings
2019-04-30 01:46:02 +02:00
Daniel Marjamäki
ff8cf4fe25
gui/test: Add projectfile test
2019-04-20 19:07:14 +02:00
Daniel Marjamäki
3327102aa4
GUI: Test ProjectFile::getCheckSuppressions()
2019-04-19 15:09:55 +02:00
Daniel Marjamäki
ae3e53f391
Travis: Try to fix gui/test
2019-04-19 13:45:14 +02:00
Daniel Marjamäki
91c000c09d
Travis: Try to reactivate the gui/test tests
2019-04-19 11:57:52 +02:00
Daniel Marjamäki
93b27b2022
cleanup gui/test
2019-04-19 09:41:58 +02:00
Daniel Marjamäki
d89923386d
Removed gui/test/xmlreport
2019-04-19 08:41:48 +02:00
Daniel Marjamäki
fee01099a9
GUI: Fix tests
2019-04-19 07:39:43 +02:00
Daniel Marjamäki
b2e3af5869
Fixed #8637 (GUI: Supression filename should accept relative paths)
2019-04-18 09:52:29 +02:00
Daniel Marjamäki
ccc830870c
GUI: Updated selection of files/folders. Prefer relative paths.
2019-04-16 10:32:34 +02:00
Daniel Marjamäki
a0dd853642
analyzing one vs config (first debug config that matches platform)
2019-04-13 20:01:40 +02:00
Daniel Marjamäki
d7e08ce75f
GUI: Refactoring handling of setting for c++/c std
2019-04-12 12:12:12 +02:00
Daniel Marjamäki
f7be03fcbc
GUI: removed -std=posix and added -std=c++17
2019-04-12 11:52:28 +02:00
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
Daniel Marjamäki
66c275e337
GUI: Added code editor for quick inspection of bugs
2018-02-17 22:24:41 +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
0883623159
GUI: Better handling of 'Hide all with ID'
2018-02-15 22:37:10 +01:00
Daniel Marjamäki
f8c74032a7
GUI: Early return
2018-02-15 21:29:18 +01:00
Daniel Marjamäki
3c00a22c42
GUI: Clarify user interface '...' => 'Browse...'
2018-02-10 17:31:49 +01:00
Lauri Nurmi
e0e664f996
Fix permissions of certain non-executable files ( #1083 )
...
mode 0755 => 0644
2018-02-09 19:46:38 +01:00
Boris Barbulovski
79bb91179b
double quotes instead single ( #1067 )
2018-01-30 08:43:49 +01:00
Daniel Marjamäki
84fda14684
GUI: cleanup settings dialog interface
2018-01-21 16:42:46 +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
PKEuS
adf45c5afe
Updated translations
2018-01-14 16:31:34 +01:00
Daniel Marjamäki
8e1a23317c
lupdate gui.pro
2018-01-14 16:06:07 +01:00
Daniel Marjamäki
af26f00e04
gui: update copyright message in about dialog
2018-01-14 15:46:20 +01:00
Daniel Marjamäki
c4caee6b18
Updated copyright year
2018-01-14 15:37:52 +01:00
PKEuS
b684e1f202
Updated AStyle to version 3.0.1
2018-01-08 20:20:33 +01:00
Sebastian
ba0ea2e8b1
Fix 7439: GUI: Remove value "constant" from minsize attribute items list ( #1020 )
...
The list of items for the minsize attributes in the LibraryEditor
contains the illegal value "constant" which is removed by this patch.
2018-01-05 11:10:21 +01:00
PKEuS
1fca9112d9
Updated german translation
2017-12-30 18:20:49 +01:00
orbitcowboy
80d0c8451f
Running astyle.
2017-12-08 09:16:34 +01:00
Sebastian
8d08357a73
GUI: Enhance context menu for analysis log ( #1014 )
...
*Add context menu entry for copying selected log entry
*Add context menu entry for copying the complete log
*Do not show context menu if analysis log is empty
*Renamed function log_clear to logClear so it matches the coding style
in the GUI
2017-12-06 21:39:53 +01:00
tompollok
a3bf023506
enable high dpi scaling when qt version >= 5.6.0 ( #1008 )
2017-12-05 21:51:58 +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
Sebastian
36ebf165c8
GUI: Add clear log context menu entry ( #1012 )
...
* GUI: Add clear log context menu entry
Add custom context menu to analysis log with an entry to clear the log.
* Fix: Made string translatable
2017-12-05 20:42:16 +01:00
Daniel Marjamäki
247192452f
GUI: Better error handling when library file has unhandled elements
2017-11-12 21:03:22 +01:00
Daniel Marjamäki
d75d0965ff
GUI: Clear data properly in CppcheckLibraryData
2017-11-12 15:22:00 +01:00
Daniel Marjamäki
2be16ed663
GUI: in <function> group the return value elements together
2017-11-12 15:15:54 +01:00
Daniel Marjamäki
a794ae6c9d
GUI: Don't loose information when open/read std.cfg
2017-11-12 15:07:11 +01:00
Daniel Marjamäki
63feebc34f
GUI: Use early return
2017-11-11 21:52:36 +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
74fc6485d2
GUI: Disable addons that are not found
2017-10-11 23:02:00 +02:00
orbitcowboy
5bc61e35a0
std.cfg: Added support for std::swap.
2017-10-11 13:12:00 +02:00
Daniel Marjamäki
fb94b47f84
GUI: Indicate in project file dialog if clang-tidy is not found
2017-10-10 21:32:37 +02:00
Daniel Marjamäki
09cdead6cb
GUI: Fixed problem with absolute build dir
2017-10-08 15:01:03 +02:00
Daniel Marjamäki
7b1f156ed0
GUI: Restore filemode for checkthread
2017-10-07 23:19:09 +02:00