update to template

This commit is contained in:
Tyler Beckman 2024-09-21 17:20:37 -06:00
parent ca03d93f04
commit e64f1a0f1e
Signed by: Ty
GPG key ID: 2813440C772555A4
2 changed files with 11 additions and 5 deletions

View file

@ -7,7 +7,7 @@ SortIncludes: true
IncludeBlocks: Regroup IncludeBlocks: Regroup
IncludeCategories: IncludeCategories:
# System headers from C # System headers from C
- Regex: '<(cassert|ccomplex|cctype|cerrno|cfenv|cfloat|cinttypes|ciso646|climits|clocale|cmath|csetjmp|csignal|cstdalign|cstdarg|cstdatomic|cstdbool|cstddef|cstdint|cstdio|cstdlib|cstdnoreturn|cstring|ctgmath|cthreads|ctime|cuchar|cwchar|cwctype)>' - Regex: '<c(assert|complex|ctype|errno|fenv|float|inttypes|iso646|limits|locale|math|setjmp|signal|stdalign|stdarg|stdatomic|stdbool|stddef|stdint|stdio|stdlib|stdnoreturn|string|tgmath|threads|time|uchar|wchar|wctype)>'
Priority: 3 Priority: 3
# System headers without extension. # System headers without extension.
- Regex: '<([A-Za-z0-9\Q/-_\E])+>' - Regex: '<([A-Za-z0-9\Q/-_\E])+>'

View file

@ -1,5 +1,5 @@
TARGET = A2 TARGET = CHANGEME
SRC_FILES = main.cpp atmFunctions.cpp SRC_FILES = main.cpp
# Tyler's custom makefile extensions for CSCI200 (anyone can use these if they want) # Tyler's custom makefile extensions for CSCI200 (anyone can use these if they want)
.DEFAULT_GOAL := all # Necessary so `make` doesn't run the "pack" target, as it is declared before "all" .DEFAULT_GOAL := all # Necessary so `make` doesn't run the "pack" target, as it is declared before "all"
@ -34,6 +34,13 @@ fmt:
fmtc: fmtc:
find . -iname '*.hpp' -o -iname '*.h' -o -iname '*.cpp' | xargs clang-format --style=file:.class-clang-format -i find . -iname '*.hpp' -o -iname '*.h' -o -iname '*.cpp' | xargs clang-format --style=file:.class-clang-format -i
## Modifies the SRC_FILES variable to have all .cpp files in the repo
setupsrc:
sed -i "0,/SRC_FILE.\{0\}S = .*/ s//SRC_FILES = $(shell find . -iname '*.cpp' -printf '%P\n')/" Makefile
## Alias to setup SRC_FILES and then dependencies
setup: setupsrc depend
# NO EDITS NEEDED BELOW THIS LINE # NO EDITS NEEDED BELOW THIS LINE
CXX = g++ CXX = g++
@ -73,5 +80,4 @@ depend:
.PHONY: all clean depend .PHONY: all clean depend
# DEPENDENCIES # DEPENDENCIES
main.o: main.cpp atmFunctions.h main.o: main.cpp
atmFunctions.o: atmFunctions.cpp