From 48031ffb3bf6740161c577778defb51126609354 Mon Sep 17 00:00:00 2001 From: Georgiy Komarov Date: Thu, 22 Jul 2021 19:53:44 +0300 Subject: [PATCH] lib: Fix clang -Wrange-loop-construct warning (#3347) --- lib/cppcheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 3eef69468..c5acc46ca 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -1371,7 +1371,7 @@ void CppCheck::executeAddonsWholeProgram(const std::map ctuInfoFiles; - for (const auto f: files) { + for (const auto &f: files) { const std::string &dumpFileName = getDumpFileName(mSettings, f.first); ctuInfoFiles.push_back(getCtuInfoFileName(dumpFileName)); }