Clang: Cleanup IPC code

Change-Id: I29571801b4093337e2c7cc1eec51cfcd07b3bdc5
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Marco Bubke
2017-06-12 20:03:34 +02:00
parent f97875a870
commit 3fb25b28e3
106 changed files with 1207 additions and 1211 deletions

View File

@@ -27,11 +27,8 @@
#include <array>
#include <cstdint>
#pragma push_macro("constexpr")
#ifndef __cpp_constexpr
#define constexpr
#endif
#include <ostream>
#include <iterator>
namespace Utils {
@@ -113,10 +110,17 @@ public:
std::array<T, MaxSize>::fill(T{});
}
friend std::ostream &operator<<(std::ostream &out, SizedArray array)
{
out << "[";
copy(array.cbegin(), array.cend(), std::ostream_iterator<T>(out, ", "));
out << "]";
return out;
}
private:
std::uint8_t m_size = 0;
};
} // namespace Utils
#pragma pop_macro("constexpr")