[clang] [Clang] Remove unnecessary copy (PR #97902)

Youngsuk Kim via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 16 08:27:35 PDT 2024


================
@@ -1551,7 +1551,7 @@ ASTNodeImporter::VisitCountAttributedType(const CountAttributedType *T) {
   Expr *CountExpr = importChecked(Err, T->getCountExpr());
 
   SmallVector<TypeCoupledDeclRefInfo, 1> CoupledDecls;
-  for (auto TI : T->dependent_decls()) {
+  for (const TypeCoupledDeclRefInfo &TI : T->dependent_decls()) {
----------------
JOE1994 wrote:

Please feel free to apply a commit to make the type name explicit
(the `auto` suggestion was out of my personal preference for brevity).

https://github.com/llvm/llvm-project/pull/97902


More information about the cfe-commits mailing list