diff options
author | jade <lix@jade.fyi> | 2024-05-24 19:11:26 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@lix-systems> | 2024-05-24 19:11:26 +0000 |
commit | 19ea351642d48a49a2b41248cbbc4569aa16c0a9 (patch) | |
tree | a3ee7b0849db7d5a83fca2d05ccdc360da18ec42 /doc/manual/rl-next/rename-lixexpr.md | |
parent | adfc22c3e300b8e0dd7ddfe9543125ca7efc3f98 (diff) | |
parent | 745b5d3d4fd1d5cc97c84d559aa3dc25cc253b7f (diff) |
Merge "clang-tidy: work with angle brackets and external projects" into main
Diffstat (limited to 'doc/manual/rl-next/rename-lixexpr.md')
-rw-r--r-- | doc/manual/rl-next/rename-lixexpr.md | 4 |
1 files changed, 2 insertions, 2 deletions
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 `<nix/>` from includes, so `#include <nix/expr.hh>` -> `#include <expr.hh>`. 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 ``` |