render-se / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

clang-tidy to do's #2

Closed bpmooch closed 2 years ago

bpmooch commented 2 years ago

There are a bunch of TODO's for the clang-tidy px4_fmu-v5 target that need to be cleaned up. They are mainly compiler flags that clang-tidy was complaining about.

Note: maybe look into clang/gcc versions

jrn90 commented 2 years ago

PX4 runs clang-tidy 6.0 instead of the latest version. When using clang-tidy 6.0 there are no compilation errors.

TODO's should be removed. Files changed should be reverted to master.

jrn90 commented 2 years ago
* [x]  If compiler versions were changed, why aren't they changed upstream?

Turns out to be an issue with the clang-tidy version instead of gcc versions.

jrn90 commented 2 years ago

This issue is stale. Running with the correct version of clang tidy and correct compiler flags allow this to work. No code changes are needed. Target board fmu-v5 will be changed in future versions.