From 1e60d3ab02dbe7c609237c087575fe0801edf8eb Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 28 Jun 2022 17:42:18 +0200 Subject: refactor: improve includes --- scripts/lint-includes.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 scripts/lint-includes.sh (limited to 'scripts') diff --git a/scripts/lint-includes.sh b/scripts/lint-includes.sh new file mode 100755 index 0000000..4248a80 --- /dev/null +++ b/scripts/lint-includes.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +# See https://github.com/include-what-you-use/include-what-you-use + +iwyu_tool.py \ + --jobs 16 \ + -p build \ + src \ + include \ + -- \ + -Xiwyu --cxx17ns \ + -Xiwyu --check_also='*.hpp' \ +| fix_includes.py \ + --blank_lines \ + --reorder \ + --nocomments + +# -Xiwyu --mapping_file=$PWD/mappings.imp \ + -- cgit v1.2.3-18-g5258