clang-format

llvm-svn: 346939
This commit is contained in:
Kadir Cetinkaya 2018-11-15 10:31:15 +00:00
parent 3e5a47560c
commit cb8407ca89
2 changed files with 4 additions and 4 deletions

View File

@ -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 {

View File

@ -82,7 +82,7 @@ TEST(BackgroundIndexTest, ShardStorageTest) {
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, ShardStorageTest) {
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;