Integrate clang-tidy configuration into nix and CI #147

Closed
opened 2024-03-18 21:11:35 +00:00 by jade · 4 comments
Owner

We can run clang-tidy on nix and potentially find some bugs. Let's get a config file going and run it in CI.

This actually depends on meson in practice because of compile_commands.json.

We can run clang-tidy on nix and potentially find some bugs. Let's get a config file going and run it in CI. This actually depends on meson in practice because of compile_commands.json.
jade added the
devx
label 2024-03-18 21:11:35 +00:00
jade added this to the Meson migration project 2024-03-18 21:11:35 +00:00
Author
Owner

it appears this requires almost no work besides fixing the things the linter finds, once meson is in place. https://mesonbuild.com/Release-notes-for-0-52-0.html#clangtidy-target

it appears this requires almost no work besides fixing the things the linter finds, once meson is in place. https://mesonbuild.com/Release-notes-for-0-52-0.html#clangtidy-target
jade added the
E/easy
label 2024-03-19 07:46:45 +00:00
Author
Owner

we can also ban VLAs

we can also ban VLAs
Author
Owner

To make effective progress on fixing the warnings if we actually turn them all on, I think we might want to consider hosting something like https://github.com/Ericsson/codechecker and then integrating it into buildbot, taking the reports from the nix build and uploading them somewhere.

To make effective progress on fixing the warnings if we actually turn them all on, I think we might want to consider hosting something like https://github.com/Ericsson/codechecker and then integrating it into buildbot, taking the reports from the nix build and uploading them somewhere.
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/1697 ("build: implement clang-tidy using our plugin")
  • commit message in cl/1705 ("build: integrate clang-tidy into CI")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/1697", "number": 1697, "kind": "commit message"}, {"backlink": "https://gerrit.lix.systems/c/lix/+/1705", "number": 1705, "kind": "commit message"}], "cl_meta": {"1697": {"change_title": "build: implement clang-tidy using our plugin"}, "1705": {"change_title": "build: integrate clang-tidy into CI"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/1697](https://gerrit.lix.systems/c/lix/+/1697) ("build: implement clang-tidy using our plugin") * commit message in [cl/1705](https://gerrit.lix.systems/c/lix/+/1705) ("build: integrate clang-tidy into CI")
Sign in to join this conversation.
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#147
No description provided.