style(3p/nix): Reformat project in Google C++ style
Reformatted with:
fd . -e hh -e cc | xargs clang-format -i
This commit is contained in:
parent
65a1aae98c
commit
0f2cf531f7
175 changed files with 32126 additions and 34689 deletions
19
third_party/nix/tests/plugins/plugintest.cc
vendored
19
third_party/nix/tests/plugins/plugintest.cc
vendored
|
|
@ -3,22 +3,21 @@
|
|||
|
||||
using namespace nix;
|
||||
|
||||
struct MySettings : Config
|
||||
{
|
||||
Setting<bool> settingSet{this, false, "setting-set",
|
||||
"Whether the plugin-defined setting was set"};
|
||||
struct MySettings : Config {
|
||||
Setting<bool> 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue