Skip to content

Commit

Permalink
Make headers self-contained
Browse files Browse the repository at this point in the history
It seems like most of the headers in OpenVINO are self-contained, but
some are not. It will be nice to make every headers self-contained.
This commit fixes some headers found not to be self-contained, but this
is not a complete list. Just some headers found during my local
compilation.
  • Loading branch information
oToToT committed Feb 21, 2025
1 parent 285a73a commit ffec4b9
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/util/include/openvino/util/const_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#pragma once

#include <cstddef>
#include <stdexcept>

namespace ov {
Expand Down
1 change: 1 addition & 0 deletions src/common/util/src/file_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <exception>
#include <fstream>
#include <sstream>

Expand Down
2 changes: 2 additions & 0 deletions src/core/include/openvino/core/preprocess/padding_mode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#pragma once

#include "openvino/op/util/attr_types.hpp"

namespace ov {
namespace preprocess {

Expand Down
3 changes: 3 additions & 0 deletions src/core/shape_inference/include/sequence_generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

#pragma once

#include <cstdint>
#include <type_traits>

namespace ov {
/** \brief Enumerate directions */
enum Direction : uint8_t { FORWARD, BACKWARD };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
#pragma once

#include <array>
#include <cstdint>
#include <limits>
#include <optional>
#include <type_traits>
#include <vector>

#include "openvino/op/strided_slice.hpp"
#include "slice_shape_inference_utils.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/core/src/op/constant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iterator>
#include <sstream>

#include "compare.hpp"
Expand Down
2 changes: 2 additions & 0 deletions src/inference/src/dev/iplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include "openvino/runtime/iplugin.hpp"

#include <iterator>

#include "core_impl.hpp"
#include "openvino/op/convert.hpp"
#include "openvino/op/util/op_types.hpp"
Expand Down
3 changes: 3 additions & 0 deletions src/plugins/intel_cpu/src/shape_inference/shape_inference.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

#pragma once

#include <cstdint>
#include <optional>
#include <memory>
#include <vector>

#include "openvino/core/core.hpp"
#include "openvino/core/node.hpp"
Expand Down

0 comments on commit ffec4b9

Please sign in to comment.