fix(3p/nix): revert "apply all clang-tidy fixes"
This reverts commit ef54f5da9f.
Resolved conflicts:
third_party/nix/src/libexpr/eval.cc
third_party/nix/src/libstore/builtins/fetchurl.cc
third_party/nix/src/libstore/references.cc
third_party/nix/src/libutil/hash.cc
third_party/nix/src/nix-daemon/nix-daemon.cc
Change-Id: Ib9cf6e96a79a23bde3983579ced3f92e530cb011
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1547
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
This commit is contained in:
parent
cc3c45f739
commit
72fc2fd27e
64 changed files with 479 additions and 555 deletions
4
third_party/nix/src/libutil/args.cc
vendored
4
third_party/nix/src/libutil/args.cc
vendored
|
|
@ -27,12 +27,12 @@ void Args::parseCmdline(const Strings& _cmdline) {
|
|||
`-j3` -> `-j 3`). */
|
||||
if (!dashDash && arg.length() > 2 && arg[0] == '-' && arg[1] != '-' &&
|
||||
(isalpha(arg[1]) != 0)) {
|
||||
*pos = std::string("-") + arg[1];
|
||||
*pos = (std::string) "-" + arg[1];
|
||||
auto next = pos;
|
||||
++next;
|
||||
for (unsigned int j = 2; j < arg.length(); j++) {
|
||||
if (isalpha(arg[j]) != 0) {
|
||||
cmdline.insert(next, std::string("-") + arg[j]);
|
||||
cmdline.insert(next, (std::string) "-" + arg[j]);
|
||||
} else {
|
||||
cmdline.insert(next, std::string(arg, j));
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue