Skip to content

clore::extract::ensure_cache_key_impl

Owner: Namespace clore::extract

Declaration: extract/compiler.cppm:119

Definition: extract/compiler.cppm:119

Implementation: Module extract:compiler

Declaration

cpp
auto (CompileEntry &) -> void;

The function clore::extract::ensure_cache_key_impl serves as the core implementation for generating and assigning a cache key to a CompileEntry. It modifies the given entry in place to include a unique identifier that can later be used by caching subsystems such as clore::extract::query_toolchain_cached. As a caller, you should not invoke this function directly; instead, call clore::extract::ensure_cache_key, which delegates to this implementation. The cache key is derived from the normalized source file path, an optional source file content hash via try_hash_source_file, and the full compile signature produced by build_compile_signature_impl. After this function returns, the CompileEntry is guaranteed to have a valid and consistent cache key.

Usage Patterns

  • called by ensure_cache_key to populate cache key for a compile entry

Calls

  • function clore::extract::(anonymous namespace)::build_compile_signature_impl
  • function clore::extract::(anonymous namespace)::try_hash_source_file
  • function clore::extract::normalize_entry_file

Called By

  • function clore::extract::ensure_cache_key