Commit Graph

9 Commits

Author SHA1 Message Date
Sune Vuorela
5ae81f4486 Warn on suspicious realloc
The only place this was was in plucker backend; now removed.
2024-02-22 15:33:21 +00:00
Sune Vuorela
a9717a8e5f Use CI environment for clang/clazy
In order to be able to also do this with Qt6 we can't currently rely on
'random distro' to be able to give us an environment sufficient for
running clang and clazy, so use the CI system setup instead

A side effect is that we get a newer clazy and clang-tidy and thus is a
few more issues to either ignore or fix.

Also, ask ninja to continue as long as possible rather than stop at
first error to be able to get succes in as few runs as possible
2023-12-15 09:39:03 +00:00
Volker Krause
50d0703ae0 Enable readability-braces-around-statements 2022-03-09 23:29:56 +01:00
Albert Astals Cid
46bc21bfd9 CI: Debian has removed clazy from testing, use the one in unstable for now
Disable a few new warnings in clang-tidy

bugprone-implicit-widening-of-multiplication-result and
bugprone-easily-swappable-parameters seem like would be nice to fix, but
no time now
2022-01-03 17:03:46 +01:00
Albert Astals Cid
0c659a5466 clang-tidy: Enable google-explicit-constructor 2021-08-29 08:52:35 +00:00
Albert Astals Cid
604a4e1db2 clang-tidy: Disable bugprone-suspicious-enum-usage
Unfortunately it's triggered by QKeySequence needing a
Qt::KeyboardModifier and a Qt::Key
2020-12-10 00:02:14 +01:00
Albert Astals Cid
bc85160d7f clang-tidy: Disable performance-no-automatic-move
It's just too aggressive with Qt classes that are refcounted and fine to
copy
2020-12-09 21:37:32 +01:00
Albert Astals Cid
d1c2eed1b6 Make the CI pass with new clang-tidy
Disable bugprone-suspicious-include since it's triggered by the moc
includes

Disable bugprone-reserved-identifier since it's triggered by all our
_OKULAR defines, and yes even if the spec says that underscore is
reserved, are we going to be that unlucky that the library decides to
start using _OKULAR ? not probably

Add two TODOs for the future to make NormalizedRect/Point faster

Silence a warning about a quick moving QString if we make it non const

Silence a uchar vs char warning that is in decades old code so
experience seems to suggest it's ok.
2020-12-09 19:53:50 +01:00
Simone Gaiarin
fa59b87bf3 Add .clang-tidy configuration file 2020-02-29 09:26:34 +01:00