Details
-
Suggestion
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
None
-
None
Description
https://include-what-you-use.org/ can be easily used with CMake or with a compile_commands.json file.
For Qt and other projects it needs a bit of help:
C:\Projects\github\include-what-you-use $ cmake --install build-msvc -- Install configuration: "Release" -- Installing: C:/llvm/msvc/bin/include-what-you-use.exe -- Installing: C:/llvm/msvc/bin/fix_includes.py -- Installing: C:/llvm/msvc/bin/iwyu_tool.py -- Installing: C:/llvm/msvc/share/include-what-you-use/boost-1.64-all-private.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/boost-1.64-all.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/boost-1.75-all-private.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/boost-1.75-all.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/boost-all-private.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/boost-all.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/clang-6.intrinsics.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/gcc-8.intrinsics.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/gcc.libc.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/gcc.stl.headers.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/gcc.symbols.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/iwyu.gcc.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/libcxx.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/python2.7.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/python3.8.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/qt4.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/qt5_11.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/qt5_4.imp -- Installing: C:/llvm/msvc/share/include-what-you-use/stl.c.headers.imp
Notice there is no Qt6.imp file. https://raw.githubusercontent.com/include-what-you-use/include-what-you-use/master/qt5_11.imp and https://raw.githubusercontent.com/include-what-you-use/include-what-you-use/master/qt5_4.imp are the most modern ones.
It would be very nice if we could have such a file generated.
Attachments
Issue Links
- duplicates
-
QTBUG-45489 iwyu mapping file for Qt
- Open