1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-01 06:31:00 +01:00

Merge pull request #79 from DeterminateSystems/path-position-info

Include the source location when warning about inefficient double copies
This commit is contained in:
Graham Christensen 2025-06-02 18:51:49 +00:00 committed by GitHub
commit f8aabb0749
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 36 additions and 22 deletions

View file

@ -15,12 +15,12 @@ class PosIdx
private:
uint32_t id;
public:
explicit PosIdx(uint32_t id)
: id(id)
{
}
public:
PosIdx()
: id(0)
{
@ -45,6 +45,11 @@ public:
{
return std::hash<uint32_t>{}(id);
}
uint32_t get() const
{
return id;
}
};
inline PosIdx noPos = {};