[PATCH] D70047: [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 9 09:25:23 PST 2019


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

Let the checkers use a reference instead of a copy in a range-based for loop.

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/D70047

Files:
  clang/include/clang/StaticAnalyzer/Core/CheckerManager.h
  clang/lib/StaticAnalyzer/Core/CheckerManager.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70047.228582.patch
Type: text/x-patch
Size: 4665 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191109/1d2f748b/attachment-0001.bin>


More information about the cfe-commits mailing list