reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/ADT/StringRef.h
  916   hash_code hash_value(StringRef S);

References

include/llvm/ADT/DenseMapInfo.h
  236     return (unsigned)(hash_value(Val));
include/llvm/ADT/Hashing.h
  374   return hash_value(value);
include/llvm/TextAPI/MachO/InterfaceFile.h
  145     return hash_combine(hash_value(Key.Kind), hash_value(Key.Name));
lib/ProfileData/Coverage/CoverageMapping.cpp
  199   size_t FilenameHash = hash_value(Filename);
  257   if (!RecordProvenance[FilenamesHash].insert(hash_value(OrigFuncName)).second)
  267     auto &RecordIndices = FilenameHash2RecordIndices[hash_value(Filename)];
tools/clang/lib/CodeGen/CGExpr.cpp
  807       llvm::hash_code TypeHash = hash_value(Out.str());
tools/clang/lib/Serialization/ASTReader.cpp
 2379         auto ContentHash = hash_value(MemBuffOrError.get()->getBuffer());
tools/clang/lib/Serialization/ASTWriter.cpp
 1830         ContentHash = hash_value(MemBuff->getBuffer());
tools/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
  119   CacheShard &Shard = CacheShards[llvm::hash_value(Key) % NumShards];
tools/clang/tools/extra/clangd/FileDistance.cpp
   56     llvm::hash_value(llvm::StringRef("/"));
   71     llvm::hash_code Hash = llvm::hash_value(Rest);
   74       auto NextHash = llvm::hash_value(Rest);
  100   for (auto Child : DownEdges.lookup(llvm::hash_value(llvm::StringRef(""))))
  125     auto Hash = llvm::hash_value(Rest);
  150   auto R = Cache.try_emplace(llvm::hash_value(URI), FileDistance::Unreachable);
tools/lld/include/lld/Common/LLVM.h
   96     return llvm::hash_value(s);
tools/llvm-dwp/DWPStringPool.h
   22       return (unsigned)hash_value(StringRef(Val));
unittests/ADT/StringRefTest.cpp
  537   EXPECT_EQ(hash_value(std::string()), hash_value(StringRef()));
  538   EXPECT_EQ(hash_value(std::string()), hash_value(StringRef("")));
  541   EXPECT_EQ(H, hash_value(StringRef("hello world")));
  542   EXPECT_EQ(H, hash_value(StringRef(S)));
  543   EXPECT_NE(H, hash_value(StringRef("hello worl")));
  545             hash_value(StringRef("hello worl")));
  546   EXPECT_NE(H, hash_value(StringRef("hello world ")));
  548             hash_value(StringRef("hello world ")));
  549   EXPECT_EQ(H, hash_value(StringRef("hello world\0")));
  551             hash_value(StringRef("hello world").slice(1, -1)));