Warning, /sdk/clazy/docs/checks/README-range-loop-reference.md is written in an unsupported language. File is not indexed.
0001 # range-loop-reference 0002 0003 Finds places where you're using C++11 range-loops with non-trivial types by value so that the copy-ctor and dtor don't get called. 0004 0005 Fix it by adding a (const) reference to the range declaration: 0006 0007 #### Example 0008 0009 `for (const auto &i : list) { ... }` 0010 0011 #### Fixits 0012 This check supports adding missing `&` or `const-&` (if the range declaration is already `const`).