clangformat cleanup
This commit is contained in:
parent
1676b285ae
commit
960c650478
@ -75,8 +75,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if (vm.count("help") || argc == 1) {
|
||||
std::cout << boost::filesystem::basename(argv[0])
|
||||
<< " -- Next Generation Place and Route (git "
|
||||
std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git "
|
||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||
std::cout << "\n";
|
||||
std::cout << options << "\n";
|
||||
@ -84,8 +83,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if (vm.count("version")) {
|
||||
std::cout << boost::filesystem::basename(argv[0])
|
||||
<< " -- Next Generation Place and Route (git "
|
||||
std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git "
|
||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||
return 1;
|
||||
}
|
||||
|
@ -135,8 +135,7 @@ void DesignWidget::newContext(Context *ctx)
|
||||
bel_root->setText(0, QString("Bels"));
|
||||
treeWidget->insertTopLevelItem(0, bel_root);
|
||||
QList<QTreeWidgetItem *> bel_items;
|
||||
if (ctx)
|
||||
{
|
||||
if (ctx) {
|
||||
for (auto bel : ctx->getBels()) {
|
||||
auto name = ctx->getBelName(bel);
|
||||
bel_items.append(new BelTreeItem(name, ElementType::BEL, QString(name.c_str(ctx))));
|
||||
@ -149,8 +148,7 @@ void DesignWidget::newContext(Context *ctx)
|
||||
QList<QTreeWidgetItem *> wire_items;
|
||||
wire_root->setText(0, QString("Wires"));
|
||||
treeWidget->insertTopLevelItem(0, wire_root);
|
||||
if (ctx)
|
||||
{
|
||||
if (ctx) {
|
||||
for (auto wire : ctx->getWires()) {
|
||||
auto name = ctx->getWireName(wire);
|
||||
wire_items.append(new WireTreeItem(name, ElementType::WIRE, QString(name.c_str(ctx))));
|
||||
@ -163,8 +161,7 @@ void DesignWidget::newContext(Context *ctx)
|
||||
QList<QTreeWidgetItem *> pip_items;
|
||||
pip_root->setText(0, QString("Pips"));
|
||||
treeWidget->insertTopLevelItem(0, pip_root);
|
||||
if (ctx)
|
||||
{
|
||||
if (ctx) {
|
||||
for (auto pip : ctx->getPips()) {
|
||||
auto name = ctx->getPipName(pip);
|
||||
pip_items.append(new PipTreeItem(name, ElementType::PIP, QString(name.c_str(ctx))));
|
||||
|
@ -355,8 +355,7 @@ void FPGAViewWidget::paintGL()
|
||||
|
||||
// Draw Bels.
|
||||
auto bels = LineShaderData(0.02f, QColor("#b000ba"));
|
||||
if (ctx_)
|
||||
{
|
||||
if (ctx_) {
|
||||
for (auto bel : ctx_->getBels()) {
|
||||
for (auto &el : ctx_->getBelGraphics(bel))
|
||||
drawElement(bels, el);
|
||||
@ -366,8 +365,7 @@ void FPGAViewWidget::paintGL()
|
||||
|
||||
// Draw Frame Graphics.
|
||||
auto frames = LineShaderData(0.02f, QColor("#0066ba"));
|
||||
if (ctx_)
|
||||
{
|
||||
if (ctx_) {
|
||||
for (auto &el : ctx_->getFrameGraphics()) {
|
||||
drawElement(frames, el);
|
||||
}
|
||||
|
@ -242,6 +242,7 @@ class FPGAViewWidget : public QOpenGLWidget, protected QOpenGLFunctions
|
||||
void drawElement(LineShaderData &data, const GraphicElement &el);
|
||||
public Q_SLOTS:
|
||||
void newContext(Context *ctx);
|
||||
|
||||
private:
|
||||
QPoint lastPos_;
|
||||
float moveX_;
|
||||
|
@ -56,10 +56,7 @@ Worker::Worker(TaskManager *parent) : ctx(nullptr)
|
||||
};
|
||||
}
|
||||
|
||||
void Worker::newContext(Context *ctx_)
|
||||
{
|
||||
ctx = ctx_;
|
||||
}
|
||||
void Worker::newContext(Context *ctx_) { ctx = ctx_; }
|
||||
|
||||
void Worker::loadfile(const std::string &filename)
|
||||
{
|
||||
@ -156,7 +153,6 @@ TaskManager::TaskManager() : toTerminate(false), toPause(false)
|
||||
connect(this, &TaskManager::place, worker, &Worker::place);
|
||||
connect(this, &TaskManager::route, worker, &Worker::route);
|
||||
|
||||
|
||||
connect(this, &TaskManager::contextChanged, worker, &Worker::newContext);
|
||||
|
||||
connect(worker, &Worker::log, this, &TaskManager::info);
|
||||
|
@ -126,8 +126,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (vm.count("help") || argc == 1) {
|
||||
help:
|
||||
std::cout << boost::filesystem::basename(argv[0])
|
||||
<< " -- Next Generation Place and Route (git "
|
||||
std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git "
|
||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||
std::cout << "\n";
|
||||
std::cout << options << "\n";
|
||||
@ -135,8 +134,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
if (vm.count("version")) {
|
||||
std::cout << boost::filesystem::basename(argv[0])
|
||||
<< " -- Next Generation Place and Route (git "
|
||||
std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git "
|
||||
"sha1 " GIT_COMMIT_HASH_STR ")\n";
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user