Commit Graph

100 Commits

Author SHA1 Message Date
Paul Fultz II 7f358b2bed
Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
Daniel Marjamäki c489626167 updated copyright year 2021-07-04 08:09:11 +02:00
Oliver Stöneberg 6397e29f84
cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
Daniel Marjamäki 8d20d8afb5 Update Copyright year 2020-10-03 09:15:56 +02:00
Georgy Komarov a3a2e574a5
gui: Add validation for Python path
This commit adds to cppcheck-gui validation for the path to the Python
interpreter entered by the user.
2020-09-12 11:35:00 +03:00
Daniel Marjamäki 70e0c66c35 GUI: Use theme in whole program 2019-07-22 15:55:51 +02:00
Daniel Marjamäki 82c6a72b48 Rename variable pDlg to dlg 2019-07-22 12:50:42 +02:00
Scott Furry e459762bcd Suppress Code semantic and syntax warnings (#1936)
Sources were built with Clang but with increased verbosity of error detection.

A number of syntax and semantic warnings were encountered. Commit adds
changes to correct these warnings.

Some changes involve removing extra, and unncessary, semi-colons at EOL
(e.g. at end of switch clause).

Project astyle settings are not currently setup to detect if a file is to
have an extra carriage return after the last line of data. Two files were
altered to ensure an extra carriage return.

An advisory to enhance code was encountered in triage code. Clang advisory
on a for-loop interation value suggested that:
`use reference type 'const QString &' to prevent copying`
2019-06-30 21:43:25 +02:00
Scott Furry a195477470 Correct Zero/Null as pointer constant (#1938)
Building with enhanced clang warnings indicated a large number of
instances with the warning:

`warning: zero as null pointer constant`

Recommended practice in C++11 is to use `nullptr` as value for
a NULL or empty pointer value. All instances where this warning
was encountered were corrected in this commit.

Where warning was encountered in dependency code (i.e. external library)
no chnages were made. Patching will be offered upstream.
2019-06-30 21:39:22 +02:00
Daniel Marjamäki 84cc09d17c Update Copyright 2019-06-29 07:49:14 +02:00
versat b1e2b9d61b astyle formatting
[ci skip]
2019-06-25 15:29:15 +02:00
Scott Furry 0d76d078e2 Implement User Selectable Code Editor Style in cppcheck-gui (#1913)
Building on #1874, commit adds user controls to choose
or edit style in cppcheck-gui ONLY. Commit does not
address CodeEditor style usage in triage app at this time.

Code Editor style can be altered from the added "Code Editor"
tab in the user preferences. The user has the option to select
default light, default dark, or to customize.

If user leaves the style set to light or dark defaults, this
will be reflected in the choices shown in the preferences
dialog.

User choice for Code Editor Style is saved in the cppcheck-gui
preferences under the heading "EditorStyle".
2019-06-23 19:04:53 +02:00
Daniel Marjamäki d6b976fd21 GUI: Renamed private variable LangCodeRole 2018-06-18 14:19:14 +02:00
Daniel Marjamäki 7e4dba6a7e Updated copyright year 2018-03-31 20:59:09 +02: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
Daniel Marjamäki 71f52b77a4 GUI: Configuration of python path for the addons 2017-08-14 00:23:21 +02:00
Daniel Marjamäki 663beb6fd2 GUI: Fix compile error 2017-08-13 17:38:47 +02:00
Daniel Marjamäki 928e053efc GUI: VS headers for clang-tidy 2017-08-13 17:13:24 +02:00
Daniel Marjamäki 83ae7ce270 GUI: Remove include paths from the preferences dialog 2017-08-13 16:56:37 +02:00
Daniel Marjamäki 5f324364bd GUI: chmod 2017-08-12 12:05:12 +02:00
Daniel Marjamäki f8c4d6cbc7 GUI: Clang settings 2017-08-12 12:04:42 +02:00
Daniel Marjamäki 5414d09e03 GUI: minor tweaks in Settings dialog 2017-08-11 23:40:37 +02:00
Daniel Marjamäki 1afebfa96d improve the clang settings 2017-08-10 15:47:20 +02:00
Daniel Marjamäki ff8c5f7457 GUI: Added configuration for VS include paths 2017-08-07 23:00:24 +02:00
Daniel Marjamäki 373f33406b GUI: modernize connect in SettingsDialog 2017-07-31 15:13:16 +02:00
Daniel Marjamäki c1eb71e84d GUI: Rename methods 2017-07-28 13:43:49 +02:00
Daniel Marjamäki 252fab2181 GUI: Renamed common functions 2017-07-28 11:20:35 +02:00
Daniel Marjamäki 24ce4292f2 GUI: Rename methods in ApplicationList 2017-07-28 05:18:43 +02:00
Akhilesh Nema efff2c5397 Fixed #7294 (GUI: Add option in 'Settings' for 'Statistics Dialog' display.) 2016-01-16 17:43:57 +01:00
Lauri Nurmi 996c9244d8 Update copyright year to 2007-2016. 2016-01-01 15:34:45 +02:00
PKEuS 8f22e4924c Updated AStyle to version 2.05.1
Tweaked runastyle.bat a little bit.
2015-12-17 15:53:13 +01:00
Aleksandr Pikalev e8decd925b Fixed #7161 (GUI: Do not lose [Default] label after editing an application) 2015-11-28 21:39:48 +01:00
Daniel Marjamäki 0f9d90d2be Changed Copyrights. Removed my name. 2015-11-18 20:04:50 +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 fb58718ad1 GUI: fixed handling of language in settings dialog (#6435) 2015-01-21 18:35:00 +01:00
Daniel Marjamäki ff11ba9847 Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
Daniel Marjamäki 051d42ae6b astyle formatting 2014-11-20 14:20:09 +01:00
orbitcowboy f5d804f71a running astyle 2014-11-20 10:13:03 +01:00
Daniel Marjamäki 935b37da0e Fixed #5515 (Crash on Preferences/Applications) 2014-05-02 07:16:10 +02:00
Daniel Marjamäki fd3a8a2a18 Update copyright 2014-02-15 07:45:39 +01:00
Mateusz Pusz 7301a3e64d QFileDialog last used paths storage improved 2013-02-17 19:59:56 +01:00
Daniel Marjamäki e4b8512bc7 GUI: Reverted 'GUI while opening FileDialog now remembers last path used' 2013-02-10 08:15:32 +01:00
Mateusz Pusz 013de4857c GUI while opening FileDialog now remembers last path used 2013-02-07 18:06:11 +01:00
Andrew C. Martin 4a73c93750 Fix compiler warnings and comment/string typos
- fix g++ warning:

> lib/checkother.cpp:3779: warning: comparison between signed and unsigned integer expressions

 - fix suncc warning (see [everything2](http://everything2.com/title/C%252B%252B%253A+static+extern+%2522C%2522)):

> "lib/checkmemoryleak.cpp", line 578: Warning (Anachronism): Formal argument __compar of type extern "C" int(*)(const void*,const void*) in call to bsearch(const void*, const void*, unsigned long, unsigned long, extern "C" int(*)(const void*,const void*)) is being passed int(*)(const void*,const void*).

- prefer empty() / isEmpty() over "size() > 0" (cases not caught by stlSize)

- fix word misspellings (mostly comments, a few output lines)

  - Parenthesis => Parentheses (both variations were used in the codebase)

  - fix typo and wording ("never alwayw") in gui/test/data/benchmark/simple.cpp's CheckOther::unsignedPositive():

```
-  "An unsigned variable will never alwayw be positive so it is either pointless or "
+  "An unsigned variable can't be negative so it is either pointless or "
```
2013-01-16 07:37:07 -07:00
Reijo Tomperi 5d5f7085bf Updating year 2012 -> 2013 to .cpp and .h files and man page. 2013-01-01 18:29:08 +02:00
PKEuS fc78cac797 Made several functions in GUI static or const
Fixed cppcheck message about wrong order in initializer list
2012-10-27 12:10:32 +02:00
PKEuS c56170acfa Refactorization: Avoid copying Application instances. 2012-10-27 11:35:00 +02:00
PKEuS 7ffffdfc16 Optionally display error Id in additional column and details view (#3526) 2012-10-27 11:16:52 +02:00
PKEuS b1a768e5ec Cleanup of includes in GUI (Removed redundant includes, use forward declarations) - Build speedup by 3% in VS10 (LINKCORE=yes, Qt 4.8.3) 2012-10-07 12:25:34 +02:00