[RFC] Add -Wrange-loop-analysis to -Wall

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[RFC] Add -Wrange-loop-analysis to -Wall

Nathan Ridge via cfe-dev
I started to work on bug 32823 "Warn about accidental coping of data in
range based for" [1] and quickly discovered the feature request was
already done when using the -Wrange-loop-analysis compiler option.

Since the -Wfor-loop-analysis is already part of -Wall I feel
-Wrange-loop-analysis should also be part of -Wall. If this is wanted I
post the attached patch to the Phabricator.


[1] https://bugs.llvm.org/show_bug.cgi?id=32823

Regards,
Mark de Wever

_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

32823.patch (524 bytes) Download Attachment