forked from freudenreichan/info2Praktikum-DobleSpiel
Tweak project configuration
This commit is contained in:
6 files changed
+218
-1
No files matched your search
@@ -0,0 +1,45 @@
|
||||
# clang-format-Konfiguration, abgeleitet aus dem bestehenden Wortsalat-Code
|
||||
BasedOnStyle: LLVM
|
||||
|
||||
# Einrückung: 4 Leerzeichen, keine Tabs
|
||||
IndentWidth: 4
|
||||
TabWidth: 4
|
||||
UseTab: Never
|
||||
ContinuationIndentWidth: 4
|
||||
|
||||
# Allman-Stil: geschweifte Klammern für Funktionen, Schleifen, if/else stehen in eigenen Zeilen
|
||||
BreakBeforeBraces: Allman
|
||||
|
||||
# Keine automatischen Zeilenumbrüche, der Code bricht lange Zeilen bereits selbst um
|
||||
ColumnLimit: 0
|
||||
ReflowComments: false
|
||||
|
||||
# Zeiger-Sternchen rechts: char *word, SearchWord *words
|
||||
PointerAlignment: Right
|
||||
DerivePointerAlignment: false
|
||||
|
||||
# Kein Leerzeichen vor der Klammer bei if/for/while und bei Funktionsaufrufen
|
||||
SpaceBeforeParens: Custom
|
||||
SpaceBeforeParensOptions:
|
||||
AfterControlStatements: false
|
||||
AfterFunctionDeclarationName: false
|
||||
AfterFunctionDefinitionName: false
|
||||
SpaceAfterCStyleCast: false
|
||||
|
||||
# Kurze Konstrukte bleiben mehrzeilig
|
||||
AllowShortIfStatementsOnASingleLine: Never
|
||||
AllowShortLoopsOnASingleLine: false
|
||||
AllowShortBlocksOnASingleLine: Never
|
||||
AllowShortFunctionsOnASingleLine: None
|
||||
AllowShortCaseLabelsOnASingleLine: false
|
||||
|
||||
# Geschweifte Initialisierer: {0, 0}
|
||||
Cpp11BracedListStyle: true
|
||||
|
||||
# Includes nicht umsortieren (Reihenfolge ist teils bewusst gewählt)
|
||||
SortIncludes: Never
|
||||
IncludeBlocks: Preserve
|
||||
|
||||
# Leerzeilen
|
||||
MaxEmptyLinesToKeep: 2
|
||||
KeepEmptyLinesAtTheStartOfBlocks: true
|
||||
@@ -0,0 +1,5 @@
|
||||
unity/*
|
||||
raylib/*
|
||||
macos-*/*
|
||||
windows/*
|
||||
linux/*
|
||||
@@ -1 +1,2 @@
|
||||
Tobi;4999
|
||||
player1;3999
|
||||
+7
-1
@@ -32,6 +32,12 @@ doble : main.o $(program_obj_files)
|
||||
$(program_obj_files): %.o: %.c
|
||||
$(CC) -c $(FLAGS) $^ -o $@
|
||||
|
||||
# --------------------------
|
||||
# compile_commands.json für clangd erzeugen (benötigt bear)
|
||||
# --------------------------
|
||||
compiledb:
|
||||
bear -- $(CC) $(CFLAGS) -fsyntax-only -I$(raylibfolder) -I$(unityfolder) $(wildcard *.c)
|
||||
|
||||
# --------------------------
|
||||
# Unit Tests
|
||||
# --------------------------
|
||||
@@ -46,4 +52,4 @@ ifeq ($(OS),Windows_NT)
|
||||
del /f *.o doble
|
||||
else
|
||||
rm -f *.o doble
|
||||
endif
|
||||
endif
|
||||
Reference in new issue
Block a user