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.
9 months ago
Brad King
7339fbf039
clang-tidy: ignore warnings new in version 18
These warnings can be fixed in the future. Ignore them for now.
1 year ago
Brad King
2cf9a65835
clang-tidy: ignore warnings new in version 17
These warnings can be fixed in the future. Ignore them for now.
2 years ago
Brad King
2c27968619
clang-tidy: ignore warnings new in version 16
These warnings can be fixed in the future. Ignore them for now.
2 years ago
Kyle Edwards
5ad111e595
clang-tidy: disable string concatenation check
3 years ago
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.
3 years ago
Kyle Edwards
0880114ada
clang-tidy: disable ostringstream check
CMake is not remotely ready for this yet...
3 years ago
Kyle Edwards
5f97772fcb
clang-tidy: disable bespoke enum class check
CMake is not remotely ready for this yet...
3 years ago
Kyle Edwards
b4e8ddbc2f
clang-tidy: enable cmStrLen() check and fix violations
3 years ago
Ben Boeckel
6c08dd972c
clang-tidy: suppress `google-readability-casting` lint
It now complains about some things that are very pedantic.
3 years ago
Ben Boeckel
17b7bbf2a0
clang-tidy: suppress new `readability-identifier-length` lint
CMake uses short names all over the place; 3 character minimums is
excessive.
3 years ago
Brad King
89700cba9a
clang-tidy: ignore warnings new in version 13
These warnings can be fixed in the future. Ignore them for now.
4 years ago
Brad King
40c672aaeb
clang-tidy: ignore `readability-function-cognitive-complexity`
4 years ago
Ben Boeckel
ef935b17ab
clang-tidy: fix `readability-use-anyofallof` warnings
5 years ago
Ben Boeckel
9ac8dbbb94
clang-tidy: fix `readability-simplify-boolean-expr` warnings
5 years ago
Ben Boeckel
ca505718f4
clang-tidy: fix `readability-redundant-string-init` warnings
5 years ago
Ben Boeckel
b3b6ede6a1
clang-tidy: fix `readability-redundant-access-specifiers` warnings
5 years ago
Ben Boeckel
cdfc4e3195
clang-tidy: fix `readability-qualified-auto` warnings
5 years ago
Ben Boeckel
808b17b120
clang-tidy: fix `readability-make-member-function-const` warnings
5 years ago
Ben Boeckel
4470eb5179
clang-tidy: fix `performance-trivially-destructible` warnings
5 years ago
Ben Boeckel
4f396e6528
clang-tidy: fix `performance-no-automatic-move` warnings
5 years ago
Ben Boeckel
3a0d40bf8c
clang-tidy: fix `bugprone-suspicious-include` warnings
5 years ago
Ben Boeckel
a0610cf9e9
clang-tidy: fix `bugprone-signed-char-misuse` warnings
5 years ago
Ben Boeckel
c826461d9c
clang-tidy: fix `bugprone-reserved-identifier` warnings
5 years ago
Ben Boeckel
6a83417908
clang-tidy: ignore new warnings from newer versions
These warnings can be fixed in the future, but are ignored for now.
5 years ago
Ben Boeckel
d2b648ec4c
clang-tidy: ignore `misc-no-recursion`
CMake has intentional recursion in its codebase, so avoid warning about
occurrences.
5 years ago
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.
5 years ago
Ben Boeckel
77a1e80380
clang-tidy: ignore the use-trailing-return-type lint
CMake isn't ready for this yet.
5 years ago
Regina Pfeifer
f30523d090
clang-tidy: modernize-deprecated-headers
6 years ago
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.
6 years ago
Regina Pfeifer
d63c1e4e6e
clang-tidy: modernize-return-braced-init-list
6 years ago
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.
6 years ago
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.
6 years ago
Regina Pfeifer
d331021255
clang-tidy: isolate declarations for readability
6 years ago
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
6 years ago
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.
6 years ago
Jakub Kalinski
c1d1027ac1
Enabled performance-inefficient-vector-operation check in clang-tidy
6 years ago
Artur Ryt
30bb14c657
Modernize: Enable modernize-raw-string-literal in clang-tidy
6 years ago
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.
7 years ago
Regina Pfeifer
b05b778a2d
clang-tidy: Use `= delete`
7 years ago
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 `{}`).
7 years ago
Regina Pfeifer
5a0784ddea
clang-tidy: Pass by value
7 years ago
Regina Pfeifer
ef61997b1b
clang-tidy: Use emplace
7 years ago
Regina Pfeifer
414aa6c81e
clang-tidy: Simplify boolean expressions
7 years ago
Regina Pfeifer
b2aa3aedea
clang-tidy: Use default member initialization
7 years ago
Regina Pfeifer
32cb564bea
clang-tidy: Remove redundant member initializations
7 years ago
Regina Pfeifer
3e60580784
clang-tidy: Fix readability-static-accessed-through-instance
Enable the check in .clang-tidy and fix all warnings.
7 years ago
Regina Pfeifer
ce2570b207
clang-tidy: Enable checks from bugprone set
7 years ago
Regina Pfeifer
5731ec30f0
clang-tidy: fix warnings from version 7
Fix some warnings that are new since clang-tidy version 4, and update
`.clang-tidy` to suppress the rest.
7 years ago
Brad King
3c8187f687
clang-tidy: restore 'misc-noexcept-move-constructor'
We disabled this in commit 1fe0d72eb6
(clang-tidy: exclude
'misc-noexcept-move-constructor', 2018-09-24) due to false positives.
Restore it and use a NOLINT comment to suppress them instead.
7 years ago