diff --git a/clang-tools-extra/clangd/unittests/ClangdTests.cpp b/clang-tools-extra/clangd/unittests/ClangdTests.cpp index 5d98bdc251c3..16d1ef26bea5 100644 --- a/clang-tools-extra/clangd/unittests/ClangdTests.cpp +++ b/clang-tools-extra/clangd/unittests/ClangdTests.cpp @@ -95,11 +95,8 @@ public: std::vector> filesWithDiags() const { std::vector> Result; std::lock_guard Lock(Mutex); - - for (const auto &it : LastDiagsHadError) { - Result.emplace_back(it.first(), it.second); - } - + for (const auto &It : LastDiagsHadError) + Result.emplace_back(It.first(), It.second); return Result; }