forked from freudenreichan/info2Praktikum-NeuronalesNetz
Update dev environment
This commit is contained in:
3 files changed
+10
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
|
||||
@@ -54,6 +54,12 @@ neuralNetworkTests: neuralNetwork.o matrix.o neuralNetworkTests.c $(unityfolder)
|
||||
imageInputTests: imageInput.o imageInputTests.c $(unityfolder)/unity.c
|
||||
$(CC) $(CFLAGS) -I$(unityfolder) -o runImageInputTests imageInputTests.c imageInput.o $(unityfolder)/unity.c
|
||||
|
||||
# --------------------------
|
||||
# compile_commands.json für clangd erzeugen (benötigt bear)
|
||||
# --------------------------
|
||||
compiledb:
|
||||
bear -- $(CC) $(CFLAGS) -fsyntax-only -I$(raylibfolder) -I$(unityfolder) $(wildcard *.c)
|
||||
|
||||
# --------------------------
|
||||
# Clean
|
||||
# --------------------------
|
||||
|
||||
Reference in new issue
Block a user