about summary refs log tree commit diff
path: root/third_party/nix/src/nix/show-config.cc
diff options
context:
space:
mode:
authorKane York <kanepyork@gmail.com>2020-11-28T00·31-0800
committerkanepyork <rikingcoding@gmail.com>2020-11-28T00·59+0000
commit516c046ed984ba74da9a36f21e356dae9e227ca3 (patch)
tree14daaf1ff037440025caa12ca60888b9cefbb3bb /third_party/nix/src/nix/show-config.cc
parent363dbeae95ce46be2b716506de90717998391a57 (diff)
refactor(tvix): remove all 'using namespace' from nix command r/1949
clang-tidy: google-build-using-namespace
Change-Id: I07ea10b03a6d9582c0508747698038f7106e8f63
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2181
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'third_party/nix/src/nix/show-config.cc')
-rw-r--r--third_party/nix/src/nix/show-config.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/nix/src/nix/show-config.cc b/third_party/nix/src/nix/show-config.cc
index 56448f9d606b..fd92e481e89a 100644
--- a/third_party/nix/src/nix/show-config.cc
+++ b/third_party/nix/src/nix/show-config.cc
@@ -4,8 +4,7 @@
 #include "libutil/json.hh"
 #include "nix/command.hh"
 
-using namespace nix;
-
+namespace nix {
 struct CmdShowConfig final : Command, MixJSON {
   CmdShowConfig() = default;
 
@@ -27,5 +26,6 @@ struct CmdShowConfig final : Command, MixJSON {
     }
   }
 };
+}  // namespace nix
 
-static RegisterCommand r1(make_ref<CmdShowConfig>());
+static nix::RegisterCommand r1(nix::make_ref<nix::CmdShowConfig>());