From 745b5d3d4fd1d5cc97c84d559aa3dc25cc253b7f Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Thu, 23 May 2024 15:16:10 -0700 Subject: clang-tidy: work with angle brackets and external projects Also fix the readme Change-Id: I422dff5536bf01d43983621aa01035bd77ac0252 --- doc/manual/rl-next/rename-lixexpr.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/manual/rl-next/rename-lixexpr.md b/doc/manual/rl-next/rename-lixexpr.md index 698553c7f..32e3cfd09 100644 --- a/doc/manual/rl-next/rename-lixexpr.md +++ b/doc/manual/rl-next/rename-lixexpr.md @@ -22,10 +22,10 @@ Migration path: To apply this migration automatically, remove all `` from includes, so `#include ` -> `#include `. Then, the correct paths will be resolved from the tangled mess, and the clang-tidy automated fix will work. -Then run the following for out of tree projects: +Then run the following for out of tree projects (header filter is set to only fix instances in headers in `../src` relative to the compiler's working directory, as would be the case in nix-eval-jobs or other things built with meson, e.g.): ```console lix_root=$HOME/lix (cd $lix_root/clang-tidy && nix develop -c 'meson setup build && ninja -C build') -run-clang-tidy -checks='-*,lix-fixincludes' -load=$lix_root/clang-tidy/build/liblix-clang-tidy.so -p build/ -fix src +run-clang-tidy -checks='-*,lix-fixincludes' -load=$lix_root/clang-tidy/build/liblix-clang-tidy.so -p build/ -header-filter '\.\./src/.*\.h' -fix src ``` -- cgit v1.2.3