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
32
third_party/nix/src/libmain/common-args.hh
vendored
32
third_party/nix/src/libmain/common-args.hh
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue