aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2023-03-17 09:31:38 +0100
committergatecat <gatecat@ds0.me>2023-03-17 09:31:38 +0100
commit4111cc25d653bde9fbda72b9cf9dc13a876e214a (patch)
tree5262e149213062b74e777da4f0132fc8b0f30757 /gui
parent656bfdb8199c9b36e7a064d7dd8d287069142287 (diff)
downloadnextpnr-4111cc25d653bde9fbda72b9cf9dc13a876e214a.tar.gz
nextpnr-4111cc25d653bde9fbda72b9cf9dc13a876e214a.tar.bz2
nextpnr-4111cc25d653bde9fbda72b9cf9dc13a876e214a.zip
clangformat
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'gui')
-rw-r--r--gui/machxo2/mainwindow.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/gui/machxo2/mainwindow.cc b/gui/machxo2/mainwindow.cc
index 4a7ffeaf..9b7cfb17 100644
--- a/gui/machxo2/mainwindow.cc
+++ b/gui/machxo2/mainwindow.cc
@@ -20,8 +20,8 @@
#include "mainwindow.h"
#include <fstream>
#include "bitstream.h"
-#include "log.h"
#include "embed.h"
+#include "log.h"
#include "machxo2_available.h"
#include <QFileDialog>
@@ -49,7 +49,8 @@ MainWindow::~MainWindow() {}
void MainWindow::newContext(Context *ctx)
{
- std::string title = "nextpnr-machxo2 - " + std::string(ctx->device_name) + " (" + std::string(ctx->package_name) + ") - Part : " + ctx->getChipName();
+ std::string title = "nextpnr-machxo2 - " + std::string(ctx->device_name) + " (" + std::string(ctx->package_name) +
+ ") - Part : " + ctx->getChipName();
setWindowTitle(title.c_str());
}
@@ -84,7 +85,7 @@ void MainWindow::new_proj()
std::stringstream ss(available_devices);
std::string name;
- while(getline(ss, name, ';')){
+ while (getline(ss, name, ';')) {
std::string chipdb = stringf("machxo2/chipdb-%s.bin", name.c_str());
auto db_ptr = reinterpret_cast<const RelPtr<ChipInfoPOD> *>(get_chipdb(chipdb));
if (!db_ptr)
@@ -93,7 +94,8 @@ void MainWindow::new_proj()
for (auto &pkg : chip.packages) {
for (auto &speedgrade : chip.speed_grades) {
for (auto &rating : chip.suffixes) {
- std::string devname = stringf("%s-%d%s%s", chip.name.get(), speedgrade.speed, pkg.short_name.get(), rating.suffix.get());
+ std::string devname = stringf("%s-%d%s%s", chip.name.get(), speedgrade.speed,
+ pkg.short_name.get(), rating.suffix.get());
arch.append(QString::fromLocal8Bit(devname.c_str()));
}
}
@@ -105,7 +107,8 @@ void MainWindow::new_proj()
QString item = QInputDialog::getItem(this, "Select new context", "Part:", arch, 0, false, &ok);
if (ok && !item.isEmpty()) {
ArchArgs chipArgs;
- chipArgs.device = item.toUtf8().constData();;
+ chipArgs.device = item.toUtf8().constData();
+ ;
handler->clear();
currentProj = "";