From 7edbe59c6c70cd085fc68c4317c3a71a40ac21e5 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 21 Aug 2020 03:23:04 +0100 Subject: style(tvix): Replace remaining typedefs with using statements Change (mostly) created via: fd . -e hh -e cc | parallel clang-tidy -p ~/builds/nix --fix "'--checks=-*,modernize-use-using'" Change-Id: I90ad6e64a5399f2005dfb9956074ec51c2c78cea Reviewed-on: https://cl.tvl.fyi/c/depot/+/1830 Tested-by: BuildkiteCI Reviewed-by: glittershark --- third_party/nix/src/libstore/local-store.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'third_party/nix/src/libstore/local-store.hh') diff --git a/third_party/nix/src/libstore/local-store.hh b/third_party/nix/src/libstore/local-store.hh index 669b878b6601..193050e538b2 100644 --- a/third_party/nix/src/libstore/local-store.hh +++ b/third_party/nix/src/libstore/local-store.hh @@ -172,7 +172,7 @@ class LocalStore : public LocalFSStore { private: typedef std::shared_ptr FDPtr; - typedef std::list FDs; + using FDs = std::list; void findTempRoots(FDs& fds, Roots& roots, bool censor); @@ -270,7 +270,7 @@ class LocalStore : public LocalFSStore { void checkDerivationOutputs(const Path& drvPath, const Derivation& drv); - typedef std::unordered_set InodeHash; + using InodeHash = std::unordered_set; InodeHash loadInodeHash(); static Strings readDirectoryIgnoringInodes(const Path& path, @@ -295,8 +295,8 @@ class LocalStore : public LocalFSStore { friend class SubstitutionGoal; }; -typedef std::pair Inode; -typedef std::set InodesSeen; +using Inode = std::pair; +using InodesSeen = std::set; /* "Fix", or canonicalise, the meta-data of the files in a store path after it has been built. In particular: -- cgit 1.4.1