Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-103572

Generate include-what-you-use Qt6 imp file

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • None
    • Build System
    • None

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtbuildsystem Qt Build System Team
            cadam Cristian Adam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes