cpp: add more warning flags to test suite [#194]

This commit is contained in:
Brandon Liu
2023-06-17 07:31:37 +08:00
parent 236e84e24f
commit 65eaa0e0ff
2 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
.PHONY: test
test:
clang test.cpp -std=c++11 -lstdc++ -o test && ./test
clang test.cpp -std=c++11 -lstdc++ -Wall -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-declarations -Wshorten-64-to-32 -Wnull-dereference -Wzero-as-null-pointer-constant -Wold-style-cast -o test && ./test
indent:
clang-format -i -style="{BasedOnStyle: Google, IndentWidth: 8, UseTab: Always, AllowShortIfStatementsOnASingleLine: false, ColumnLimit: 0, ContinuationIndentWidth: 8, SpaceAfterCStyleCast: true, IndentCaseLabels: false, AllowShortBlocksOnASingleLine: false, AllowShortFunctionsOnASingleLine: false, SortIncludes: false}" pmtiles.hpp test.cpp