mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +02:00
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).
15 lines
236 B
C++
15 lines
236 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include "types.hh"
|
|
#include "source-path.hh"
|
|
|
|
namespace nix {
|
|
|
|
/**
|
|
* Helper function to generate args that invoke $EDITOR on
|
|
* filename:lineno.
|
|
*/
|
|
Strings editorFor(const SourcePath & file, uint32_t line);
|
|
|
|
}
|