Run clang-format

This commit is contained in:
Bassem Girgis
2018-10-18 00:40:34 -05:00
parent fffe4528da
commit 31c32e368a
149 changed files with 5974 additions and 6287 deletions

View File

@@ -1,23 +1,26 @@
#include <vector>
#include <thread>
#include <algorithm>
#include <functional>
#include <thread>
#include <vector>
void do_work(unsigned id)
{}
void f()
void
do_work(unsigned id)
{
std::vector<std::thread> threads;
for(unsigned i=0;i<20;++i)
{
threads.push_back(std::thread(do_work,i));
}
std::for_each(threads.begin(),threads.end(),
std::mem_fn(&std::thread::join));
}
int main()
void
f()
{
f();
std::vector<std::thread> threads;
for (unsigned i = 0; i < 20; ++i) {
threads.push_back(std::thread(do_work, i));
}
std::for_each(
threads.begin(), threads.end(), std::mem_fn(&std::thread::join));
}
int
main()
{
f();
}