1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-05 20:41:47 +02: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

@ -1,7 +1,6 @@
#pragma once
///@file
#include <iostream>
#include <functional>
#include <map>
#include <memory>
@ -11,6 +10,7 @@
#include "types.hh"
#include "experimental-features.hh"
#include "ref.hh"
namespace nix {

View file

@ -16,16 +16,12 @@
*/
#include "suggestions.hh"
#include "ref.hh"
#include "types.hh"
#include "fmt.hh"
#include <cstring>
#include <list>
#include <memory>
#include <map>
#include <optional>
#include <compare>
#include <sys/types.h>
#include <sys/stat.h>

View file

@ -2,8 +2,6 @@
///@file
#include "source-accessor.hh"
#include "fs-sink.hh"
#include "util.hh"
namespace nix {

View file

@ -1,7 +1,6 @@
#pragma once
///@file
#include "types.hh"
#include "serialise.hh"
#include "source-accessor.hh"
#include "file-system.hh"

View file

@ -1,7 +1,6 @@
#pragma once
///@file
#include "types.hh"
#include "error.hh"
#include "config.hh"

View file

@ -1,9 +1,7 @@
#pragma once
///@file
#include <compare>
#include <memory>
#include <exception>
#include <stdexcept>
namespace nix {

View file

@ -4,6 +4,7 @@
#include "canon-path.hh"
#include "hash.hh"
#include "ref.hh"
namespace nix {

View file

@ -1,7 +1,8 @@
#pragma once
///@file
#include "types.hh"
#include <limits>
#include <string>
namespace nix {
/**

View file

@ -1,12 +1,10 @@
#pragma once
///@file
#include "ref.hh"
#include <list>
#include <set>
#include <string>
#include <limits>
#include <map>
#include <variant>
#include <vector>