1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-17 16:02:43 +01:00

Solve unused header warnings reported by clangd

This commit is contained in:
Robert Hensing 2024-07-12 15:37:54 +02:00
parent f070d68c32
commit 8df041cbc6
46 changed files with 53 additions and 84 deletions

View file

@ -14,7 +14,6 @@
#include <map>
#include <variant>
namespace nix {
struct StoreDirConfig;

View file

@ -5,6 +5,7 @@
#include "outputs-spec.hh"
#include "comparator.hh"
#include "config.hh"
#include "ref.hh"
#include <variant>

View file

@ -1,13 +1,15 @@
#pragma once
///@file
#include "types.hh"
#include "hash.hh"
#include "config.hh"
#include <string>
#include <future>
#include "logging.hh"
#include "types.hh"
#include "ref.hh"
#include "config.hh"
#include "serialise.hh"
namespace nix {
struct FileTransferSettings : Config

View file

@ -1,8 +1,9 @@
#pragma once
///@file
#include "store-api.hh"
#include <unordered_set>
#include "store-api.hh"
namespace nix {

View file

@ -1,7 +1,7 @@
#pragma once
///@file
#include "types.hh"
#include "ref.hh"
#include "store-reference.hh"
namespace nix {

View file

@ -1,3 +1,5 @@
#include <unordered_set>
#include "derivations.hh"
#include "parsed-derivations.hh"
#include "globals.hh"

View file

@ -3,7 +3,6 @@
#include <map>
#include <stack>
#include <algorithm>
#include <nlohmann/json.hpp>

View file

@ -10,7 +10,6 @@
#include "serve-protocol.hh"
#include "length-prefixed-protocol-helper.hh"
#include "store-api.hh"
namespace nix {

View file

@ -18,14 +18,10 @@
#include <nlohmann/json_fwd.hpp>
#include <atomic>
#include <limits>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <memory>
#include <string>
#include <chrono>
#include <variant>
namespace nix {

View file

@ -1,12 +1,13 @@
#include <vector>
#include <pwd.h>
#include <grp.h>
#include "user-lock.hh"
#include "file-system.hh"
#include "globals.hh"
#include "pathlocks.hh"
#include "users.hh"
#include <pwd.h>
#include <grp.h>
namespace nix {
#if __linux__

View file

@ -1,10 +1,8 @@
#pragma once
///@file
#include "types.hh"
#include <optional>
#include <memory>
#include <vector>
#include <sys/types.h>
namespace nix {