From bd2441c8874ccd26c5ff2d606f3458bdbf2dc936 Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Thu, 15 Nov 2018 10:34:43 +0000 Subject: [PATCH] Revert "clang-format" This reverts commit 0a37e9c3d88a2e21863657df2f7735fb7e5f746e. llvm-svn: 346944 --- clang-tools-extra/clangd/index/Background.cpp | 4 ++-- clang-tools-extra/unittests/clangd/BackgroundIndexTests.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clang-tools-extra/clangd/index/Background.cpp b/clang-tools-extra/clangd/index/Background.cpp index a972454..69399ba 100644 --- a/clang-tools-extra/clangd/index/Background.cpp +++ b/clang-tools-extra/clangd/index/Background.cpp @@ -24,10 +24,10 @@ #include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/SHA1.h" -#include -#include #include #include +#include +#include using namespace llvm; namespace clang { diff --git a/clang-tools-extra/unittests/clangd/BackgroundIndexTests.cpp b/clang-tools-extra/unittests/clangd/BackgroundIndexTests.cpp index ee8aa67d..c79184d 100644 --- a/clang-tools-extra/unittests/clangd/BackgroundIndexTests.cpp +++ b/clang-tools-extra/unittests/clangd/BackgroundIndexTests.cpp @@ -82,7 +82,7 @@ TEST(BackgroundIndexTest, ShardStorageTest) { class MemoryShardStorage : public ShardStorage { mutable std::mutex StorageMu; llvm::StringMap &Storage; - size_t &CacheHits; + size_t& CacheHits; public: MemoryShardStorage(llvm::StringMap &Storage, size_t &CacheHits) @@ -103,7 +103,7 @@ TEST(BackgroundIndexTest, ShardStorageTest) { return llvm::make_error( "Shard not found.", llvm::inconvertibleErrorCode()); auto IndexFile = readIndexFile(Storage[ShardIdentifier]); - if (!IndexFile) + if(!IndexFile) return IndexFile; CacheHits++; return IndexFile; -- 2.7.4