mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-07 18:57:19 +02:00
![Rebecca Turner](/assets/img/avatar_default.png)
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);
|
|
|
|
}
|