Persist record signatures and list observed overloads

SymbolRecord carries the optional compiler signature and the snapshot
schema moves to 3; restore accepts schemas 1-3, verifies the digest for
3 and persists the upgrade. Registered index tests cover signature
persistence, a schema-2 migration keeping records and oversized
rejection. Signature help merges every observed signature for the
name (document occurrences and index) with the compiler-selected one
first; a real stdio session with two called overloads returned both
labels. This is a candidate list, not overload resolution.
This commit is contained in:
faumaray committed 2026-12-05 18:45:37 +03:00
1 parent 816c38da1e
commit a5b9f34c9e
7 files changed
+113 -13

No files matched your search

+3
View File
@@ -30,6 +30,8 @@ struct SymbolRecord {
std::optional<Location> definition;
std::vector<Location> references;
std::string provenance;
// Compiler-provided call signature, when the observer reported one.
std::optional<std::string> signature;
auto operator<=>(const SymbolRecord &) const = default;
};
@@ -39,6 +41,7 @@ struct Limits {
std::size_t recordsPerContext{16384};
std::size_t referencesPerRecord{256};
std::size_t nameBytes{256};
std::size_t signatureBytes{320};
std::size_t pathBytes{4096};
std::size_t snapshotBytes{32 * 1024 * 1024};
};