Skip to content

clore::extract::ensure_cache_key

Owner: Namespace clore::extract

Declaration: extract/compiler.cppm:60

Definition: extract/compiler.cppm:225

Implementation: Module extract:compiler

Declaration

cpp
auto (CompileEntry &) -> void;

The function clore::extract::ensure_cache_key takes a mutable reference to a CompileEntry and returns void. It is responsible for ensuring that the given entry has a valid, unique cache key that can be used by caching mechanisms such as clore::extract::query_toolchain_cached. As a caller, you should invoke this function before operations that rely on cached toolchain information to avoid repeated, expensive computations. The function modifies the CompileEntry in place; after the call, the entry's internal cache key is guaranteed to be initialized and consistent.

Usage Patterns

  • called by query_toolchain_cached before caching or querying toolchain for a compile entry

Calls

  • function clore::extract::ensure_cache_key_impl

Called By

  • function clore::extract::query_toolchain_cached