[all-commits] [llvm/llvm-project] 964842: [Analyzer] Use a reference in a range-based for

mordante via All-commits all-commits at lists.llvm.org
Tue Nov 12 11:53:21 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 964842861c8acd53b8df8799f7c3800c5528fb72
      https://github.com/llvm/llvm-project/commit/964842861c8acd53b8df8799f7c3800c5528fb72
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2019-11-12 (Tue, 12 Nov 2019)

  Changed paths:
    M clang/include/clang/StaticAnalyzer/Core/CheckerManager.h
    M clang/lib/StaticAnalyzer/Core/CheckerManager.cpp

  Log Message:
  -----------
  [Analyzer] Use a reference in a range-based for

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.

Differential Revision: https://reviews.llvm.org/D70047




More information about the All-commits mailing list