style(3p/nix): Reformat all includes to match new style
This commit is contained in:
parent
b508f5b91a
commit
c758de9d22
119 changed files with 298 additions and 106 deletions
2
third_party/nix/src/libutil/affinity.cc
vendored
2
third_party/nix/src/libutil/affinity.cc
vendored
|
|
@ -1,5 +1,7 @@
|
|||
#include "affinity.hh"
|
||||
|
||||
#include <glog/logging.h>
|
||||
|
||||
#include "types.hh"
|
||||
#include "util.hh"
|
||||
|
||||
|
|
|
|||
11
third_party/nix/src/libutil/archive.cc
vendored
11
third_party/nix/src/libutil/archive.cc
vendored
|
|
@ -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"
|
||||
|
|
|
|||
1
third_party/nix/src/libutil/args.cc
vendored
1
third_party/nix/src/libutil/args.cc
vendored
|
|
@ -1,4 +1,5 @@
|
|||
#include "args.hh"
|
||||
|
||||
#include "hash.hh"
|
||||
|
||||
namespace nix {
|
||||
|
|
|
|||
1
third_party/nix/src/libutil/args.hh
vendored
1
third_party/nix/src/libutil/args.hh
vendored
|
|
@ -3,6 +3,7 @@
|
|||
#include <iostream>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
|
||||
#include "util.hh"
|
||||
|
||||
namespace nix {
|
||||
|
|
|
|||
9
third_party/nix/src/libutil/compression.cc
vendored
9
third_party/nix/src/libutil/compression.cc
vendored
|
|
@ -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"
|
||||
|
|
|
|||
1
third_party/nix/src/libutil/compression.hh
vendored
1
third_party/nix/src/libutil/compression.hh
vendored
|
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "ref.hh"
|
||||
#include "serialise.hh"
|
||||
#include "types.hh"
|
||||
|
|
|
|||
2
third_party/nix/src/libutil/config.cc
vendored
2
third_party/nix/src/libutil/config.cc
vendored
|
|
@ -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>
|
||||
|
|
|
|||
1
third_party/nix/src/libutil/config.hh
vendored
1
third_party/nix/src/libutil/config.hh
vendored
|
|
@ -1,5 +1,6 @@
|
|||
#include <map>
|
||||
#include <set>
|
||||
|
||||
#include "types.hh"
|
||||
|
||||
#pragma once
|
||||
|
|
|
|||
7
third_party/nix/src/libutil/hash.cc
vendored
7
third_party/nix/src/libutil/hash.cc
vendored
|
|
@ -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"
|
||||
|
|
|
|||
1
third_party/nix/src/libutil/json.cc
vendored
1
third_party/nix/src/libutil/json.cc
vendored
|
|
@ -1,4 +1,5 @@
|
|||
#include "json.hh"
|
||||
|
||||
#include <cstring>
|
||||
#include <iomanip>
|
||||
|
||||
|
|
|
|||
7
third_party/nix/src/libutil/monitor-fd.hh
vendored
7
third_party/nix/src/libutil/monitor-fd.hh
vendored
|
|
@ -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 {
|
||||
|
||||
|
|
|
|||
1
third_party/nix/src/libutil/pool.hh
vendored
1
third_party/nix/src/libutil/pool.hh
vendored
|
|
@ -5,6 +5,7 @@
|
|||
#include <limits>
|
||||
#include <list>
|
||||
#include <memory>
|
||||
|
||||
#include "ref.hh"
|
||||
#include "sync.hh"
|
||||
|
||||
|
|
|
|||
2
third_party/nix/src/libutil/serialise.cc
vendored
2
third_party/nix/src/libutil/serialise.cc
vendored
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
1
third_party/nix/src/libutil/serialise.hh
vendored
1
third_party/nix/src/libutil/serialise.hh
vendored
|
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "types.hh"
|
||||
#include "util.hh"
|
||||
|
||||
|
|
|
|||
1
third_party/nix/src/libutil/thread-pool.cc
vendored
1
third_party/nix/src/libutil/thread-pool.cc
vendored
|
|
@ -1,4 +1,5 @@
|
|||
#include "thread-pool.hh"
|
||||
|
||||
#include "affinity.hh"
|
||||
#include "glog/logging.h"
|
||||
|
||||
|
|
|
|||
1
third_party/nix/src/libutil/thread-pool.hh
vendored
1
third_party/nix/src/libutil/thread-pool.hh
vendored
|
|
@ -5,6 +5,7 @@
|
|||
#include <map>
|
||||
#include <queue>
|
||||
#include <thread>
|
||||
|
||||
#include "sync.hh"
|
||||
#include "util.hh"
|
||||
|
||||
|
|
|
|||
1
third_party/nix/src/libutil/types.hh
vendored
1
third_party/nix/src/libutil/types.hh
vendored
|
|
@ -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
|
||||
|
|
|
|||
19
third_party/nix/src/libutil/util.cc
vendored
19
third_party/nix/src/libutil/util.cc
vendored
|
|
@ -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"
|
||||
|
|
|
|||
12
third_party/nix/src/libutil/util.hh
vendored
12
third_party/nix/src/libutil/util.hh
vendored
|
|
@ -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
|
||||
|
|
|
|||
1
third_party/nix/src/libutil/xml-writer.cc
vendored
1
third_party/nix/src/libutil/xml-writer.cc
vendored
|
|
@ -1,4 +1,5 @@
|
|||
#include "xml-writer.hh"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
namespace nix {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue