Compare commits

..

No commits in common. "14001389accb0e2950744f60f598b9fc447c4e5b" and "b51f26f18f06df86a5f33be183c9103d4d5a6c46" have entirely different histories.

5 changed files with 0 additions and 48 deletions

View File

@ -1,12 +0,0 @@
---
BasedOnStyle: LLVM
AllowShortBlocksOnASingleLine: 'true'
AllowShortCaseLabelsOnASingleLine: 'true'
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: Inline
AllowShortLoopsOnASingleLine: 'false'
AlwaysBreakBeforeMultilineStrings: 'true'
IndentWidth: '4'
...

View File

@ -1,11 +0,0 @@
CXX = g++
CXXFLAGS = -Wall -O3
program: main.o
$(CXX) $(CXXFLAGS) -o program.out main.o
main.o: main.cpp
$(CXX) $(CXXFLAGS) -c main.cpp
clean :
-rm *.o *.out

View File

@ -1,7 +1,2 @@
# cpp-template # cpp-template
## Instructions
- Formatting: `./format.sh`
- Building: `make`
- Running: `./program.out`

View File

@ -1,7 +0,0 @@
#include <iostream>
int main() {
std::cout << "Hello World!" << std::endl;
return 0;
}

View File

@ -1,13 +0,0 @@
#!/bin/bash
if [[ "$OSTYPE" == "darwin"* ]]; then
clang_format_command="clang-format"
clang_tidy_command="run-clang-tidy"
fi
if [[ "$OSTYPE" == "linux"* ]]; then
clang_format_command="clang-format-11"
clang_tidy_command="run-clang-tidy-11"
fi
eval "$clang_format_command -i *.h *.cpp -style=file"
eval "$clang_tidy_command -fix"