From e0bf403bcc1b21aadf3329d8005bddfd2c86a2f5 Mon Sep 17 00:00:00 2001 From: Calin Cascaval Date: Tue, 15 Oct 2024 15:14:51 +1300 Subject: [PATCH] add missing includes for a hermetic build Hermetic builds look for all necessary includes for the features used in the header files. This commit adds the missing includes. --- include/slang/diagnostics/DiagArgFormatter.h | 3 +++ include/slang/util/BumpAllocator.h | 1 + include/slang/util/CopyPtr.h | 4 ++++ include/slang/util/Function.h | 2 ++ include/slang/util/Random.h | 1 + include/slang/util/SmallVector.h | 1 + tools/netlist/include/DirectedGraph.h | 2 +- 7 files changed, 13 insertions(+), 1 deletion(-) diff --git a/include/slang/diagnostics/DiagArgFormatter.h b/include/slang/diagnostics/DiagArgFormatter.h index 5c84c1385..aa87f543f 100644 --- a/include/slang/diagnostics/DiagArgFormatter.h +++ b/include/slang/diagnostics/DiagArgFormatter.h @@ -8,6 +8,9 @@ #pragma once #include +#include + +#include "slang/slang_export.h" namespace slang { diff --git a/include/slang/util/BumpAllocator.h b/include/slang/util/BumpAllocator.h index 75d8ac729..c6a1426bb 100644 --- a/include/slang/util/BumpAllocator.h +++ b/include/slang/util/BumpAllocator.h @@ -10,6 +10,7 @@ #include #include #include +#include #include "slang/util/Util.h" diff --git a/include/slang/util/CopyPtr.h b/include/slang/util/CopyPtr.h index 0dab7512e..f7a0f4989 100644 --- a/include/slang/util/CopyPtr.h +++ b/include/slang/util/CopyPtr.h @@ -7,6 +7,10 @@ //------------------------------------------------------------------------------ #pragma once +#include +#include +#include + namespace slang { /// A smart pointer that allocates its pointee on the heap and provides value copy diff --git a/include/slang/util/Function.h b/include/slang/util/Function.h index d740c4406..4b47337d9 100644 --- a/include/slang/util/Function.h +++ b/include/slang/util/Function.h @@ -7,7 +7,9 @@ //------------------------------------------------------------------------------ #pragma once +#include #include +#include namespace slang { diff --git a/include/slang/util/Random.h b/include/slang/util/Random.h index 1bb019755..1f9015f14 100644 --- a/include/slang/util/Random.h +++ b/include/slang/util/Random.h @@ -7,6 +7,7 @@ //------------------------------------------------------------------------------ #pragma once +#include #include #include #include diff --git a/include/slang/util/SmallVector.h b/include/slang/util/SmallVector.h index 007db63a7..b1c6e9bf8 100644 --- a/include/slang/util/SmallVector.h +++ b/include/slang/util/SmallVector.h @@ -8,6 +8,7 @@ #pragma once #include +#include #include #include #include diff --git a/tools/netlist/include/DirectedGraph.h b/tools/netlist/include/DirectedGraph.h index 54acd850d..eea7ec307 100644 --- a/tools/netlist/include/DirectedGraph.h +++ b/tools/netlist/include/DirectedGraph.h @@ -79,7 +79,7 @@ class Node { return *this; } Node& operator=(Node&& node) noexcept { - edges = std::move(node.Edges); + edges = std::move(node.edges); return *this; }