cppcheck/gui
Oliver Stöneberg 30ca8e11b5
moved `Language` from `settings.h` to `standards.h` (#5854)
2024-01-07 22:53:39 +01:00
..
help added .gitattributes and normalized files (#4668) 2022-12-30 21:33:45 +01:00
images GUI: Simple first hack to allow bughunting in the GUI 2020-02-04 21:20:43 +01:00
test added CMake option `EXTERNALS_AS_SYSTEM` to treat external includes as `SYSTEM` ones (#5386) 2024-01-03 11:05:32 +01:00
.clang-tidy enabled some clang-tidy warnings for non-GUI code (#5679) 2023-11-20 10:06:46 +01:00
CMakeLists.txt added CMake option `EXTERNALS_AS_SYSTEM` to treat external includes as `SYSTEM` ones (#5386) 2024-01-03 11:05:32 +01:00
about.ui about.ui: added Boost to list of libraries and correct capitalization for existing ones (#5832) 2024-01-05 13:22:52 +01:00
aboutdialog.cpp
aboutdialog.h
application.cpp
application.h
applicationdialog.cpp
applicationdialog.h
applicationdialog.ui
applicationlist.cpp
applicationlist.h Use in-class initializers, default constructors, class -> struct (#4842) 2023-08-08 11:05:02 +02:00
checkstatistics.cpp
checkstatistics.h
checkthread.cpp Fix #9684 New check: find unnecessary copy in range loop (#5738) 2023-12-08 16:58:43 +01:00
checkthread.h extracted `FileSettings` from `ImportProject` to `filesettings.h` (#5604) 2023-11-02 17:42:41 +01:00
codeeditor.cpp fixed some `modernize-use-auto` clean-tidy warnings (#4663) 2024-01-05 13:22:37 +01:00
codeeditor.h fixed some "Parameter can be made pointer/reference to const" Rider warnings (#5680) 2023-11-20 07:23:45 +01:00
codeeditorstyle.cpp extracted `FileSettings` from `ImportProject` to `filesettings.h` (#5604) 2023-11-02 17:42:41 +01:00
codeeditorstyle.h
codeeditstylecontrols.cpp
codeeditstylecontrols.h
codeeditstyledialog.cpp fixed some `modernize-use-auto` clean-tidy warnings (#4663) 2024-01-05 13:22:37 +01:00
codeeditstyledialog.h
common.cpp Fix two types of Clazy warnings (#5807) 2023-12-27 10:36:18 +01:00
common.h
compliancereportdialog.cpp Fix two types of Clazy warnings (#5807) 2023-12-27 10:36:18 +01:00
compliancereportdialog.h
compliancereportdialog.ui
cppcheck-gui.desktop Rename icon.png to cppcheck-gui.png 2016-09-27 16:28:36 +08:00
cppcheck-gui.png
cppcheck-gui.rc
cppcheck-gui.svg
cppcheck.ico
cppcheck_de.ts GUI: Update translations (#5784) 2023-12-20 21:37:23 +01:00
cppcheck_es.ts GUI: Update translations (#5784) 2023-12-20 21:37:23 +01:00
cppcheck_fi.ts GUI: Update translations (#5784) 2023-12-20 21:37:23 +01:00
cppcheck_fr.ts GUI: Update translations (#5784) 2023-12-20 21:37:23 +01:00
cppcheck_it.ts GUI: Update translations (#5784) 2023-12-20 21:37:23 +01:00
cppcheck_ja.ts Add Japanese translation for 2.13.0 (#5806) 2023-12-24 13:00:15 +01:00
cppcheck_ko.ts GUI: Update translations (#5784) 2023-12-20 21:37:23 +01:00
cppcheck_nl.ts GUI: Update translations (#5784) 2023-12-20 21:37:23 +01:00
cppcheck_ru.ts GUI: Update translations (#5784) 2023-12-20 21:37:23 +01:00
cppcheck_sr.ts GUI: Update translations (#5784) 2023-12-20 21:37:23 +01:00
cppcheck_sv.ts GUI: Update translations (#5784) 2023-12-20 21:37:23 +01:00
cppcheck_zh_CN.ts GUI: Update translations (#5784) 2023-12-20 21:37:23 +01:00
cppcheck_zh_TW.ts GUI: Update translations (#5784) 2023-12-20 21:37:23 +01:00
cppchecklibrarydata.cpp Fix two types of Clazy warnings (#5807) 2023-12-27 10:36:18 +01:00
cppchecklibrarydata.h
csvreport.cpp Fix two types of Clazy warnings (#5807) 2023-12-27 10:36:18 +01:00
csvreport.h
erroritem.cpp
erroritem.h removed unnecessary encapsulation of severity enum and made it an `enum class` (#5541) 2023-10-12 11:58:39 +02:00
filelist.cpp
filelist.h
fileview.ui
fileviewdialog.cpp
fileviewdialog.h
gui.cppcheck
gui.pro
gui.qrc
helpdialog.cpp
helpdialog.h
helpdialog.ui
libraryaddfunctiondialog.cpp
libraryaddfunctiondialog.h
libraryaddfunctiondialog.ui
librarydialog.cpp fixed some `modernize-use-auto` clean-tidy warnings (#4663) 2024-01-05 13:22:37 +01:00
librarydialog.h
librarydialog.ui
libraryeditargdialog.cpp
libraryeditargdialog.h
libraryeditargdialog.ui
main.cpp fixed some `modernize-use-auto` clean-tidy warnings (#4663) 2024-01-05 13:22:37 +01:00
mainwindow.cpp moved `Language` from `settings.h` to `standards.h` (#5854) 2024-01-07 22:53:39 +01:00
mainwindow.h fixed #12227 - properly load addons from `cppcheck.cfg` in GUI (#5716) 2023-12-06 19:45:30 +01:00
mainwindow.ui GUI: Generate compliance report 2023-01-30 14:59:45 +01:00
newsuppressiondialog.cpp
newsuppressiondialog.h Update copyright year 2023-06-21 19:58:11 +02:00
newsuppressiondialog.ui
platforms.cpp
platforms.h
precompiled.h
precompiled_qmake.h Update copyright year 2022-02-05 11:45:17 +01:00
printablereport.cpp Fix two types of Clazy warnings (#5807) 2023-12-27 10:36:18 +01:00
printablereport.h
projectfile.cpp
projectfile.h
projectfile.txt remove unneeded spaces and empty lines 2012-10-12 17:46:57 +02:00
projectfile.ui
projectfiledialog.cpp fixed some `modernize-use-auto` clean-tidy warnings (#4663) 2024-01-05 13:22:37 +01:00
projectfiledialog.h iwyu.yml: use a distro which has the latest `include-what-you-use` / enabled Qt mappings / cleaned up includes (#4885) 2023-04-08 16:08:47 +02:00
readme.txt
report.cpp
report.h
resultstree.cpp fixed some `modernize-use-auto` clean-tidy warnings (#4663) 2024-01-05 13:22:37 +01:00
resultstree.h iwyu.yml: made `include-what-you-use` output more verbose / cleaned up includes (#5540) 2023-10-16 12:57:49 +02:00
resultsview.cpp fixed some `modernize-use-auto` clean-tidy warnings (#4663) 2024-01-05 13:22:37 +01:00
resultsview.h
resultsview.ui
scratchpad.cpp
scratchpad.h
scratchpad.ui
settings.ui GUI: Re-enable misra interface in open source GUI 2022-12-31 16:08:23 +01:00
settingsdialog.cpp fixed some `modernize-use-auto` clean-tidy warnings (#4663) 2024-01-05 13:22:37 +01:00
settingsdialog.h fixed some "Parameter can be made pointer/reference to const" Rider warnings (#5680) 2023-11-20 07:23:45 +01:00
showtypes.cpp 2.13: Update copyright year [ci skip] (#5785) 2023-12-20 21:41:58 +01:00
showtypes.h 2.13: Update copyright year [ci skip] (#5785) 2023-12-20 21:41:58 +01:00
statsdialog.cpp fixed some `modernize-use-auto` clean-tidy warnings (#4663) 2024-01-05 13:22:37 +01:00
statsdialog.h
statsdialog.ui
threadhandler.cpp
threadhandler.h
threadresult.cpp extracted `FileSettings` from `ImportProject` to `filesettings.h` (#5604) 2023-11-02 17:42:41 +01:00
threadresult.h extracted `FileSettings` from `ImportProject` to `filesettings.h` (#5604) 2023-11-02 17:42:41 +01:00
translationhandler.cpp config.h: improved and cleaned up some preprocessor checks (#5663) 2023-11-15 15:31:12 +01:00
translationhandler.h
txtreport.cpp
txtreport.h
xmlreport.cpp fixed some "Variable can be made constexpr" Rider warnings (#5615) 2023-11-03 09:55:44 +01:00
xmlreport.h
xmlreportv2.cpp
xmlreportv2.h

readme.txt

Cppcheck GUI
============
This is a GUI for cppcheck. It allows selecting folder or set of files to check
with cppcheck and shows list of found errors.

Running
-------
You need Qt5 libraries installed in your system. Packages/files to install
depends on your operating system:
- Windows: download Qt from http://www.qt.io/download/
- Linux: install Qt using your package manager, look for packages having Qt
  in their name, e.g. for Ubuntu install libqt5core5a, libqt5gui5, libqt5widgets5 
  and libqt5printsupport5.

Compiling
---------
Windows:
- The easy ways are:
-- download Qt SDK from http://www.qt.io/download/ and use
   QtCreator to build the GUI.
-- Download precompiled libraries for your platform and use your preferred
   IDE/environment to build GUI. Be careful to download the correct version of
   library for your compiler!
- The harder way is to download Qt sources and build Qt. Compiling Qt alone may
  take over 4 hours!

Linux:
- Install Qt development packages (make sure qmake -tool gets installed!). The
  names depend on distribution, but e.g. for Ubuntu the needed packages are:
  * qt5-default 

After you have needed libraries and tools installed, open command
prompt/console, go to gui directory and run command:
- qmake (in Linux and in Windows if build with MinGW/gcc or nmake)
- qmake -tp vc (to generate Visual Studio project file)
- qmake -tp vc LINKCORE=yes (to generate Visual Studio project file, linking
                             dynamically to core. Recommended.)

On Windows, you have to either call qtvars.bat in Qt folder or use the Qt command
line prompt shortcut added in the start menu by Qt installation.

These commands generate makefiles to actually build the software. After that
the actual building is done in IDE or command line as usual. Note that you
don't need to run qmake again unless you add/remove files from the project.

The Visual Studio solution does not contain a configuration for x64 platform, but
it can be added easily.

Tests
-----
There are tests for the GUI in gui/test -directory. There is test.pro
-projectfile for building all the tests. Each test is in own subdirectory and
builds own binary. Test is run by simple running that binary. The binary also
has several options to select tests etc. You can get the help by running
"binaryname -help" -command.

Translations
------------
The GUI is translated to several languages. Qt comes with two tools to update
and compile the translations. lupdate updates translations files from the code
and lrelease compiles translation files use with the executable.

To update translations:
- run "lupdate gui.pro -no-obsolete" to update the translation files to match the code. This
  command updates all the .ts files. Which can be then edited to translate
  the application.

To compile translations:
- run "lrelease gui.pro" to compile .ts files to .qm files which are used by the
  executable.