-
Notifications
You must be signed in to change notification settings - Fork 254
Add some newlines at the end of files #258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Can we add the check to the CI to ensure you got all newlines? |
Done. |
@@ -43,6 +43,9 @@ ifeq ($(relaxed_build), on) | |||
$(warning $(NAME) will be built with most compiler warnings deactivated. This is fine if you want to test $(NAME) but will become an issue when you want to contribute code.) | |||
else | |||
LIB_CFLAGS += -Wall -Werror | |||
ifneq (,$(findstring clang,$(shell $(CXX) --version 2>/dev/null))) | |||
LIB_CFLAGS += -Wnewline-eof |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the check is not part of Wall, yes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No.
If it was, the CI would have failed earlier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment that we explicitly add this check for Hyrise?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course!
-Wnewline-eof
is only available in Clang, so missing linebreaks at the end of files are not noticed here.But only because of the SQLParser is this warning manually disabled in Hyrise.
Let's change this.