Ege Kural
d317113dc8
CI: enable clang-tidy bugprone-assignment-in-if-condition ( #26580 )
...
* docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
CI: enable clang-tidy bugprone-assignment-in-if-condition
Signed-off-by: kuralme <kuralme@protonmail.com>
initialize and immediate assignments made one line
Signed-off-by: kuralme <kuralme@protonmail.com>
* two more initialization fix
Signed-off-by: kuralme <kuralme@protonmail.com>
---------
Signed-off-by: kuralme <kuralme@protonmail.com>
Co-authored-by: PX4BuildBot <bot@px4.io>
2026-02-27 00:04:45 -09:00
Ege Kural
04f4ca8966
CI: enable clang-tidy bugprone-unsafe-functions / cert-msc24-c ( #26573 )
...
Signed-off-by: kuralme <kuralme@protonmail.com>
2026-02-24 13:43:03 -09:00
Ege Kural
a5c67b90a9
CI: enable clang-tidy bugprone-incorrect-roundings ( #26574 )
...
switched to lroundf and included cmath in all
removed std namespace - quick tested
Signed-off-by: kuralme <kuralme@protonmail.com>
2026-02-24 13:16:33 -09:00
Ege Kural
207456fd35
CI: enable clang-tidy cppcoreguidelines-virtual-class-destructor ( #26559 )
...
* CI: enable clang-tidy cppcoreguidelines-virtual-class-destructor
Signed-off-by: kuralme <kuralme@protonmail.com>
* format fix
Signed-off-by: kuralme <kuralme@protonmail.com>
---------
Signed-off-by: kuralme <kuralme@protonmail.com>
2026-02-23 19:21:20 -09:00
Ege Kural
8fd3d3268a
CI: enable clang-tidy readability-duplicate-include ( #26554 )
...
Signed-off-by: kuralme <kuralme@protonmail.com>
2026-02-23 16:54:36 -09:00
Ramon Roche
23c9af20da
clang-tidy: disable new checks for v18 compatibility
...
Update .clang-tidy configuration to maintain compatibility with
clang-tidy 18 in the new px4io/px4-dev:v1.17.0-alpha1 container.
The previous CI container used clang-tidy 6.0 (2018) with ~213 checks.
The new container has clang-tidy 18 (2024) with ~537 checks - adding
~324 new checks that would fail without configuration changes.
This commit disables the new checks to preserve the existing code
quality baseline. The disabled checks can be evaluated and enabled
incrementally in future PRs as the codebase is updated to comply.
New checks disabled (partial list):
- bugprone-assignment-in-if-condition
- bugprone-casting-through-void
- bugprone-multi-level-implicit-pointer-conversion
- cppcoreguidelines-avoid-do-while
- cppcoreguidelines-avoid-goto
- cppcoreguidelines-avoid-non-const-global-variables
- misc-definitions-in-headers
- misc-header-include-cycle
- misc-no-recursion
- modernize-macro-to-enum
- modernize-type-traits
- performance-enum-size
- readability-avoid-nested-conditional-operator
- readability-convert-member-functions-to-static
- readability-redundant-string-init
- readability-simplify-boolean-expr
- (and ~35 more)
See full list in .clang-tidy. Each check is prefixed with '-' to
disable it while keeping WarningsAsErrors: '*' active for enabled
checks.
Signed-off-by: Ramon Roche <mrpollo@gmail.com>
2026-02-12 21:20:27 -08:00
Marco Hauswirth
c29630f6ae
adjust clang-tidy checks and workflow
2026-02-12 21:20:27 -08:00
Beat Küng
67107f4978
.clang-tidy: exclude some warnings
...
Some are too verbose, others don't apply to the code base
2022-07-20 01:14:04 -04:00
Daniel Agar
757424c2c0
clang-tidy ignore modernize-raw-string-literal for now
2021-10-20 08:10:05 +02:00
Thomas Debrunner
fed234de81
flight_mode_manager: Extracted position trajectory motion planning into a library
...
Extract the functionality to plan smooth position motion trajectories into a
motion planning library, such that it can be used in other parts of the code as well.
2021-10-13 21:25:43 -04:00
Daniel Agar
bfd44afef8
clang-tidy: enable readability-braces-around-statements
2019-10-28 10:50:31 -04:00
Daniel Agar
6f1e132286
clang-tidy: enable readability-redundant-control-flow and fix
2019-10-28 10:50:31 -04:00
Daniel Agar
6f1f5e0325
clang-tidy: partially fix readability-redundant-declaration
2019-10-28 10:50:31 -04:00
Daniel Agar
68d20b56cf
clang-tidy: enable readability-redundant-member-init
2019-10-28 10:50:31 -04:00
Daniel Agar
a7f330075a
clang-tidy: enable hicpp-braces-around-statements and fix
2019-10-28 10:50:31 -04:00
Daniel Agar
744f06cc8f
clang-tidy: enable readability-delete-null-pointer and fix
2019-10-28 10:50:31 -04:00
Daniel Agar
380cae18d1
clang-tidy: partially fix modernize-use-equals-default
2019-10-27 19:19:07 -04:00
Daniel Agar
967446af4c
clang-tidy: enable readability-simplify-boolean-expr and fix
2019-10-27 19:19:07 -04:00
Daniel Agar
d545825bf0
clang-tidy: enable performance-unnecessary-value-param and fix
2019-10-27 19:19:07 -04:00
Daniel Agar
ae27dd60a6
Jenkins re-enable clang-tidy and update .clang-tidy
...
- device/Device: fix explicit constructor and uninitialized fields
- systemcmds/motor_test: update NULL to nullptr
2019-10-27 17:19:11 -04:00
Beat Küng
ec09379813
px4_daemon: fixes for clang-tidy
...
Also ignore the warning:
error: calling 'system' uses a command processor [cert-env33-c,-warnings-as-errors]
2018-08-08 21:09:39 +02:00
Dennis Mannhart
ca046af8ca
clang-tidy: don't check for pass-by-value optimization
2018-04-05 07:30:12 +02:00
Daniel Agar
de6a552b53
clang-tidy ignore clang-analyzer-cplusplus.NewDelete due to false positives
2017-08-24 19:03:58 +02:00
Daniel Agar
17727b5a82
clang-tidy ignore clang-analyzer-unix.API
2017-08-01 22:32:43 +02:00
Daniel Agar
17c1114b3e
clang-tidy readability-named-parameter
2017-06-02 19:35:18 -04:00
Daniel Agar
0d0cbd8243
clang-tidy ignore cert-flp30-c only in tests
2017-06-02 19:35:18 -04:00
Daniel Agar
768faa1ae3
clang-tidy param avoid malloc(0)
2017-06-02 19:35:18 -04:00
Daniel Agar
560bfd2b00
clang-tidy only list excluded checks
2017-06-02 19:35:18 -04:00
Daniel Agar
3c06641897
clang-tidy config list all checks
2017-06-02 19:35:18 -04:00
Daniel Agar
fffd3d4c4c
clang-tidy ignore google-global-names-in-headers and misc-redundant-expression
2017-06-02 19:35:18 -04:00
Daniel Agar
180ec59255
clang-tidy ignore mathlib assignment signatures for now
2017-06-02 19:35:18 -04:00
Daniel Agar
ac4a706da0
build system fixes and improvements
...
- deploy px4 metadata using target
- clang scan-build upload output to s3
- clang-tidy properly check headers
- add cppcheck helper
- force gcc color
2017-06-02 19:35:18 -04:00
Daniel Agar
412f956636
clang-tidy enable performance-type-promotion-in-math-fn
2017-04-01 20:19:28 +02:00
Daniel Agar
a84dc2e3d2
clang-tidy disable cert-msc50-cpp rand() check
2017-02-15 22:29:24 -05:00
Daniel Agar
fd11c3f7b1
clang-tidy disable cert-msc30-c rand() check
2017-02-15 22:29:24 -05:00
Daniel Agar
0eac637870
clang-tidy relax function-size.LineThreshold
2017-02-01 22:15:50 -05:00
Daniel Agar
9a2ce9a098
clang-tidy relax function-size.StatementThreshold
2017-02-01 22:15:50 -05:00
Daniel Agar
b068c61784
clang-tidy clang-analyzer-core.NonNullParamChecker
2017-02-01 22:15:50 -05:00
Daniel Agar
345123bb04
clang-tidy readability-static-definition-in-anonymous-namespace
2017-02-01 22:15:50 -05:00
Daniel Agar
b59ab8b663
clang-tidy remove TODOs
...
- readability-avoid-const-params-in-decls
- readability-named-parameter
2017-02-01 22:15:50 -05:00
Daniel Agar
6f05fec335
clang-tidy performance-unnecessary-copy-initialization
2017-02-01 22:15:50 -05:00
Daniel Agar
7e5f09f408
clang-tidy performance-unnecessary-value-param
2017-02-01 22:15:50 -05:00
Daniel Agar
be5764db48
clang-tidy misc-suspicious-missing-comma
2017-02-01 22:15:50 -05:00
Daniel Agar
edd564b5a9
clang-tidy list all available checks
2017-02-01 22:15:50 -05:00
Daniel Agar
4e3b4091e8
run-clang-tidy only display output on error
2017-02-01 22:15:50 -05:00
Daniel Agar
96e51f7c59
clang-tidy remove redundant
2017-02-01 22:15:50 -05:00
Daniel Agar
6631e72d6f
clang-tidy modernize-redundant-void-arg
2017-02-01 22:15:50 -05:00
Daniel Agar
e927f3e040
clang-tidy modernize-use-nullptr
2017-02-01 22:15:50 -05:00
Daniel Agar
6961a513c7
clang-tidy readability-braces-around-statements
2017-01-14 18:31:09 -05:00
Daniel Agar
b8afc97959
clang-tidy config file .clang-tidy ( #6277 )
2017-01-08 21:55:24 -05:00