lix/doc/manual/rl-next
Jade Lovelace 3daeeaefb1 build: implement clang-tidy using our plugin
The principle of this is that you can either externally build it with
Nix (actual implementation will be in a future commit), or it can be
built with meson if the Nix one is not passed in.

The idea I have is that dev shells don't receive the one from Nix to
avoid having to build it, but CI can use the one from Nix and save some
gratuitous rebuilds.

The design of this is that you can run `ninja -C build clang-tidy` and
it will simply correctly clang-tidy the codebase in spite of PCH
bullshit caused by the cc-wrapper.

This is a truly horrendous number of hacks in a ball, caused by bugs in
several pieces of software, and I am not even getting started.

I don't consider this to fix the clang-tidy issue filing, since we still
have a fair number of issues to fix even on the existing minimal
configuration, and I have not yet implemented it in CI. Realistically we
will need to do something like https://github.com/Ericsson/codechecker
to be able to silence warnings without physically touching the code, or
at least *diff* reports between versions.

Also, the run-clang-tidy output design is rather atrocious and must
not be inflicted upon anyone I have respect for, since it buries the
diagnostics in a pile of invocation logs. We would do really well to
integrate with the Gerrit SARIF stuff so we can dump the reports on
people in a user-friendly manner.

Related: https://git.lix.systems/lix-project/lix/issues/147

Change-Id: Ifefe533f3b56874795de231667046b2da6ff2461
2024-08-04 20:41:19 -07:00
..
.gitkeep release: release notes for 2.90.0 2024-06-15 18:46:18 -07:00
ban-integer-overflow.md Add release notes for removing overflow from Nix language 2024-07-18 19:27:33 +00:00
better-attrpath-errors.md trace which part of foo.bar.baz errors 2024-07-04 17:42:35 -06:00
block-io-uring.md libstore/build: block io_uring 2024-07-25 18:24:45 +02:00
build-dir.md Add build-dir setting, clean up default TMPDIR handling 2024-06-24 11:30:32 +03:00
clang-tidy-sorta.md build: implement clang-tidy using our plugin 2024-08-04 20:41:19 -07:00
distinguish-throw-errors.md distinguish between throws & errors during throw 2024-07-04 17:43:03 -06:00
fix-gc-dry-run.md Fix dry-run flag for nix-collect-garbage 2024-07-09 13:55:05 +00:00
fod-failure-includes-url.md store: guess the URL of failing fixed-output derivations 2024-06-27 22:44:16 -07:00
multiline-log-format.md libmain: add progress bar with multiple status lines 2024-06-22 14:20:27 +02:00
nix-copy-is-fast.md Add some release notes for things we did 2024-06-24 16:26:12 -07:00
nix-flake-show-description.md nix flake show: add the description if it exists 2024-07-23 13:21:15 +01:00
old-protocol-removal.md Add some release notes for things we did 2024-06-24 16:26:12 -07:00
pretty-printing.md doc/release-notes: add for pretty printing improvements 2024-07-18 19:08:20 +02:00
registry-add-shorthand-only.md Reject fully-qualified URLs in 'from' argument of nix registry add 2024-06-29 05:11:31 +00:00
reject-flake-config.md libexpr/flake: allow automatic rejection of configuration options from flakes 2024-06-30 19:28:14 +02:00
repl-complete-colon.md repl: implement tab completing :colon commands 2024-06-17 13:08:02 +00:00
repl-edit-store.md src/libcmd/repl.cc: avoid unneeded reload after :e 2024-07-30 16:08:26 +00:00
sanitizers.md Add some release notes for things we did 2024-06-24 16:26:12 -07:00