From 2e018efa9be05c7dc30bc816e9db8b49a2791405 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 27 May 2016 13:36:58 +0000 Subject: Turn copies into references as suggested by clang-tidy's performance-unnecessary-copy-initialization. llvm-svn: 270994 --- clang/lib/Frontend/DependencyFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Frontend/DependencyFile.cpp') diff --git a/clang/lib/Frontend/DependencyFile.cpp b/clang/lib/Frontend/DependencyFile.cpp index 93d4a803469..a9b61282378 100644 --- a/clang/lib/Frontend/DependencyFile.cpp +++ b/clang/lib/Frontend/DependencyFile.cpp @@ -177,7 +177,7 @@ public: SeenMissingHeader(false), IncludeModuleFiles(Opts.IncludeModuleFiles), OutputFormat(Opts.OutputFormat) { - for (auto ExtraDep : Opts.ExtraDeps) { + for (const auto &ExtraDep : Opts.ExtraDeps) { AddFilename(ExtraDep); } } -- cgit v1.2.3