make format deltas

Signed-off-by: John McMaster <[email protected]>
This commit is contained in:
John McMaster
2018-12-10 17:20:44 -08:00
parent 7cfdc81767
commit 66f2816146
5 changed files with 8 additions and 12 deletions
@@ -60,7 +60,7 @@ ConfigurationBus::ConfigurationBus(T first, T last) {
std::sort(first, last,
[](const FrameAddress& lhs, const FrameAddress& rhs) {
return lhs.column() < rhs.column();
});
});
for (auto col_first = first; col_first != last;) {
auto col_last = std::upper_bound(
@@ -61,7 +61,7 @@ GlobalClockRegion::GlobalClockRegion(T first, T last) {
std::sort(first, last,
[](const FrameAddress& lhs, const FrameAddress& rhs) {
return lhs.row() < rhs.row();
});
});
for (auto row_first = first; row_first != last;) {
auto row_last = std::upper_bound(
+1 -1
View File
@@ -58,7 +58,7 @@ Row::Row(T first, T last) {
std::sort(first, last,
[](const FrameAddress& lhs, const FrameAddress& rhs) {
return lhs.block_type() < rhs.block_type();
});
});
for (auto bus_first = first; bus_first != last;) {
auto bus_last = std::upper_bound(
+4 -8
View File
@@ -43,14 +43,12 @@ TEST(ConfigurationTest, ConstructFromPacketsWithSingleFrame) {
{
static_cast<unsigned int>(0x1),
xc7series::ConfigurationPacket::Opcode::Write,
xc7series::ConfigurationRegister::CMD,
absl::MakeSpan(cmd),
xc7series::ConfigurationRegister::CMD, absl::MakeSpan(cmd),
},
{
static_cast<unsigned int>(0x1),
xc7series::ConfigurationPacket::Opcode::Write,
xc7series::ConfigurationRegister::FDRI,
absl::MakeSpan(frame),
xc7series::ConfigurationRegister::FDRI, absl::MakeSpan(frame),
},
};
@@ -96,14 +94,12 @@ TEST(ConfigurationTest, ConstructFromPacketsWithAutoincrement) {
{
static_cast<unsigned int>(0x1),
xc7series::ConfigurationPacket::Opcode::Write,
xc7series::ConfigurationRegister::CMD,
absl::MakeSpan(cmd),
xc7series::ConfigurationRegister::CMD, absl::MakeSpan(cmd),
},
{
static_cast<unsigned int>(0x1),
xc7series::ConfigurationPacket::Opcode::Write,
xc7series::ConfigurationRegister::FDRI,
absl::MakeSpan(frame),
xc7series::ConfigurationRegister::FDRI, absl::MakeSpan(frame),
},
};