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;

函数 clore::extract::ensure_cache_key 确保给定的 CompileEntry 对象已具备可用于缓存查询的唯一键值。该函数会就地修改传入的条目,为后续的工具链参数缓存(例如由 clore::extract::query_toolchain_cached 执行的操作)建立正确的匹配依据。调用方应在依赖缓存机制的流程之前调用此函数,以保证缓存体系的一致性。

Usage Patterns

  • Called by query_toolchain_cached before attempting to use cached toolchain information to ensure the entry has a valid cache key.

Calls

  • function clore::extract::ensure_cache_key_impl

Called By

  • function clore::extract::query_toolchain_cached