From: Joel Rosdahl Date: Sat, 21 Sep 2024 08:23:26 +0000 (+0200) Subject: chore: Tweak comments X-Git-Tag: v4.11~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51677af0ef26da8e3381919b69708c859474ecf3;p=thirdparty%2Fccache.git chore: Tweak comments --- diff --git a/src/ccache/ccache.cpp b/src/ccache/ccache.cpp index 961f4994..89307f06 100644 --- a/src/ccache/ccache.cpp +++ b/src/ccache/ccache.cpp @@ -1060,7 +1060,7 @@ rewrite_stdout_from_compiler(const Context& ctx, util::Bytes&& stdout_data) line_with_rel_inc.data(), line_with_rel_inc.size()); } - // MSVC /FC option causes the paths in diagnostics messages become + // The MSVC /FC option causes paths in diagnostics messages to become // absolute. Those within basedir need to be changed into relative paths. else if (std::size_t path_end = 0; ctx.config.compiler_type() == CompilerType::msvc @@ -1068,7 +1068,6 @@ rewrite_stdout_from_compiler(const Context& ctx, util::Bytes&& stdout_data) && (path_end = core::get_diagnostics_path_length(line)) != 0) { std::string_view abs_path = line.substr(0, path_end); fs::path rel_path = core::make_relative_path(ctx, abs_path); - // Use replace_all, e.g. https://github.com/mstorsjo/msvc-wine/pull/98. std::string line_with_rel = util::replace_all(line, abs_path, util::pstr(rel_path).str()); new_stdout_data.insert(