4feb7d9f71
Also move `SourcePath` into `libutil`. These changes allow `error.hh` and `error.cc` to access source path and position information, which we can use to produce better error messages (for example, we could consider omitting filenames when two or more consecutive stack frames originate from the same file).
21 lines
340 B
C++
21 lines
340 B
C++
#pragma once
|
|
|
|
#include "input-accessor.hh"
|
|
#include "source-path.hh"
|
|
|
|
namespace nix {
|
|
|
|
class StorePath;
|
|
class Store;
|
|
|
|
ref<InputAccessor> makeFSInputAccessor(
|
|
const CanonPath & root);
|
|
|
|
ref<InputAccessor> makeStorePathAccessor(
|
|
ref<Store> store,
|
|
const StorePath & storePath);
|
|
|
|
SourcePath getUnfilteredRootPath(CanonPath path);
|
|
|
|
}
|