Run clang-format

This commit is contained in:
Patrick Niklaus
2016-01-08 01:31:57 +01:00
parent 6b18e4f7e9
commit 6991a38703
149 changed files with 457 additions and 498 deletions
-1
View File
@@ -102,7 +102,6 @@ template <typename Iterator, class HandlerT> struct APIGrammar : qi::grammar<Ite
HandlerT *handler;
};
}
}
-1
View File
@@ -64,7 +64,6 @@ class Connection : public std::enable_shared_from_this<Connection>
http::reply current_reply;
std::vector<char> compressed_output;
};
}
}
-1
View File
@@ -14,7 +14,6 @@ enum compression_type
gzip_rfc1952,
deflate_rfc1951
};
}
}
}
-1
View File
@@ -27,7 +27,6 @@ struct header
std::string name;
std::string value;
};
}
}
}
-1
View File
@@ -38,7 +38,6 @@ class reply
std::string status_to_string(reply::status_type status);
boost::asio::const_buffer status_to_buffer(reply::status_type status);
};
}
}
}
-1
View File
@@ -19,7 +19,6 @@ struct request
std::string agent;
boost::asio::ip::address endpoint;
};
}
}
}
-1
View File
@@ -35,7 +35,6 @@ class RequestHandler
private:
engine::OSRM *routing_machine;
};
}
}
-2
View File
@@ -17,7 +17,6 @@ namespace http
struct request;
}
class RequestParser
{
public:
@@ -71,7 +70,6 @@ class RequestParser
bool is_post_header;
int content_length;
};
}
}
+2 -2
View File
@@ -30,7 +30,8 @@ class Server
static std::shared_ptr<Server>
CreateServer(std::string &ip_address, int ip_port, unsigned requested_num_threads)
{
util::SimpleLogger().Write() << "http 1.1 compression handled by zlib version " << zlibVersion();
util::SimpleLogger().Write() << "http 1.1 compression handled by zlib version "
<< zlibVersion();
const unsigned hardware_threads = std::max(1u, std::thread::hardware_concurrency());
const unsigned real_num_threads = std::min(hardware_threads, requested_num_threads);
return std::make_shared<Server>(ip_address, ip_port, real_num_threads);
@@ -93,7 +94,6 @@ class Server
std::shared_ptr<Connection> new_connection;
RequestHandler request_handler;
};
}
}