[all-commits] [llvm/llvm-project] 29e78e: [AST] Use a reference in a range-based for

mordante via All-commits all-commits at lists.llvm.org
Sun Dec 15 12:18:26 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 29e78ec67988a5aa712da805f8197bfa3d738700
      https://github.com/llvm/llvm-project/commit/29e78ec67988a5aa712da805f8197bfa3d738700
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2019-12-15 (Sun, 15 Dec 2019)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp

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

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

This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.

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




More information about the All-commits mailing list