From 0f2cf531f705d370321843e5ba9135b2ebdb5d19 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 17 May 2020 16:31:57 +0100 Subject: style(3p/nix): Reformat project in Google C++ style Reformatted with: fd . -e hh -e cc | xargs clang-format -i --- third_party/nix/tests/plugins/plugintest.cc | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'third_party/nix/tests/plugins') diff --git a/third_party/nix/tests/plugins/plugintest.cc b/third_party/nix/tests/plugins/plugintest.cc index c085d33295..5edd28bd09 100644 --- a/third_party/nix/tests/plugins/plugintest.cc +++ b/third_party/nix/tests/plugins/plugintest.cc @@ -3,22 +3,21 @@ using namespace nix; -struct MySettings : Config -{ - Setting settingSet{this, false, "setting-set", - "Whether the plugin-defined setting was set"}; +struct MySettings : Config { + Setting settingSet{this, false, "setting-set", + "Whether the plugin-defined setting was set"}; }; MySettings mySettings; static GlobalConfig::Register rs(&mySettings); -static void prim_anotherNull (EvalState & state, const Pos & pos, Value ** args, Value & v) -{ - if (mySettings.settingSet) - mkNull(v); - else - mkBool(v, false); +static void prim_anotherNull(EvalState& state, const Pos& pos, Value** args, + Value& v) { + if (mySettings.settingSet) + mkNull(v); + else + mkBool(v, false); } static RegisterPrimOp rp("anotherNull", 0, prim_anotherNull); -- cgit 1.4.1