forked from OSchip/llvm-project
parent
3e5a47560c
commit
cb8407ca89
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue