[clangd] Fix naming warning from clang-tidy. NFC

Also remove newlines and braces.

llvm-svn: 361147
This commit is contained in:
Ilya Biryukov 2019-05-20 12:17:36 +00:00
parent 2109572464
commit 03a7353fa0
1 changed files with 2 additions and 5 deletions

View File

@ -95,11 +95,8 @@ public:
std::vector<std::pair<Path, bool>> filesWithDiags() const {
std::vector<std::pair<Path, bool>> Result;
std::lock_guard<std::mutex> 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;
}