Commit c579e245 authored by Robert Kimball's avatar Robert Kimball Committed by Scott Cyphers

validate includes (#1767)

* update test to verify all header files are complete, meaning they include what they use.

* disable
parent 6f30b32b
...@@ -16,6 +16,9 @@ ...@@ -16,6 +16,9 @@
#pragma once #pragma once
#include <cstddef>
#include <cstring>
namespace ngraph namespace ngraph
{ {
namespace runtime namespace runtime
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "ngraph/axis_set.hpp" #include "ngraph/axis_set.hpp"
#include "ngraph/runtime/cpu/kernel/eigen_thread_pool.hpp" #include "ngraph/runtime/cpu/kernel/eigen_thread_pool.hpp"
#include "ngraph/shape.hpp"
namespace ngraph namespace ngraph
{ {
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#pragma once #pragma once
#include <cinttypes>
#include <list> #include <list>
namespace ngraph namespace ngraph
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#pragma once #pragma once
#include <cstddef> #include <cstddef>
#include <string>
namespace ngraph namespace ngraph
{ {
......
...@@ -29,6 +29,7 @@ set(SRC ...@@ -29,6 +29,7 @@ set(SRC
element_type.cpp element_type.cpp
file_util.cpp file_util.cpp
graph_partition.cpp graph_partition.cpp
includes.cpp
inliner.cpp inliner.cpp
input_output_assign.cpp input_output_assign.cpp
main.cpp main.cpp
...@@ -49,6 +50,9 @@ set(SRC ...@@ -49,6 +50,9 @@ set(SRC
zero_dim_tensor_elimination.cpp zero_dim_tensor_elimination.cpp
) )
set_source_files_properties(includes.cpp PROPERTIES COMPILE_DEFINITIONS
NGRAPH_INCLUDES="${PROJECT_SOURCE_DIR}/src/ngraph")
if (NGRAPH_ONNX_IMPORT_ENABLE) if (NGRAPH_ONNX_IMPORT_ENABLE)
list(APPEND SRC onnx_import.cpp) list(APPEND SRC onnx_import.cpp)
if (NGRAPH_ONNXIFI_ENABLE) if (NGRAPH_ONNXIFI_ENABLE)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment