[PATCH] D70869: [Analyzer] Use a reference in a range-based for

Mark de Wever via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 30 11:20:34 PST 2019


Mordante created this revision.
Mordante added reviewers: dcoughlin, aaron.ballman, xbolva00, Szelethus.
Mordante added a project: clang.
Herald added subscribers: Charusso, dkrupp, donat.nagy, mikhail.ramalho, a.sidorin, szepet, baloghadamsoftware, xazax.hun.

This avoids unneeded copies when using a range-based for loops.

This avoids new warnings due to D68912 <https://reviews.llvm.org/D68912> adds -Wrange-loop-analysis to -Wall.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70869

Files:
  clang/lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp
  clang/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp
  clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70869.231593.patch
Type: text/x-patch
Size: 5761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191130/88d408c3/attachment-0001.bin>


More information about the cfe-commits mailing list