From 58e3104796480c66a303a4266e6459c7b21295ea Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 18 Jun 2018 14:07:18 +0200 Subject: Updates from clangformat Signed-off-by: Clifford Wolf --- ice40/chip.h | 3 +-- ice40/pack.cc | 4 ++-- ice40/pcf.cc | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) (limited to 'ice40') diff --git a/ice40/chip.h b/ice40/chip.h index 8ba42290..3b4f19d1 100644 --- a/ice40/chip.h +++ b/ice40/chip.h @@ -747,8 +747,7 @@ NEXTPNR_NAMESPACE_END namespace std { template <> struct hash { - std::size_t operator()(NEXTPNR_NAMESPACE_PREFIX BelType bt) const - noexcept + std::size_t operator()(NEXTPNR_NAMESPACE_PREFIX BelType bt) const noexcept { return std::hash()(int(bt)); } diff --git a/ice40/pack.cc b/ice40/pack.cc index b8e2cb8f..7cdfc643 100644 --- a/ice40/pack.cc +++ b/ice40/pack.cc @@ -39,8 +39,8 @@ static void pack_lut_lutffs(Context *ctx) log_info("cell '%s' is of type '%s'\n", ci->name.c_str(), ci->type.c_str()); if (is_lut(ci)) { - CellInfo *packed = create_ice_cell(ctx, "ICESTORM_LC", - ci->name.str() + "_LC"); + CellInfo *packed = + create_ice_cell(ctx, "ICESTORM_LC", ci->name.str() + "_LC"); std::copy(ci->attrs.begin(), ci->attrs.end(), std::inserter(packed->attrs, packed->attrs.begin())); packed_cells.insert(ci->name); diff --git a/ice40/pcf.cc b/ice40/pcf.cc index 6fc90118..756aba4a 100644 --- a/ice40/pcf.cc +++ b/ice40/pcf.cc @@ -58,8 +58,7 @@ void apply_pcf(Context *ctx, std::istream &in) if (pin_bel == BelId()) log_error("package does not have a pin named %s\n", pin.c_str()); - fnd_cell->second->attrs["BEL"] = - ctx->getBelName(pin_bel).str(); + fnd_cell->second->attrs["BEL"] = ctx->getBelName(pin_bel).str(); log_info("constrained '%s' to bel '%s'\n", cell.c_str(), fnd_cell->second->attrs["BEL"].c_str()); } -- cgit v1.2.3