Commit 673e8ff2 authored by Paul's avatar Paul
Browse files

Formatting

parent 3d4d0179
......@@ -24,15 +24,14 @@ template <class T>
std::string compute_command_name()
{
static const std::string& tname = get_type_name<T>();
auto name = tname.substr(tname.rfind("::") + 2);
if (ends_with(name, "_command"))
name = name.substr(0, name.size()-8);
if (ends_with(name, "_cmd"))
name = name.substr(0, name.size()-4);
auto name = tname.substr(tname.rfind("::") + 2);
if(ends_with(name, "_command"))
name = name.substr(0, name.size() - 8);
if(ends_with(name, "_cmd"))
name = name.substr(0, name.size() - 4);
return name;
}
template <class T>
const std::string& command_name()
{
......
......@@ -125,10 +125,7 @@ struct verify : command<verify>
struct compile : command<compile>
{
compiler c;
void parse(argument_parser& ap)
{
c.parse(ap);
}
void parse(argument_parser& ap) { c.parse(ap); }
void run()
{
......@@ -141,10 +138,7 @@ struct compile : command<compile>
struct run_cmd : command<run_cmd>
{
compiler c;
void parse(argument_parser& ap)
{
c.parse(ap);
}
void parse(argument_parser& ap) { c.parse(ap); }
void run()
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment