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  D71526  
[AST] Use a reference in a range-based for ClosedPublic Authored by Mordante on Dec 15 2019, 9:19 AM. 
Details Summary This avoids unneeded copies when using a range-based for loops. 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.Dec 15 2019, 9:20 AM Closed by commit rG29e78ec67988: [AST] Use a reference in a range-based for (authored by Mordante).  ·  Explain WhyDec 15 2019, 12:19 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 233981 clang/lib/AST/ASTContext.cpp
 
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||