diff options
Diffstat (limited to 'src/checks/level1/README-foreach.md')
-rw-r--r-- | src/checks/level1/README-foreach.md | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/checks/level1/README-foreach.md b/src/checks/level1/README-foreach.md deleted file mode 100644 index 9c5d3d99..00000000 --- a/src/checks/level1/README-foreach.md +++ /dev/null @@ -1,10 +0,0 @@ -# foreach - -- Finds places where you're detaching the `foreach` container. -- Finds places where big or non-trivial types are passed by value instead of const-ref. -- Finds places where you're using `foreach` on STL containers. It causes deep-copy. Use C++11 range-loop instead. - -**Note**: range-loop is prefered over `foreach` since the compiler generates less and more optimized code. -Use range-loop if your container is const, otherwise a detach will happen. - -This check is disabled for Qt >= 5.9 |