diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-28 19:22:06 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-28 19:22:06 +0200 |
commit | d2a76bd8cfd883070259bf572a9f723a37c0d96e (patch) | |
tree | cca72b471b0c3a562789a1ab966e4568edf7165a /scripts/lint-includes.sh | |
parent | daf39f75d764449f18cd480b6d3c645b8372b0a5 (diff) |
refactor: improve includes with iwyu
Diffstat (limited to 'scripts/lint-includes.sh')
-rwxr-xr-x | scripts/lint-includes.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/lint-includes.sh b/scripts/lint-includes.sh new file mode 100755 index 0000000..ed3e0b2 --- /dev/null +++ b/scripts/lint-includes.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# See https://github.com/include-what-you-use/include-what-you-use + +iwyu_tool.py \ + --jobs 16 \ + -p build \ + src \ + -- \ + -Xiwyu --cxx17ns \ + -Xiwyu --mapping_file=$PWD/mappings.imp \ +| fix_includes.py \ + --blank_lines \ + --reorder \ + --nocomments + |