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/libutil/types.hh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'third_party/nix/src/libutil/types.hh') diff --git a/third_party/nix/src/libutil/types.hh b/third_party/nix/src/libutil/types.hh index dae81fb94b6a..b8e7a3c9d5c7 100644 --- a/third_party/nix/src/libutil/types.hh +++ b/third_party/nix/src/libutil/types.hh @@ -107,12 +107,12 @@ class SysError : public Error { }; typedef std::list Strings; -typedef std::set StringSet; -typedef std::map StringMap; +using StringSet = std::set; +using StringMap = std::map; /* Paths are just strings. */ -typedef std::string Path; -typedef std::list Paths; -typedef std::set PathSet; +using Path = std::string; +using Paths = std::list; +using PathSet = std::set; } // namespace nix -- cgit 1.4.1