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

QtMocHelpers generate -Wctad-maybe-unsupported Clang warnings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • 6.9
    • 6.9.0
    • Build tools: moc
    • None

    Description

      /home/runner/work/cppcheck/cppcheck/cmake.output/gui/test/resultstree/__/__/moc_projectfile.cpp:40:5: error: 'QtMocHelpers::StringRefStorage' may not intend to support class template argument deduction [clang-diagnostic-ctad-maybe-unsupported]
      175   40 |     QtMocHelpers::StringRefStorage qt_stringData {
      176      |     ^
      177/home/runner/work/cppcheck/Qt/6.9.0/gcc_64/include/QtCore/qtmochelpers.h:57:39: note: add a deduction guide to suppress this warning
      178   57 | template <typename... Strings> struct StringRefStorage
      179      |                                       ^
      
      /home/runner/work/cppcheck/cppcheck/cmake.output/gui/test/resultstree/__/__/moc_projectfile.cpp:44:5: error: 'QtMocHelpers::UintData' may not intend to support class template argument deduction [clang-diagnostic-ctad-maybe-unsupported]
         44 |     QtMocHelpers::UintData qt_methods {
            |     ^
      /home/runner/work/cppcheck/Qt/6.9.0/gcc_64/include/QtCore/qtmochelpers.h:211:37: note: add a deduction guide to suppress this warning
        211 | template <typename... Block> struct UintData
            |                                     ^
      

      Note: These are from a clang-tidy run which enable Clang compiler warnings thus they have a different format than the warnings from the compiler. The "clang-diagnostic-" is equivalent to "-W".

      Attachments

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

        Activity

          People

            fabiankosmale Fabian Kosmale
            firewave O S
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes