]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Reflow comments to fit the available width
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 1 Dec 2019 20:18:51 +0000 (21:18 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 1 Dec 2019 20:18:51 +0000 (21:18 +0100)
src/Util.hpp

index 4ba3b3ef07cdc77777a8f81396800f6a9ada54ce..03bf9ac66f93505cd5007ed4cd11e29c6a4b2955 100644 (file)
@@ -41,22 +41,22 @@ typedef std::function<void(const std::string& /*dir_path*/,
 // Get base name of path.
 nonstd::string_view base_name(nonstd::string_view path);
 
-// Return the file extension (including the dot) as a view into `path`.
-// If `path` has no file extension, an empty string_view is returned.
+// Return the file extension (including the dot) as a view into `path`. If
+// `path` has no file extension, an empty string_view is returned.
 nonstd::string_view get_extension(nonstd::string_view path);
 
-// Return a view into `path` containing the given path without the
-// filename extension as determined by `get_extension()`.
+// Return a view into `path` containing the given path without the filename
+// extension as determined by `get_extension()`.
 nonstd::string_view remove_extension(nonstd::string_view path);
 
-// Remove the extension via `remove_extension()`, then add `new_ext`.
-// `new_ext` should start with a dot, no extra dot is inserted.
+// Remove the extension via `remove_extension()`, then add `new_ext`. `new_ext`
+// should start with a dot, no extra dot is inserted.
 std::string change_extension(nonstd::string_view path,
                              nonstd::string_view new_ext);
 
-// Return a shortened view into the base name of `path`. This view starts at
-// the beginning of the base name and ends at either the position the first dot,
-// or `max_length`, or the length of the base name, whichever is the shortest.
+// Return a shortened view into the base name of `path`. This view starts at the
+// beginning of the base name and ends at either the position the first dot, or
+// `max_length`, or the length of the base name, whichever is the shortest.
 nonstd::string_view get_truncated_base_name(nonstd::string_view path,
                                             size_t max_length);
 
@@ -148,8 +148,8 @@ void get_level_1_files(const std::string& dir,
 //
 // Throws if cache dir levels is greater than the length of `name`.
 //
-// E.g. "ABCDEF" and ".foo" will become "/ccache/A/B/CDEF.foo" when
-// the cache directory is "/ccache" and cache dir levels is 2.
+// E.g. "ABCDEF" and ".foo" will become "/ccache/A/B/CDEF.foo" when the cache
+// directory is "/ccache" and cache dir levels is 2.
 std::string get_path_in_cache(nonstd::string_view name,
                               nonstd::string_view suffix);