1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 21:01:16 +02:00

fix missing includes in various headers

This commit is contained in:
Jörg Thalheim 2024-12-16 11:49:43 +01:00
parent d8117c8c0d
commit b338140931
8 changed files with 17 additions and 0 deletions

View file

@ -1,5 +1,13 @@
#pragma once #pragma once
#include <cstddef>
// inluding the generated headers twice leads to errors
#ifndef BISON_HEADER
#include "lexer-tab.hh"
#include "parser-tab.hh"
#endif
namespace nix::lexer::internal { namespace nix::lexer::internal {
void initLoc(YYLTYPE * loc); void initLoc(YYLTYPE * loc);

View file

@ -5,6 +5,7 @@
*/ */
#include <limits> #include <limits>
#include <stddef.h>
namespace nix { namespace nix {

View file

@ -1,6 +1,8 @@
#pragma once #pragma once
///@file ///@file
#include <string_view>
namespace nix { namespace nix {

View file

@ -1,6 +1,7 @@
#pragma once #pragma once
///@file ///@file
#include <cassert>
#include <future> #include <future>
#include <functional> #include <functional>

View file

@ -13,6 +13,7 @@
*/ */
#include "config.hh" #include "config.hh"
#include "args.hh"
namespace nix { namespace nix {

View file

@ -2,6 +2,7 @@
///@file ///@file
#include <string_view> #include <string_view>
#include <string>
namespace nix::regex { namespace nix::regex {

View file

@ -14,6 +14,7 @@
#include "error.hh" #include "error.hh"
#include "logging.hh" #include "logging.hh"
#include "ansicolor.hh" #include "ansicolor.hh"
#include "signals.hh"
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>

View file

@ -2,6 +2,8 @@
///@file ///@file
#include <filesystem> #include <filesystem>
#include <optional>
#include <string_view>
namespace nix { namespace nix {