diff options
| author | Haojian Wu <hokein@google.com> | 2018-11-16 10:58:40 +0000 |
|---|---|---|
| committer | Haojian Wu <hokein@google.com> | 2018-11-16 10:58:40 +0000 |
| commit | 22c9f7b296a48d5d3552d776a05f8cb1ff5d921c (patch) | |
| tree | 4c394976889c77e1888ffe7f6fd9fd17de9d1ceb /clang-tools-extra/clangd/index/Serialization.cpp | |
| parent | b4a64cede820c2fd58884226388dfa8f77cccd0f (diff) | |
| download | bcm5719-llvm-22c9f7b296a48d5d3552d776a05f8cb1ff5d921c.tar.gz bcm5719-llvm-22c9f7b296a48d5d3552d776a05f8cb1ff5d921c.zip | |
[clangd] Truncate SymbolID to 8 bytes.
Summary:
This is our goal. It has a non-zero rick, but so far we haven't see any
collision (externally and internally).
Reviewers: sammccall
Subscribers: ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits
Differential Revision: https://reviews.llvm.org/D54622
llvm-svn: 347044
Diffstat (limited to 'clang-tools-extra/clangd/index/Serialization.cpp')
| -rw-r--r-- | clang-tools-extra/clangd/index/Serialization.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/index/Serialization.cpp b/clang-tools-extra/clangd/index/Serialization.cpp index d6b4c9cc04c..7eea824ce0c 100644 --- a/clang-tools-extra/clangd/index/Serialization.cpp +++ b/clang-tools-extra/clangd/index/Serialization.cpp @@ -300,7 +300,7 @@ Symbol readSymbol(Reader &Data, ArrayRef<StringRef> Strings) { // REFS ENCODING // A refs section has data grouped by Symbol. Each symbol has: -// - SymbolID: 16 bytes +// - SymbolID: 8 bytes // - NumRefs: varint // - Ref[NumRefs] // Fields of Ref are encoded in turn, see implementation. @@ -338,7 +338,7 @@ std::pair<SymbolID, std::vector<Ref>> readRefs(Reader &Data, // 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 = 6; +constexpr static uint32_t Version = 7; Expected<IndexFileIn> readRIFF(StringRef Data) { auto RIFF = riff::readFile(Data); |

