Compare commits

..

2 Commits

Author SHA1 Message Date
21ff6eec81 Update clang-format 2021-03-16 18:01:48 +01:00
b56a1d15b5 Remove Makefile, use SConstruct instead 2021-03-16 18:01:36 +01:00
4 changed files with 20 additions and 17 deletions

View File

@ -1,13 +1,14 @@
--- ---
BasedOnStyle: LLVM BasedOnStyle: LLVM
AllowShortBlocksOnASingleLine: 'true' AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: 'true' AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Inline AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: WithoutElse AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: Inline AllowShortLambdasOnASingleLine: Inline
AllowShortLoopsOnASingleLine: 'false' AllowShortLoopsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: 'true' AlwaysBreakBeforeMultilineStrings: true
IndentWidth: '4' AlwaysBreakTemplateDeclarations: true
IndentWidth: 4
ColumnLimit: 100 ColumnLimit: 100
... ...

6
.gitignore vendored
View File

@ -7,6 +7,7 @@
*.lo *.lo
*.o *.o
*.obj *.obj
*.os
# Precompiled Headers # Precompiled Headers
*.gch *.gch
@ -32,3 +33,8 @@
*.out *.out
*.app *.app
# SConstruct
**/.sconsign.dblite
compile_commands.json
.cache/

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

7
SConstruct Normal file
View File

@ -0,0 +1,7 @@
#!python
# Create the environment and create a Compilation Database for use in VSCodium
env = DefaultEnvironment(tools=['default', 'compilation_db'])
env.CompilationDatabase()
Program('program.out', Glob('*.cpp'))