From a92e9dac081db1e70c7440b1d62124eabc6edd27 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sun, 14 May 2023 14:39:42 +0200 Subject: [PATCH] chore: add commonly used files * add makefile * add c++ skeleton Signed-off-by: Matej Focko --- .common/makefile | 8 ++++++++ .common/skeleton.cpp | 14 ++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .common/makefile create mode 100644 .common/skeleton.cpp diff --git a/.common/makefile b/.common/makefile new file mode 100644 index 0000000..e17e79c --- /dev/null +++ b/.common/makefile @@ -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 diff --git a/.common/skeleton.cpp b/.common/skeleton.cpp new file mode 100644 index 0000000..b56858f --- /dev/null +++ b/.common/skeleton.cpp @@ -0,0 +1,14 @@ +#include + +namespace { + +void solve() { + // TODO +} + +} // namespace + +int main(void) { + solve(); + return 0; +}