cppcheck/tools/triage
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
..
CMakeLists.txt Implement User Selectable Code Editor Style in cppcheck-gui (#1913) 2019-06-23 19:04:53 +02:00
main.cpp triage: Implement Clang-Tidy and Clazy hints (#1674) 2019-02-16 17:52:36 +01:00
mainwindow.cpp Suppress Code semantic and syntax warnings (#1936) 2019-06-30 21:43:25 +02:00
mainwindow.h Fix Cppcheck warning 2019-06-15 14:37:02 +02:00
mainwindow.ui triage: add options 'show 100 random results' and 'version' 2019-03-09 11:01:22 +01:00
readme.txt triage tool: Add "Load from clipboard" functionality (#1599) 2019-01-14 17:49:10 +01:00
triage.pro Implement User Selectable Code Editor Style in cppcheck-gui (#1913) 2019-06-23 19:04:53 +02:00

readme.txt

triage tool
This tool lets you comfortably look at Cppcheck analysis results for daca packages. It automatically
downloads the package, extracts it and jumps to the corresponding source code for a Cppcheck
message.

triage uses "wget" and "tar"
On Linux the tool can be directly run since the programs should be installed.
On Windows something like Cygwin is necessary and the directory containing the executables must be
in the PATH environment variable (for example "C:\cygwin\bin").

Usage:
After triage has been started you have to load daca results from a file via the "Load from file"
button or from the clipboard via the "Load from clipboard" button.
The file or clipboard text must contain the package URL line beginning with "ftp://" and the
Cppcheck messages.
When the results data has been parsed successfully you can see a list of Cppcheck messages directly
beneath the "Load ..." buttons. Double-click any entry to let the tool show the source code and jump
to and mark the corresponding line. If the package is not found it is downloaded and extracted
automatically. So after the first double-click it is normal that it takes some time until the
source code is shown.