[clazy] [Bug 474314] New: new check: detect use of Q_FOREACH and replace by C++11 for each

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Fri Sep 8 22:10:59 BST 2023


https://bugs.kde.org/show_bug.cgi?id=474314

            Bug ID: 474314
           Summary: new check: detect use of Q_FOREACH and replace by
                    C++11 for each
    Classification: Developer tools
           Product: clazy
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: foss at grueninger.de
                CC: smartins at kde.org
  Target Milestone: ---

Qt discouraged the use of the Q_FOREACH macro since Qt 5.7 and suggests
switching to C++-11 range-based for loop.

A new check could detect the use of Q_FOREACH. Further, it might be
automatically replaced by a suitable C++-11 range-based for loop.

Link to Q_FOREACH documentation: https://doc.qt.io/qt-6/qforeach-proxy.html

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list