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:
Vincent Ambo 2020-05-17 16:31:57 +01:00
parent 65a1aae98c
commit 0f2cf531f7
175 changed files with 32126 additions and 34689 deletions

View file

@ -4,30 +4,24 @@
namespace nix {
struct MixCommonArgs : virtual Args
{
string programName;
MixCommonArgs(const string & programName);
struct MixCommonArgs : virtual Args {
string programName;
MixCommonArgs(const string& programName);
};
struct MixDryRun : virtual Args
{
bool dryRun = false;
struct MixDryRun : virtual Args {
bool dryRun = false;
MixDryRun()
{
mkFlag(0, "dry-run", "show what this command would do without doing it", &dryRun);
}
MixDryRun() {
mkFlag(0, "dry-run", "show what this command would do without doing it",
&dryRun);
}
};
struct MixJSON : virtual Args
{
bool json = false;
struct MixJSON : virtual Args {
bool json = false;
MixJSON()
{
mkFlag(0, "json", "produce JSON output", &json);
}
MixJSON() { mkFlag(0, "json", "produce JSON output", &json); }
};
}
} // namespace nix