Use system includes for libneuralnetworks_common headers
Command used to generate the bulk this change:
for file in $(ls -1 common/include/*.h); do
header="${file#"common/include/"}"
perl -pi -e "s@^#include \"$header\"@#include <$header>@g" **/*.{h,cpp}
done
git checkout common/
clang-format -i **/*.{h,cpp}
Also added these missing headers:
driver/cache/nnCache/nnCache_test.cpp:122: Add #include <algorithm> for min [build/include_what_you_use] [4]
runtime/BurstBuilder.cpp:45: Add #include <memory> for shared_ptr<> [build/include_what_you_use] [4]
runtime/BurstBuilder.cpp:30: Add #include <utility> for move [build/include_what_you_use] [4]
runtime/BurstBuilder.cpp:29: Add #include <vector> for vector<> [build/include_what_you_use] [4]
runtime/include/NeuralNetworksWrapperExtensions.h:88: Add #include <utility> for move [build/include_what_you_use] [4]
runtime/include/NeuralNetworksWrapperExtensions.h:87: Add #include <vector> for vector<> [build/include_what_you_use] [4]
Also reordered conditionally included headers to go at the end.
Bug: N/A
Test: m
Change-Id: Ice4cb0682de1bf2fcf07c377ef9e0deec6a2de7e
Merged-In: Ice4cb0682de1bf2fcf07c377ef9e0deec6a2de7e
(cherry picked from commit 19582f204a2669716dd0f1bdf44e94b667923925)
diff --git a/common/operations/Reduce.cpp b/common/operations/Reduce.cpp
index a73b652..794992c 100644
--- a/common/operations/Reduce.cpp
+++ b/common/operations/Reduce.cpp
@@ -16,10 +16,6 @@
#define LOG_TAG "Operations"
-#ifndef NN_COMPATIBILITY_LIBRARY_BUILD
-#include <tensorflow/lite/kernels/internal/reference/reference_ops.h>
-#endif // NN_COMPATIBILITY_LIBRARY_BUILD
-
#include <algorithm>
#include <limits>
#include <vector>
@@ -28,6 +24,10 @@
#include "OperationsUtils.h"
#include "Tracing.h"
+#ifndef NN_COMPATIBILITY_LIBRARY_BUILD
+#include <tensorflow/lite/kernels/internal/reference/reference_ops.h>
+#endif // NN_COMPATIBILITY_LIBRARY_BUILD
+
namespace android {
namespace nn {
namespace reduce {