From 4b78ae15dfbcdb197cfe4a8e27cdae6e4005c292 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 23 Jun 2018 16:06:49 +0200 Subject: clangformat cleanup --- dummy/main.cc | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'dummy') diff --git a/dummy/main.cc b/dummy/main.cc index 6b4f9655..5e0a9322 100644 --- a/dummy/main.cc +++ b/dummy/main.cc @@ -29,10 +29,10 @@ #endif #include #include +#include #include "log.h" #include "nextpnr.h" #include "version.h" -#include USING_NEXTPNR_NAMESPACE @@ -55,18 +55,14 @@ int main(int argc, char *argv[]) po::positional_options_description pos; #ifndef NO_PYTHON - options.add_options()("run", po::value>(), - "python file to execute"); + options.add_options()("run", po::value>(), "python file to execute"); pos.add("run", -1); #endif options.add_options()("version,V", "show version"); po::variables_map vm; try { - po::parsed_options parsed = po::command_line_parser(argc, argv) - .options(options) - .positional(pos) - .run(); + po::parsed_options parsed = po::command_line_parser(argc, argv).options(options).positional(pos).run(); po::store(parsed, vm); @@ -79,18 +75,16 @@ 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 " - "sha1 " GIT_COMMIT_HASH_STR ")\n"; + 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"; return argc != 1; } if (vm.count("version")) { - std::cout << boost::filesystem::basename(argv[0]) - << " -- Next Generation Place and Route (git " - "sha1 " GIT_COMMIT_HASH_STR ")\n"; + std::cout << boost::filesystem::basename(argv[0]) << " -- Next Generation Place and Route (git " + "sha1 " GIT_COMMIT_HASH_STR ")\n"; return 1; } @@ -115,8 +109,7 @@ int main(int argc, char *argv[]) #ifndef NO_PYTHON if (vm.count("run")) { - std::vector files = - vm["run"].as>(); + std::vector files = vm["run"].as>(); for (auto filename : files) execute_python_file(filename.c_str()); } -- cgit v1.2.3