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

style(libstore/find-cycles): modernize type aliases (typedef → using)

This commit is contained in:
Bernardo Meurer Costa 2025-10-11 20:15:31 +00:00
parent ce70994454
commit 8aa1564070
No known key found for this signature in database

View file

@ -18,12 +18,12 @@ namespace nix {
* Example: {"/nix/store/abc-foo/file1", "/nix/store/def-bar/file2"} * Example: {"/nix/store/abc-foo/file1", "/nix/store/def-bar/file2"}
* represents a reference from file1 to file2. * represents a reference from file1 to file2.
*/ */
typedef std::deque<std::string> StoreCycleEdge; using StoreCycleEdge = std::deque<std::string>;
/** /**
* A collection of cycle edges found during scanning. * A collection of cycle edges found during scanning.
*/ */
typedef std::vector<StoreCycleEdge> StoreCycleEdgeVec; using StoreCycleEdgeVec = std::vector<StoreCycleEdge>;
/** /**
* A sink that extends RefScanSink to track file paths where references are found. * A sink that extends RefScanSink to track file paths where references are found.