Skip to content

Unbreak build \w Qt 5.15.8: "," in arg type fails harder with foreach macro

Friedrich W. H. Kossebau requested to merge work/kossebau/unbreakforeach into 2.2

Qt5.15.8's implementation does not deal with forwarding __VA_ARGS__ trick

Given the min dep of Qt 5.5 in this branch and not remembering if Qt 5.5 would work with range-based for loops and no interest to research, instead of just cherry-picking 81f7e2de instead I just changed the type to auto in this commit, as also used elsewhere in the same file with foreach, so assuming it to work with all claimed supported versions 😄

Tested with kdev-php, same code generated (modulo different order in lists generated from qhash).

@asturmlechner @kfunk @mwolff

Merge request reports

Loading