clangformat

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2020-05-16 12:57:24 +01:00
parent 0fb7746c20
commit ddf546c2cc
2 changed files with 4 additions and 4 deletions

View File

@ -39,9 +39,8 @@ namespace std {
template <> struct hash<std::pair<NEXTPNR_NAMESPACE_PREFIX IdString, NEXTPNR_NAMESPACE_PREFIX IdString>> template <> struct hash<std::pair<NEXTPNR_NAMESPACE_PREFIX IdString, NEXTPNR_NAMESPACE_PREFIX IdString>>
{ {
std::size_t std::size_t operator()(
operator()(const std::pair<NEXTPNR_NAMESPACE_PREFIX IdString, NEXTPNR_NAMESPACE_PREFIX IdString> &idp) const const std::pair<NEXTPNR_NAMESPACE_PREFIX IdString, NEXTPNR_NAMESPACE_PREFIX IdString> &idp) const noexcept
noexcept
{ {
std::size_t seed = 0; std::size_t seed = 0;
boost::hash_combine(seed, hash<NEXTPNR_NAMESPACE_PREFIX IdString>()(idp.first)); boost::hash_combine(seed, hash<NEXTPNR_NAMESPACE_PREFIX IdString>()(idp.first));

View File

@ -932,7 +932,8 @@ void write_bitstream(Context *ctx, std::string base_config_file, std::string tex
else else
log_error("cannot set DRIVE on differential IO at location %s\n", pio.c_str()); log_error("cannot set DRIVE on differential IO at location %s\n", pio.c_str());
cc.tiles[pio_tile].add_enum(pio + ".DRIVE", str_or_default(ci->attrs, ctx->id("DRIVE"), "12")); cc.tiles[pio_tile].add_enum(pio + ".DRIVE", str_or_default(ci->attrs, ctx->id("DRIVE"), "12"));
cc.tiles[pio_tile].add_enum(other + ".DRIVE", str_or_default(ci->attrs, ctx->id("DRIVE"), "12")); cc.tiles[pio_tile].add_enum(other + ".DRIVE",
str_or_default(ci->attrs, ctx->id("DRIVE"), "12"));
} }
} else { } else {
if (!drive_3v3_warning_done) if (!drive_3v3_warning_done)