mirror of
https://github.com/NixOS/nix
synced 2025-07-06 17:31:47 +02:00
Cleanup
This commit is contained in:
parent
7f576f5dfe
commit
c257c82447
3 changed files with 17 additions and 6 deletions
|
@ -6,6 +6,7 @@
|
|||
#include <cassert>
|
||||
#include <iostream>
|
||||
#include <set>
|
||||
#include <vector>
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
@ -46,6 +47,11 @@ public:
|
|||
: path(std::move(path))
|
||||
{ }
|
||||
|
||||
/**
|
||||
* Construct a canon path from a vector of elements.
|
||||
*/
|
||||
CanonPath(const std::vector<std::string> & elems);
|
||||
|
||||
static CanonPath fromCwd(std::string_view path = ".");
|
||||
|
||||
static CanonPath root;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue