iwyu scripts and mappings

refs #598
This commit is contained in:
Roland Winklmeier
2016-05-13 17:02:46 +02:00
parent 0f5d2a29a8
commit 20392d4aa7
4 changed files with 3398 additions and 0 deletions

11
scripts/README.iwyu Normal file
View File

@@ -0,0 +1,11 @@
1. Create new swift mapping file
cd scripts && ./create_iwyu_mappings.py
2. Add global compiler argument to point iwyu to swift mapping file
QMAKE_CXXFLAGS += "-Xiwyu --mapping_file=/home/roland/projects/vatsim/swift/scripts/swift.imp"
3. Run make with compiler set to iwyu
make -j7 -k CXX=~/Downloads/include-what-you-use/bin/include-what-you-use > iwyu.log 2>&1
4. Fix includes
python ~/Downloads/include-what-you-use/bin/fix_includes.py --nocomments < iwyu.log