forked from lix-project/lix
Add some more SourcePath docs
This commit is contained in:
parent
ad57cff9bc
commit
5d3f6dbf59
1 changed files with 8 additions and 0 deletions
|
@ -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}; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue