MaskRay updated this revision to Diff 543200. MaskRay added a comment. Herald added a subscriber: wenlei.
bump version Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D155992/new/ https://reviews.llvm.org/D155992 Files: clang-tools-extra/clangd/SourceCode.cpp clang-tools-extra/clangd/index/Background.cpp clang-tools-extra/clangd/index/Serialization.cpp clang-tools-extra/clangd/test/index-serialization/Inputs/sample.idx Index: clang-tools-extra/clangd/index/Serialization.cpp =================================================================== --- clang-tools-extra/clangd/index/Serialization.cpp +++ clang-tools-extra/clangd/index/Serialization.cpp @@ -457,7 +457,7 @@ // The current versioning scheme is simple - non-current versions are rejected. // If you make a breaking change, bump this version number to invalidate stored // data. Later we may want to support some backward compatibility. -constexpr static uint32_t Version = 18; +constexpr static uint32_t Version = 19; llvm::Expected<IndexFileIn> readRIFF(llvm::StringRef Data, SymbolOrigin Origin) { Index: clang-tools-extra/clangd/index/Background.cpp =================================================================== --- clang-tools-extra/clangd/index/Background.cpp +++ clang-tools-extra/clangd/index/Background.cpp @@ -155,7 +155,7 @@ BackgroundQueue::Task BackgroundIndex::indexFileTask(std::string Path) { std::string Tag = filenameWithoutExtension(Path).str(); - uint64_t Key = llvm::xxHash64(Path); + uint64_t Key = llvm::xxh3_64bits(Path); BackgroundQueue::Task T([this, Path(std::move(Path))] { std::optional<WithContext> WithProvidedContext; if (ContextProvider) Index: clang-tools-extra/clangd/SourceCode.cpp =================================================================== --- clang-tools-extra/clangd/SourceCode.cpp +++ clang-tools-extra/clangd/SourceCode.cpp @@ -559,7 +559,7 @@ } FileDigest digest(llvm::StringRef Content) { - uint64_t Hash{llvm::xxHash64(Content)}; + uint64_t Hash{llvm::xxh3_64bits(Content)}; FileDigest Result; for (unsigned I = 0; I < Result.size(); ++I) { Result[I] = uint8_t(Hash);
Index: clang-tools-extra/clangd/index/Serialization.cpp =================================================================== --- clang-tools-extra/clangd/index/Serialization.cpp +++ clang-tools-extra/clangd/index/Serialization.cpp @@ -457,7 +457,7 @@ // The current versioning scheme is simple - non-current versions are rejected. // If you make a breaking change, bump this version number to invalidate stored // data. Later we may want to support some backward compatibility. -constexpr static uint32_t Version = 18; +constexpr static uint32_t Version = 19; llvm::Expected<IndexFileIn> readRIFF(llvm::StringRef Data, SymbolOrigin Origin) { Index: clang-tools-extra/clangd/index/Background.cpp =================================================================== --- clang-tools-extra/clangd/index/Background.cpp +++ clang-tools-extra/clangd/index/Background.cpp @@ -155,7 +155,7 @@ BackgroundQueue::Task BackgroundIndex::indexFileTask(std::string Path) { std::string Tag = filenameWithoutExtension(Path).str(); - uint64_t Key = llvm::xxHash64(Path); + uint64_t Key = llvm::xxh3_64bits(Path); BackgroundQueue::Task T([this, Path(std::move(Path))] { std::optional<WithContext> WithProvidedContext; if (ContextProvider) Index: clang-tools-extra/clangd/SourceCode.cpp =================================================================== --- clang-tools-extra/clangd/SourceCode.cpp +++ clang-tools-extra/clangd/SourceCode.cpp @@ -559,7 +559,7 @@ } FileDigest digest(llvm::StringRef Content) { - uint64_t Hash{llvm::xxHash64(Content)}; + uint64_t Hash{llvm::xxh3_64bits(Content)}; FileDigest Result; for (unsigned I = 0; I < Result.size(); ++I) { Result[I] = uint8_t(Hash);
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits