diff --git a/docs/checks/README-range-loop.md b/docs/checks/README-range-loop.md index 1721b4d..97ccaa5 100644 --- a/docs/checks/README-range-loop.md +++ b/docs/checks/README-range-loop.md @@ -1,17 +1,15 @@ # range-loop Finds places where you're using C++11 range-loops with non-const Qt containers (potential detach). Fix it by marking the container const, or, since Qt 5.7, use `qAsConst()`: #### Example `for (auto i : qAsConst(list)) { ... }` Also warns if you're passing structs with non-trivial copy-ctor or non-trivial dtor by value, use const-ref so that the copy-ctor and dtor don't get called. #### Fixits -This check supports adding missing `&` or `const-&` with: - - export CLAZY_FIXIT="fix-range-loop-add-ref" +This check supports adding missing `&`, `const-&` or `qAsConst`.