[clang-tools-extra] r346939 - clang-format

Kadir Cetinkaya via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 15 02:31:15 PST 2018


Author: kadircet
Date: Thu Nov 15 02:31:15 2018
New Revision: 346939

URL: http://llvm.org/viewvc/llvm-project?rev=346939&view=rev
Log:
clang-format

Modified:
    clang-tools-extra/trunk/clangd/index/Background.cpp
    clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp

Modified: clang-tools-extra/trunk/clangd/index/Background.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/Background.cpp?rev=346939&r1=346938&r2=346939&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/index/Background.cpp (original)
+++ clang-tools-extra/trunk/clangd/index/Background.cpp Thu Nov 15 02:31:15 2018
@@ -24,10 +24,10 @@
 #include "llvm/ADT/StringMap.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Support/SHA1.h"
+#include <memory>
+#include <queue>
 #include <random>
 #include <string>
-#include <queue>
-#include <memory>
 
 using namespace llvm;
 namespace clang {

Modified: clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp?rev=346939&r1=346938&r2=346939&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/BackgroundIndexTests.cpp Thu Nov 15 02:31:15 2018
@@ -82,7 +82,7 @@ TEST(BackgroundIndexTest, ShardStorageTe
   class MemoryShardStorage : public ShardStorage {
     mutable std::mutex StorageMu;
     llvm::StringMap<std::string> &Storage;
-    size_t& CacheHits;
+    size_t &CacheHits;
 
   public:
     MemoryShardStorage(llvm::StringMap<std::string> &Storage, size_t &CacheHits)
@@ -103,7 +103,7 @@ TEST(BackgroundIndexTest, ShardStorageTe
         return llvm::make_error<llvm::StringError>(
             "Shard not found.", llvm::inconvertibleErrorCode());
       auto IndexFile = readIndexFile(Storage[ShardIdentifier]);
-      if(!IndexFile)
+      if (!IndexFile)
         return IndexFile;
       CacheHits++;
       return IndexFile;




More information about the cfe-commits mailing list