This avoids unneeded copies when using a range-based for loops.
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.
Paths
| Differential D70869
[Analyzer] Use a reference in a range-based for ClosedPublic Authored by Mordante on Nov 30 2019, 11:20 AM.
Details Summary This avoids unneeded copies when using a range-based for loops. This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.
Diff Detail
Event TimelineHerald added subscribers: Charusso, dkrupp, donat.nagy and 5 others. · View Herald TranscriptNov 30 2019, 11:20 AM This revision is now accepted and ready to land.Dec 17 2019, 4:29 AM Closed by commit rG70d592d68c7a: [Analyzer] Use a reference in a range-based for (authored by Mordante). · Explain WhyDec 21 2019, 5:53 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 235015 clang/lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp
clang/lib/StaticAnalyzer/Checkers/IteratorModeling.cpp
clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
|