kwin/effects
Vlad Zagorodniy 8af2fa73dc Run clang-tidy with modernize-use-override check
Summary:
Currently code base of kwin can be viewed as two pieces. One is very
ancient, and the other one is more modern, which uses new C++ features.

The main problem with the ancient code is that it was written before
C++11 era. So, no override or final keywords, lambdas, etc.

Quite recently, KDE compiler settings were changed to show a warning if
a virtual method has missing override keyword. As you might have already
guessed, this fired back at us because of that ancient code. We had
about 500 new compiler warnings.

A "solution" was proposed to that problem - disable -Wno-suggest-override
and the other similar warning for clang. It's hard to call a solution
because those warnings are disabled not only for the old code, but also
for new. This is not what we want!

The main argument for not actually fixing the problem was that git
history will be screwed as well because of human factor. While good git
history is a very important thing, we should not go crazy about it and
block every change that somehow alters git history. git blame allows to
specify starting revision for a reason.

The other argument (human factor) can be easily solved by using tools
such as clang-tidy. clang-tidy is a clang-based linter for C++. It can
be used for various things, e.g. fixing coding style(e.g. add missing
braces to if statements, readability-braces-around-statements check),
or in our case add missing override keywords.

Test Plan: Compiles.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: davidedmundson, apol, romangg, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D22371
2019-07-22 20:03:22 +03:00
..
backgroundcontrast Port away from QRegion::rects 2019-07-10 01:00:51 +03:00
blur Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
colorpicker Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
coverswitch Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
cube Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
cubeslide Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
desktopgrid Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
dialogparent/package Install KPackages with kpackage_install_package 2019-07-16 14:21:14 +02:00
diminactive [effects/diminactive] Dim Wayland clients 2018-10-19 14:38:10 +03:00
dimscreen/package Install KPackages with kpackage_install_package 2019-07-16 14:21:14 +02:00
eyeonscreen/package Install KPackages with kpackage_install_package 2019-07-16 14:21:14 +02:00
fade SVN_SILENT made messages (.desktop file) - always resolve ours 2019-07-13 05:18:09 +02:00
fadedesktop SVN_SILENT made messages (.desktop file) - always resolve ours 2019-07-13 05:18:09 +02:00
fadingpopups/package Install KPackages with kpackage_install_package 2019-07-16 14:21:14 +02:00
fallapart Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
flipswitch Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
frozenapp/package Install KPackages with kpackage_install_package 2019-07-16 14:21:14 +02:00
glide [wayland] Make sure that only the fading popups effect animates outline 2019-04-09 14:21:22 +03:00
highlightwindow Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
invert Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
kscreen Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
login/package Install KPackages with kpackage_install_package 2019-07-16 14:21:14 +02:00
logout/package Install KPackages with kpackage_install_package 2019-07-16 14:21:14 +02:00
lookingglass Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
magiclamp Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
magnifier Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
maximize/package Install KPackages with kpackage_install_package 2019-07-16 14:21:14 +02:00
morphingpopups/package Install KPackages with kpackage_install_package 2019-07-16 14:21:14 +02:00
mouseclick Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
mousemark Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
presentwindows Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
resize Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
scale/package Install KPackages with kpackage_install_package 2019-07-16 14:21:14 +02:00
screenedge Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
screenshot Port away from deprecated QImage::byteCount 2019-07-10 02:02:15 +03:00
sheet [effects/sheet] Decrease the default animation duration 2018-10-22 10:11:00 +03:00
showfps Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
showpaint SVN_SILENT made messages (.desktop file) - always resolve ours 2019-04-12 09:04:10 +02:00
slide Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
slideback Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
slidingpopups Add windowsystem plugin for KWin's qpa 2019-01-27 08:59:58 +01:00
snaphelper [effects/snaphelper] Do massive overhaul 2018-11-05 16:59:19 +02:00
squash/package Install KPackages with kpackage_install_package 2019-07-16 14:21:14 +02:00
startupfeedback Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
thumbnailaside Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
touchpoints Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
trackmouse Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
translucency/package Install KPackages with kpackage_install_package 2019-07-16 14:21:14 +02:00
windowaperture/package Install KPackages with kpackage_install_package 2019-07-16 14:21:14 +02:00
windowgeometry Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
wobblywindows Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
zoom Run clang-tidy with modernize-use-override check 2019-07-22 20:03:22 +03:00
CMakeLists.txt Copy the packages into the build directory so they can be found without installign 2019-07-16 17:31:24 +02:00
Messages.sh Remove temporary file 2008-07-02 07:04:51 +00:00
effect_builtins.cpp [effects/screenshot] Remove outdated reference to KSnapshot 2019-06-10 08:48:19 -06:00
effect_builtins.h [effects/dimscreen] Port to JavaScript 2018-11-17 13:44:20 +02:00
kwineffect.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2019-07-13 05:18:09 +02:00
logging.cpp pedantic fixes 2016-07-16 13:14:44 -04:00
shaders.qrc Merge branch 'Plasma/5.12' into Plasma/5.15 2019-02-05 13:28:45 +01:00