[AST] Use an explicit copy in a range-based for
authorMark de Wever <koraq@xs4all.nl>
Tue, 12 Nov 2019 19:46:19 +0000 (20:46 +0100)
committerMark de Wever <koraq@xs4all.nl>
Tue, 12 Nov 2019 19:47:46 +0000 (20:47 +0100)
commit2149028c49f8af1f3d8a9d81b2081a2b302b2d9a
tree573f870b41cf5e489f1ead564096cb049ab27e11
parent91e94a7015f14f78809e875c43acbd341d081479
[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
clang/include/clang/AST/ASTNodeTraverser.h
clang/include/clang/AST/RecursiveASTVisitor.h
clang/include/clang/AST/StmtDataCollectors.td
clang/lib/AST/StmtPrinter.cpp
clang/lib/AST/StmtProfile.cpp
clang/lib/Sema/SemaExprObjC.cpp
clang/lib/Sema/SemaPseudoObject.cpp
clang/lib/Sema/TreeTransform.h