FTXUI/tools/iwyu.sh

14 lines
359 B
Bash
Raw Normal View History

2021-05-02 02:40:35 +08:00
#!/bin/bash
cd "$(dirname "$0")"
cd ..
mapping_dir=$(pwd)
mkdir -p iwyu
cd iwyu
rm * -rf
echo $CMAKE_CXX_INCLUDE_WHAT_YOU_USE
2021-05-15 04:00:49 +08:00
cmake .. -DFTXUI_BUILD_TESTS=ON -DCMAKE_CXX_INCLUDE_WHAT_YOU_USE="include-what-you-use;-Xiwyu;--cxx17ns;-Xiwyu;--mapping_file=${mapping_dir}/iwyu.imp;-Xiwyu;--verbose=3"
2021-05-02 02:40:35 +08:00
make -j 2>out
2022-12-20 01:51:25 +08:00
fix_include --comments < out
2021-05-15 04:00:49 +08:00
../tools/format.sh