[all-commits] [llvm/llvm-project] 214902: [AST] Use an explicit copy in a range-based for

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


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

  Changed paths:
    M clang/include/clang/AST/ASTNodeTraverser.h
    M clang/include/clang/AST/RecursiveASTVisitor.h
    M clang/include/clang/AST/StmtDataCollectors.td
    M clang/lib/AST/StmtPrinter.cpp
    M clang/lib/AST/StmtProfile.cpp
    M clang/lib/Sema/SemaExprObjC.cpp
    M clang/lib/Sema/SemaPseudoObject.cpp
    M clang/lib/Sema/TreeTransform.h

  Log Message:
  -----------
  [AST] Use an explicit copy in a range-based for

The AssociationIteratorTy type will be copied in a range-based for loop.
Make the copy explicit to avoid the -Wrange-loop-analysis warning.

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

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




More information about the All-commits mailing list