As of now, the range-loop checks warns about range-based for loops * over non-const Qt containers that may detach, such as: * where non-trivial types are accessed by value instead of const reference I propose to split the check in two so these cases can be selected individually. Thoughts?
sounds good
can you provide a patch ?
(In reply to Sergio Martins from comment #2) > can you provide a patch ? I have opened a MR: https://invent.kde.org/sdk/clazy/-/merge_requests/35
thanks, will check it soon!
Git commit 83425dc3aada18a2046b5f33469d41a3a25838cb by Sergio Martins. Committed on 22/02/2021 at 19:56. Pushed by smartins into branch 'master'. README: Add Christian Schärf to list of contributors M +1 -0 README.md https://invent.kde.org/sdk/clazy/commit/83425dc3aada18a2046b5f33469d41a3a25838cb