aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorZipCPU <dgisselq@ieee.org>2018-06-07 15:38:24 -0400
committerZipCPU <dgisselq@ieee.org>2018-06-07 15:38:24 -0400
commit4499864024a5b658bf5772ed87e218bcdaedc262 (patch)
tree493bb4dc9e86cfc14466a4c7be5252dcd6843a74 /ice40
parenta4f687548e31b64a7684fdfbb64ea82f46370e2a (diff)
downloadnextpnr-4499864024a5b658bf5772ed87e218bcdaedc262.tar.gz
nextpnr-4499864024a5b658bf5772ed87e218bcdaedc262.tar.bz2
nextpnr-4499864024a5b658bf5772ed87e218bcdaedc262.zip
Applied clang-format to my own contributions
Diffstat (limited to 'ice40')
-rw-r--r--ice40/chip.h17
-rw-r--r--ice40/main.cc7
2 files changed, 14 insertions, 10 deletions
diff --git a/ice40/chip.h b/ice40/chip.h
index 05ef2754..3125b17f 100644
--- a/ice40/chip.h
+++ b/ice40/chip.h
@@ -173,12 +173,17 @@ struct BelIterator
{
int cursor;
- BelIterator operator++() { cursor++; return *this; }
- BelIterator operator++(int) {
- BelIterator prior(*this);
- cursor++;
- return prior;
- }
+ BelIterator operator++()
+ {
+ cursor++;
+ return *this;
+ }
+ BelIterator operator++(int)
+ {
+ BelIterator prior(*this);
+ cursor++;
+ return prior;
+ }
bool operator!=(const BelIterator &other) const
{
diff --git a/ice40/main.cc b/ice40/main.cc
index 68089ffb..d50f72e0 100644
--- a/ice40/main.cc
+++ b/ice40/main.cc
@@ -23,11 +23,11 @@
#include "design.h"
#include "jsonparse.h"
#include "log.h"
+#include "log.h"
#include "mainwindow.h"
+#include "place.h"
#include "pybindings.h"
#include "version.h"
-#include "log.h"
-#include "place.h"
void svg_dump_el(const GraphicElement &el)
{
@@ -244,7 +244,7 @@ int main(int argc, char *argv[])
std::istream *f = new std::ifstream(filename);
parse_json_file(f, filename, &design);
- place_design(&design);
+ place_design(&design);
}
if (vm.count("run")) {
@@ -254,7 +254,6 @@ int main(int argc, char *argv[])
execute_python_file(filename.c_str());
}
-
if (vm.count("gui")) {
QApplication a(argc, argv);
MainWindow w;