Skip to content

Commit 026a5b9

Browse files
committed
Add clang format
1 parent 5665a3a commit 026a5b9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.clang-format

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Use the Google style in this project.
2+
BasedOnStyle: Google

devserver/main.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#include "devserver/httplib/httplib.h"
22

3-
int main(int argc, char **argv)
4-
{
3+
int main(int argc, char **argv) {
54
httplib::Server svr;
65

7-
svr.Get("/", [](const httplib::Request &req, httplib::Response &res)
8-
{ res.set_content("Hello World!", "text/plain"); });
6+
svr.Get("/", [](const httplib::Request &req, httplib::Response &res) {
7+
res.set_content("Hello World!", "text/plain");
8+
});
99

1010
svr.listen("localhost", 8080);
1111
}

0 commit comments

Comments
 (0)