Warning, /sdk/clazy/docs/checks/README-foreach.md is written in an unsupported language. File is not indexed.
0001 # foreach 0002 0003 - Finds places where you're detaching the `foreach` container. 0004 - Finds places where big or non-trivial types are passed by value instead of const-ref. 0005 - Finds places where you're using `foreach` on STL containers. It causes deep-copy. Use C++11 range-loop instead. 0006 0007 **Note**: range-loop is preferred over `foreach` since the compiler generates less and more optimized code. 0008 Use range-loop if your container is const, otherwise a detach will happen. 0009 0010 This check is disabled for Qt >= 5.9