clang-format fixes

This commit is contained in:
Hamish Milne
2019-12-27 21:07:29 +00:00
committed by zhupengfei
parent d482fb359c
commit 7b846ffa98
117 changed files with 797 additions and 925 deletions

View File

@ -7,8 +7,8 @@
#include <optional>
#include <boost/icl/interval_set.hpp>
#include <boost/serialization/set.hpp>
#include "common/serialization/boost_discrete_interval.hpp"
#include "common/common_types.h"
#include "common/serialization/boost_discrete_interval.hpp"
namespace Kernel {
@ -66,13 +66,12 @@ struct MemoryRegionInfo {
private:
friend class boost::serialization::access;
template <class Archive>
void serialize(Archive& ar, const unsigned int file_version)
{
ar & base;
ar & size;
ar & used;
void serialize(Archive& ar, const unsigned int file_version) {
ar& base;
ar& size;
ar& used;
// This works because interval_set has exactly one member of type ImplSetT
ar & *(reinterpret_cast<IntervalSet::ImplSetT*>(&free_blocks));
ar&*(reinterpret_cast<IntervalSet::ImplSetT*>(&free_blocks));
}
};