Let the checkers use a reference instead of a copy in a range-based for loop.
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.
Paths
| Differential D70047
[Analyzer] Use a reference in a range-based for ClosedPublic Authored by Mordante on Nov 9 2019, 9:22 AM.
Details Summary Let the checkers use a reference instead of a copy in a range-based for loop. This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.
Diff Detail
Event TimelineHerald added subscribers: Charusso, dkrupp, donat.nagy and 6 others. · View Herald TranscriptNov 9 2019, 9:22 AM Comment Actions LGTM but the & should bind to the variable, not to the type, so that should be corrected before committing. This revision is now accepted and ready to land.Nov 11 2019, 5:13 PM Closed by commit rG964842861c8a: [Analyzer] Use a reference in a range-based for (authored by Mordante). · Explain WhyNov 12 2019, 12:01 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 228935 clang/include/clang/StaticAnalyzer/Core/CheckerManager.h
clang/lib/StaticAnalyzer/Core/CheckerManager.cpp
|