}
static bool
-do_remember_include_file(const Context& ctx,
+do_remember_include_file(Context& ctx,
std::string path,
struct hash* cpp_hash,
bool system,
// Create or update the manifest file.
static void
-update_manifest_file(const Context& ctx)
+update_manifest_file(Context& ctx)
{
if (!ctx.config.direct_mode() || ctx.config.read_only()
|| ctx.config.read_only_direct()) {
// Hash mtime or content of a file, or the output of a command, according to
// the CCACHE_COMPILERCHECK setting.
static void
-hash_compiler(const Context& ctx,
+hash_compiler(Context& ctx,
struct hash* hash,
const Stat& st,
const char* path,
// with -ccbin/--compiler-bindir. If they are NULL, the compilers are looked up
// in PATH instead.
static void
-hash_nvcc_host_compiler(const Context& ctx,
+hash_nvcc_host_compiler(Context& ctx,
struct hash* hash,
const Stat* ccbin_st,
const char* ccbin)
// Update a hash with information common for the direct and preprocessor modes.
static void
-hash_common_info(const Context& ctx,
+hash_common_info(Context& ctx,
struct args* args,
struct hash* hash,
const ArgsInfo& args_info)
// Try to return the compile result from cache. If we can return from cache
// then this function exits with the correct status code, otherwise it returns.
static void
-from_cache(const Context& ctx,
+from_cache(Context& ctx,
enum fromcache_call_mode mode,
bool put_result_in_manifest)
{
// Find the real compiler. We just search the PATH to find an executable of the
// same name that isn't a link to ourselves.
static void
-find_compiler(const Context& ctx, char** argv)
+find_compiler(Context& ctx, char** argv)
{
// We might be being invoked like "ccache gcc -c foo.c".
std::string base(Util::base_name(argv[0]));
}
static void
-recompress_file(const Context& ctx,
+recompress_file(Context& ctx,
const std::string& stats_file,
const CacheFile& cache_file,
int8_t level)
}
void
-compress_recompress(const Context& ctx,
+compress_recompress(Context& ctx,
int8_t level,
const Util::ProgressReceiver& progress_receiver)
{
// - level: Target compression level (positive or negative value), or 0 for no
// compression.
// - progress_receiver: Function that will be called for progress updates.
-void compress_recompress(const Context& ctx,
+void compress_recompress(Context& ctx,
int8_t level,
const Util::ProgressReceiver& progress_receiver);
}
bool
-hash_command_output(const Context& ctx,
+hash_command_output(Context& ctx,
struct hash* hash,
const char* command,
const char* compiler)
}
bool
-hash_multicommand_output(const Context& ctx,
+hash_multicommand_output(Context& ctx,
struct hash* hash,
const char* commands,
const char* compiler)
int hash_source_code_file(const Config& config,
struct hash* hash,
const char* path);
-bool hash_command_output(const Context& ctx,
+bool hash_command_output(Context& ctx,
struct hash* hash,
const char* command,
const char* compiler);
-bool hash_multicommand_output(const Context& ctx,
+bool hash_multicommand_output(Context& ctx,
struct hash* hash,
const char* command,
const char* compiler);
FILE* dump_stream);
using WriteEntryFunction =
- void (*)(const Context& ctx,
+ void (*)(Context& ctx,
CacheEntryWriter& writer,
const std::string& result_path_in_cache,
uint32_t entry_number,
}
static void
-write_embedded_file_entry(const Context&,
+write_embedded_file_entry(Context&,
CacheEntryWriter& writer,
const std::string& /*result_path_in_cache*/,
uint32_t entry_number,
}
static void
-write_raw_file_entry(const Context& ctx,
+write_raw_file_entry(Context& ctx,
CacheEntryWriter& writer,
const std::string& result_path_in_cache,
uint32_t entry_number,
}
static void
-write_result(const Context& ctx,
+write_result(Context& ctx,
const std::string& path,
const ResultFileMap& result_file_map)
{
}
bool
-result_put(const Context& ctx,
+result_put(Context& ctx,
const std::string& path,
const ResultFileMap& result_file_map)
{
bool result_get(const Context& ctx,
const std::string& path,
const ResultFileMap& result_file_map);
-bool result_put(const Context& ctx,
+bool result_put(Context& ctx,
const std::string& path,
const ResultFileMap& result_file_map);
bool result_dump(const Context& ctx, const std::string& path, FILE* stream);
// Record that a number of bytes and files have been added to the cache. Size
// is in bytes.
void
-stats_update_size(const Context& ctx,
+stats_update_size(Context& ctx,
const std::string& sfile,
int64_t size,
int files)
void stats_zero(const Config& config);
void stats_summary(const Config& config);
void stats_print(const Config& config);
-void stats_update_size(const Context& ctx,
+void stats_update_size(Context& ctx,
const std::string& sfile,
int64_t size,
int files);