Commit Graph

66 Commits

Author SHA1 Message Date
Brad King
646f37b473 clang-tidy: disable modernize-concat-nested-namespaces
Concatenated namespaces require C++17, but we still support C++11.
2024-10-31 09:51:33 -04:00
Brad King
8779b1ad28 Merge branch 'backport-ci-fedora-41' into ci-fedora-41 2024-10-26 06:02:18 -04:00
Brad King
570f54c8f7 clang-tidy: ignore warnings new in version 19
These warnings can be fixed in the future.  Ignore them for now.
Also drop some suppressions we no longer need.
2024-10-25 08:43:04 -04:00
Daniel Pfeifer
58c5f77837 clang-tidy: fix readability-redundant-* warnings 2024-10-11 15:37:21 +02:00
Brad King
7339fbf039 clang-tidy: ignore warnings new in version 18
These warnings can be fixed in the future.  Ignore them for now.
2024-04-24 16:42:59 -04:00
Brad King
2cf9a65835 clang-tidy: ignore warnings new in version 17
These warnings can be fixed in the future.  Ignore them for now.
2023-11-17 09:58:21 -05:00
Brad King
2c27968619 clang-tidy: ignore warnings new in version 16
These warnings can be fixed in the future.  Ignore them for now.
2023-05-22 17:16:12 -04:00
Kyle Edwards
5ad111e595 clang-tidy: disable string concatenation check 2022-11-28 13:55:59 -05:00
Brad King
3090d05689 clang-tidy: ignore warnings new in versions 14 and 15
These warnings can be fixed in the future.  Ignore them for now.
2022-11-17 08:23:52 -05:00
Kyle Edwards
0880114ada clang-tidy: disable ostringstream check
CMake is not remotely ready for this yet...
2022-11-14 14:03:59 -05:00
Kyle Edwards
5f97772fcb clang-tidy: disable bespoke enum class check
CMake is not remotely ready for this yet...
2022-11-07 13:15:58 -05:00
Kyle Edwards
b4e8ddbc2f clang-tidy: enable cmStrLen() check and fix violations 2022-10-19 14:51:21 -04:00
Ben Boeckel
6c08dd972c clang-tidy: suppress google-readability-casting lint
It now complains about some things that are very pedantic.
2022-05-24 09:09:44 -04:00
Ben Boeckel
17b7bbf2a0 clang-tidy: suppress new readability-identifier-length lint
CMake uses short names all over the place; 3 character minimums is
excessive.
2022-05-24 09:09:44 -04:00
Brad King
89700cba9a clang-tidy: ignore warnings new in version 13
These warnings can be fixed in the future.  Ignore them for now.
2022-02-01 17:20:29 -05:00
Brad King
40c672aaeb clang-tidy: ignore readability-function-cognitive-complexity 2021-05-11 15:08:08 -04:00
Ben Boeckel
ef935b17ab clang-tidy: fix readability-use-anyofallof warnings 2021-01-27 08:54:18 -05:00
Ben Boeckel
9ac8dbbb94 clang-tidy: fix readability-simplify-boolean-expr warnings 2021-01-27 08:45:45 -05:00
Ben Boeckel
ca505718f4 clang-tidy: fix readability-redundant-string-init warnings 2021-01-27 08:45:45 -05:00
Ben Boeckel
b3b6ede6a1 clang-tidy: fix readability-redundant-access-specifiers warnings 2021-01-27 08:45:45 -05:00
Ben Boeckel
cdfc4e3195 clang-tidy: fix readability-qualified-auto warnings 2021-01-27 08:45:45 -05:00
Ben Boeckel
808b17b120 clang-tidy: fix readability-make-member-function-const warnings 2021-01-27 08:45:45 -05:00
Ben Boeckel
4470eb5179 clang-tidy: fix performance-trivially-destructible warnings 2021-01-27 08:45:44 -05:00
Ben Boeckel
4f396e6528 clang-tidy: fix performance-no-automatic-move warnings 2021-01-27 08:45:44 -05:00
Ben Boeckel
3a0d40bf8c clang-tidy: fix bugprone-suspicious-include warnings 2021-01-27 08:45:44 -05:00
Ben Boeckel
a0610cf9e9 clang-tidy: fix bugprone-signed-char-misuse warnings 2021-01-27 08:45:44 -05:00
Ben Boeckel
c826461d9c clang-tidy: fix bugprone-reserved-identifier warnings 2021-01-27 08:45:44 -05:00
Ben Boeckel
6a83417908 clang-tidy: ignore new warnings from newer versions
These warnings can be fixed in the future, but are ignored for now.
2020-11-12 17:55:31 -05:00
Ben Boeckel
d2b648ec4c clang-tidy: ignore misc-no-recursion
CMake has intentional recursion in its codebase, so avoid warning about
occurrences.
2020-11-12 17:55:31 -05:00
Ben Boeckel
4e9e7c713e clang-tidy: ignore making members static
CMake has lots of instances of this which is outside the scope of this
topic right now.
2020-04-13 11:26:02 -04:00
Ben Boeckel
77a1e80380 clang-tidy: ignore the use-trailing-return-type lint
CMake isn't ready for this yet.
2020-04-13 11:26:02 -04:00
Regina Pfeifer
f30523d090 clang-tidy: modernize-deprecated-headers 2019-09-16 10:11:13 -04:00
Regina Pfeifer
d25a5a7ec9 clang-tidy: modernize-use-auto
Set the MinTypeNameLength option to an impossibly high value in order
to limit the diagnostics to iterators.  Leave new expressions and cast
expressions for later.
2019-09-10 22:21:41 +02:00
Brad King
05d5c66ff8 Merge topic 'tidy-return-brace'
d63c1e4e6e clang-tidy: modernize-return-braced-init-list

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3790
2019-09-10 10:27:44 -04:00
Regina Pfeifer
d63c1e4e6e clang-tidy: modernize-return-braced-init-list 2019-09-06 22:27:39 +02:00
Regina Pfeifer
2528b70293 clang-tidy: Remove old entries from blacklist
Now that clang-tidy-8 is used, we can remove the checks that have been
renamed.  Also enable a return-braced-init-list, because we don't have
any violations for that one.
2019-09-06 21:24:18 +02:00
Regina Pfeifer
1d3f5ebb0d clang-tidy: Enable check modernize-use-using
Annotate the remaining typedefs with NOLINT.
Unfortunately, clang-tidy is not smart enough and suggests the use
of using inside extern "C" blocks.
2019-09-04 19:47:30 +02:00
Regina Pfeifer
d331021255 clang-tidy: isolate declarations for readability 2019-08-21 00:20:49 +02:00
Sebastian Holtermann
18b0330b86 clang-tidy: Enable performance-inefficient-string-concatenation
Enables the clang-tidy test performance-inefficient-string-concatenation
and replaces all inefficient string concatenations with `cmStrCat`.

Closes: #19555
2019-08-05 17:21:00 +02:00
Regina Pfeifer
4af094c8df clang-tidy: Blacklist violations for version 8
Check the codebase with clang-tidy version 8, fix the low hanging
fruits, blacklist the rest.
2019-07-30 12:38:30 +02:00
Brad King
99ce35ab9c Merge topic 'tidy-fixes'
c1d1027ac1 Enabled performance-inefficient-vector-operation check in clang-tidy

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3185
2019-04-08 07:44:10 -04:00
Jakub Kalinski
c1d1027ac1 Enabled performance-inefficient-vector-operation check in clang-tidy 2019-04-02 22:17:24 +02:00
Artur Ryt
30bb14c657 Modernize: Enable modernize-raw-string-literal in clang-tidy 2019-04-02 19:59:54 +02:00
Brad King
dc9f4f9eca Merge topic 'tidy-use-equals-default-fix'
3f9822ff6d clang-tidy: Silence use-equals-default warning

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2887
2019-01-31 11:14:21 -05:00
Regina Pfeifer
3f9822ff6d clang-tidy: Silence use-equals-default warning
clang-tidy 7 has an option to suppress this warning in macros which
defaults to '1'.  Set the option to '0' and silence the warning
explicitly.
2019-01-30 17:51:07 +01:00
Regina Pfeifer
b05b778a2d clang-tidy: Use = delete 2019-01-29 14:09:21 -05:00
Regina Pfeifer
55671b41d2 clang-tidy: Use = default
Suppress some cases in `Source/cmGeneratorExpressionNode.cxx` and
`Source/cmUVHandlePtr.h` where a few older compilers require a
user-defined default constructor (with `{}`).
2019-01-25 06:44:32 -05:00
Regina Pfeifer
5a0784ddea clang-tidy: Pass by value 2019-01-22 13:03:04 -05:00
Regina Pfeifer
ef61997b1b clang-tidy: Use emplace 2019-01-17 13:12:02 -05:00
Regina Pfeifer
414aa6c81e clang-tidy: Simplify boolean expressions 2019-01-15 11:40:25 -05:00