style(3p/nix): Reformat all includes to match new style

This commit is contained in:
Vincent Ambo 2020-05-19 15:54:39 +01:00
parent b508f5b91a
commit c758de9d22
119 changed files with 298 additions and 106 deletions

View file

@ -1,5 +1,7 @@
#include "affinity.hh"
#include <glog/logging.h>
#include "types.hh"
#include "util.hh"

View file

@ -1,14 +1,17 @@
#include "archive.hh"
#include <algorithm>
#include <cerrno>
#include <map>
#include <vector>
#include <dirent.h>
#include <fcntl.h>
#include <strings.h> // for strcasecmp
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <algorithm>
#include <cerrno>
#include <map>
#include <vector>
#include "config.hh"
#include "glog/logging.h"
#include "util.hh"

View file

@ -1,4 +1,5 @@
#include "args.hh"
#include "hash.hh"
namespace nix {

View file

@ -3,6 +3,7 @@
#include <iostream>
#include <map>
#include <memory>
#include "util.hh"
namespace nix {

View file

@ -1,11 +1,14 @@
#include "compression.hh"
#include <cstdio>
#include <cstring>
#include <iostream>
#include <brotli/decode.h>
#include <brotli/encode.h>
#include <bzlib.h>
#include <lzma.h>
#include <cstdio>
#include <cstring>
#include <iostream>
#include "finally.hh"
#include "glog/logging.h"
#include "util.hh"

View file

@ -1,6 +1,7 @@
#pragma once
#include <string>
#include "ref.hh"
#include "serialise.hh"
#include "types.hh"

View file

@ -1,6 +1,8 @@
#define GOOGLE_STRIP_LOG 0
#include "config.hh"
#include <glog/logging.h>
#include "args.hh"
#include "json.hh"
// #include <glog/log_severity.h>

View file

@ -1,5 +1,6 @@
#include <map>
#include <set>
#include "types.hh"
#pragma once

View file

@ -1,11 +1,14 @@
#include "hash.hh"
#include <cstring>
#include <iostream>
#include <fcntl.h>
#include <openssl/md5.h>
#include <openssl/sha.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <cstring>
#include <iostream>
#include "archive.hh"
#include "istringstream_nocopy.hh"
#include "util.hh"

View file

@ -1,4 +1,5 @@
#include "json.hh"
#include <cstring>
#include <iomanip>

View file

@ -1,12 +1,13 @@
#pragma once
#include <atomic>
#include <cstdlib>
#include <thread>
#include <poll.h>
#include <signal.h>
#include <sys/types.h>
#include <unistd.h>
#include <atomic>
#include <cstdlib>
#include <thread>
namespace nix {

View file

@ -5,6 +5,7 @@
#include <limits>
#include <list>
#include <memory>
#include "ref.hh"
#include "sync.hh"

View file

@ -1,8 +1,10 @@
#include "serialise.hh"
#include <boost/coroutine2/coroutine.hpp>
#include <cerrno>
#include <cstring>
#include <memory>
#include "glog/logging.h"
#include "util.hh"

View file

@ -1,6 +1,7 @@
#pragma once
#include <memory>
#include "types.hh"
#include "util.hh"

View file

@ -1,4 +1,5 @@
#include "thread-pool.hh"
#include "affinity.hh"
#include "glog/logging.h"

View file

@ -5,6 +5,7 @@
#include <map>
#include <queue>
#include <thread>
#include "sync.hh"
#include "util.hh"

View file

@ -6,6 +6,7 @@
#include <memory>
#include <set>
#include <string>
#include "ref.hh"
/* Before 4.7, gcc's std::exception uses empty throw() specifiers for

View file

@ -1,12 +1,5 @@
#include "util.hh"
#include <fcntl.h>
#include <grp.h>
#include <limits.h>
#include <pwd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <cctype>
#include <cerrno>
#include <cstdio>
@ -16,6 +9,16 @@
#include <iostream>
#include <sstream>
#include <thread>
#include <fcntl.h>
#include <grp.h>
#include <limits.h>
#include <pwd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include "affinity.hh"
#include "finally.hh"
#include "glog/logging.h"

View file

@ -1,10 +1,5 @@
#pragma once
#include <dirent.h>
#include <signal.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <cstdio>
#include <functional>
#include <future>
@ -12,6 +7,13 @@
#include <map>
#include <optional>
#include <sstream>
#include <dirent.h>
#include <signal.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "types.hh"
#ifndef HAVE_STRUCT_DIRENT_D_TYPE

View file

@ -1,4 +1,5 @@
#include "xml-writer.hh"
#include <assert.h>
namespace nix {