From 5d3f6dbf59554fb4701cb678a4ef29918db97767 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 24 Apr 2023 13:37:51 +0200 Subject: Add some more SourcePath docs --- src/libfetchers/input-accessor.hh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/libfetchers') diff --git a/src/libfetchers/input-accessor.hh b/src/libfetchers/input-accessor.hh index 1cb233c51..5a2f17f62 100644 --- a/src/libfetchers/input-accessor.hh +++ b/src/libfetchers/input-accessor.hh @@ -125,9 +125,17 @@ struct SourcePath std::string to_string() const { return path.abs(); } + /** + * Append a `CanonPath` to this path. + */ SourcePath operator + (const CanonPath & x) const { return {path + x}; } + /** + * Append a single component `c` to this path. `c` must not + * contain a slash. A slash is implicitly added between this path + * and `c`. + */ SourcePath operator + (std::string_view c) const { return {path + c}; } -- cgit v1.2.3