Author: ibiryukov
Date: Mon May 20 05:17:36 2019
New Revision: 361147
URL: http://llvm.org/viewvc/llvm-project?rev=361147&view=rev
Log:
[clangd] Fix naming warning from clang-tidy. NFC
Also remove newlines and braces.
Modified:
clang-tools-extra/trunk/clangd/unittests/ClangdTests.cpp
Modified: clang-tools-extra/trunk/clangd/unittests/ClangdTests.cpp
URL:
http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/unittests/ClangdTests.cpp?rev=361147&r1=361146&r2=361147&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/unittests/ClangdTests.cpp (original)
+++ clang-tools-extra/trunk/clangd/unittests/ClangdTests.cpp Mon May 20
05:17:36 2019
@@ -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;
}
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits