]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix comments to match reality
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 28 Jul 2020 12:01:53 +0000 (14:01 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 28 Jul 2020 12:12:36 +0000 (14:12 +0200)
src/ccache.cpp
src/manifest.cpp
src/stats.cpp

index 3f7ad4e58051a8bbf6df8e6109aa7c62643a0e34..139db36adcd1cd86e5a781fa45f0b495b6b3c28d 100644 (file)
@@ -1378,7 +1378,7 @@ option_should_be_ignored(const std::string& arg,
 
 // Update a hash sum with information specific to the direct and preprocessor
 // modes and calculate the result name. Returns the result name on success,
-// otherwise NULL. Caller frees.
+// otherwise NULL.
 static optional<Digest>
 calculate_result_name(Context& ctx,
                       const Args& args,
index 68f24d0b47356e06c97cf2ef1799eaa30147fb66..04decc6ed60656dfe3baf688d794e33b40cfabf8 100644 (file)
@@ -473,8 +473,7 @@ verify_result(const Context& ctx,
   return true;
 }
 
-// Try to get the result name from a manifest file. Caller frees. Returns NULL
-// on failure.
+// Try to get the result name from a manifest file. Returns nullopt on failure.
 optional<Digest>
 manifest_get(const Context& ctx, const std::string& path)
 {
index b4ee6c40c56f8ab7ce2e882c8ba61d4f0468f36c..dabc39ac2e83f3a7ba97e0009bca120285d37784 100644 (file)
@@ -38,8 +38,8 @@
 #define FLAG_ALWAYS 2 // always show, even if zero
 #define FLAG_NEVER 4  // never show
 
-// Returns a formatted version of a statistics value, or NULL if the statistics
-// line shouldn't be printed. Caller frees.
+// Returns a formatted version of a statistics value, or the empty string if the
+// statistics line shouldn't be printed.
 using format_fn = std::string (*)(uint64_t value);
 
 static std::string format_size_times_1024(uint64_t size);