From: Joel Rosdahl Date: Fri, 7 Aug 2026 08:58:49 +0000 (+0200) Subject: chore: Tweak comments X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=184f63a70460f95cbc88fc26dc63319c271d6d8a;p=thirdparty%2Fccache.git chore: Tweak comments --- diff --git a/src/ccache/ccache.cpp b/src/ccache/ccache.cpp index 9361dad45..73cd3465f 100644 --- a/src/ccache/ccache.cpp +++ b/src/ccache/ccache.cpp @@ -1866,8 +1866,8 @@ hash_common_info(const Context& ctx, const util::Args& args, Hash& hash) } } - // Hash the contents of explicitly imported module files (-fmodule-file=). - // The pcm content is not visible in the preprocessed output + // Hash the contents of explicitly imported module files (-fmodule-file=). The + // pcm content is not visible in the preprocessed output for (const auto& module_file : ctx.args_info.module_files) { LOG("Hashing module file {}", module_file); hash.hash_delimiter("modulefile"); @@ -1877,9 +1877,9 @@ hash_common_info(const Context& ctx, const util::Args& args, Hash& hash) } if (!(ctx.args_info.build_session_file.empty())) { - // When using -fbuild-session-file, the actual mtime needs to be - // added to the hash to prevent false positive cache hits if the - // mtime of the file changes. + // When using -fbuild-session-file, the actual mtime needs to be added to + // the hash to prevent false positive cache hits if the mtime of the file + // changes. hash.hash_delimiter("-fbuild-session-file mtime"); hash.hash( util::nsec_tot(DirEntry(ctx.args_info.build_session_file).mtime())); diff --git a/test/suites/fmodule_file.bash b/test/suites/fmodule_file.bash index 9e21cd91f..9dd9a4bdf 100644 --- a/test/suites/fmodule_file.bash +++ b/test/suites/fmodule_file.bash @@ -2,9 +2,9 @@ # are part of the hash, so that changes to a module (e.g. template function # bodies) invalidate cached consumer object files. # -# A precompiled module file (pcm) is not part of the preprocessed -# output of a consumer translation unit, so without explicit hashing the consumer -# gets a false cache hit after the module changes and silently runs stale code. +# A precompiled module file (pcm) is not part of the preprocessed output of a +# consumer translation unit, so without explicit hashing the consumer gets a +# false cache hit after the module changes and silently runs stale code. SUITE_fmodule_file_PROBE() { if ! $COMPILER_TYPE_CLANG || $COMPILER_USES_MSVC; then