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 /clang-tidy/README.md | |
parent | adfc22c3e300b8e0dd7ddfe9543125ca7efc3f98 (diff) | |
parent | 745b5d3d4fd1d5cc97c84d559aa3dc25cc253b7f (diff) |
Merge "clang-tidy: work with angle brackets and external projects" into main
Diffstat (limited to 'clang-tidy/README.md')
-rw-r--r-- | clang-tidy/README.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang-tidy/README.md b/clang-tidy/README.md index cf46c71ec..c2d1cb258 100644 --- a/clang-tidy/README.md +++ b/clang-tidy/README.md @@ -1,6 +1,6 @@ -# Clang tidy lints for Nix +# Clang tidy lints for Lix -This is a skeleton of a clang-tidy lints library for Nix. +This is a skeleton of a clang-tidy lints library for Lix. Currently there is one check (which is already obsolete as it has served its goal and is there as an example), `HasPrefixSuffixCheck`. @@ -10,13 +10,13 @@ goal and is there as an example), `HasPrefixSuffixCheck`. One file: ``` -ninja -C build && clang-tidy --checks='-*,nix-*' --load=build/libnix-clang-tidy.so -p ../compile_commands.json --fix ../src/libcmd/installables.cc +ninja -C build && clang-tidy --checks='-*,lix-*' --load=build/liblix-clang-tidy.so -p ../compile_commands.json -header-filter '\.\./src/.*\.h' --fix ../src/libcmd/installables.cc ``` Several files, in parallel: ``` -ninja -C build && run-clang-tidy -checks='-*,nix-*' -load=build/libnix-clang-tidy.so -p .. -fix ../src | tee -a clang-tidy-result +ninja -C build && run-clang-tidy -checks='-*,lix-*' -load=build/liblix-clang-tidy.so -p .. -header-filter '\.\./src/.*\.h' -fix ../src | tee -a clang-tidy-result ``` ## Resources |