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.
Paths
| Differential D70045
[AST] Use an explicit copy in a range-based for ClosedPublic Authored by Mordante on Nov 9 2019, 9:14 AM.
Details Summary The AssociationIteratorTy type will be copied in a range-based for loop. This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Nov 11 2019, 5:15 PM Closed by commit rG2149028c49f8: [AST] Use an explicit copy in a range-based for (authored by Mordante). · Explain WhyNov 12 2019, 11:51 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 228933 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
|