chore: add commonly used files

* add makefile
* add c++ skeleton

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2023-05-14 14:39:42 +02:00
parent 274174db2f
commit a92e9dac08
Signed by: mfocko
GPG key ID: 7C47D46246790496
2 changed files with 22 additions and 0 deletions

8
.common/makefile Normal file
View file

@ -0,0 +1,8 @@
CXX=clang++
CXXFLAGS=-std=c++20 -Wall -Wextra
main: format main.cpp
$(CXX) $(CXXFLAGS) -g main.cpp -o main
format:
clang-format -i -style=google main.cpp

14
.common/skeleton.cpp Normal file
View file

@ -0,0 +1,14 @@
#include <iostream>
namespace {
void solve() {
// TODO
}
} // namespace
int main(void) {
solve();
return 0;
}