Skip to content

Commit

Permalink
add missing includes for a hermetic build
Browse files Browse the repository at this point in the history
Hermetic builds look for all necessary includes for the features used
in the header files. This commit adds the missing includes.
  • Loading branch information
cc10512 committed Oct 15, 2024
1 parent df538a5 commit e0bf403
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions include/slang/diagnostics/DiagArgFormatter.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#pragma once

#include <any>
#include <string>

#include "slang/slang_export.h"

namespace slang {

Expand Down
1 change: 1 addition & 0 deletions include/slang/util/BumpAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <cstring>
#include <new>
#include <span>
#include <type_traits>

#include "slang/util/Util.h"

Expand Down
4 changes: 4 additions & 0 deletions include/slang/util/CopyPtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
//------------------------------------------------------------------------------
#pragma once

#include <cstddef>
#include <ostream>
#include <utility>

namespace slang {

/// A smart pointer that allocates its pointee on the heap and provides value copy
Expand Down
2 changes: 2 additions & 0 deletions include/slang/util/Function.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
//------------------------------------------------------------------------------
#pragma once

#include <cstddef>
#include <cstdint>
#include <type_traits>

namespace slang {

Expand Down
1 change: 1 addition & 0 deletions include/slang/util/Random.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//------------------------------------------------------------------------------
#pragma once

#include <algorithm>
#include <array>
#include <functional>
#include <random>
Expand Down
1 change: 1 addition & 0 deletions include/slang/util/SmallVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#pragma once

#include <algorithm>
#include <iterator>
#include <limits>
#include <memory>
#include <span>
Expand Down
2 changes: 1 addition & 1 deletion tools/netlist/include/DirectedGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class Node {
return *this;
}
Node<NodeType, EdgeType>& operator=(Node<NodeType, EdgeType>&& node) noexcept {
edges = std::move(node.Edges);
edges = std::move(node.edges);
return *this;
}

Expand Down

0 comments on commit e0bf403

Please sign in to comment.