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; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits