Skip to content

Commit 0ede821

Browse files
authored
Add some newlines at the end of files (#258)
1 parent 3456f97 commit 0ede821

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ ifeq ($(relaxed_build), on)
4343
$(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.)
4444
else
4545
LIB_CFLAGS += -Wall -Werror
46+
# Clang: ensure files end with newline. Missing final newlines here triggered
47+
# -Wnewline-eof warnings in downstream projects (e.g., Hyrise).
48+
ifneq (,$(findstring clang,$(shell $(CXX) --version 2>/dev/null)))
49+
LIB_CFLAGS += -Wnewline-eof
50+
endif
4651
endif
4752

4853
static ?= no

src/SQLParser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ class SQLParser {
3232

3333
} // namespace hsql
3434

35-
#endif
35+
#endif

src/SQLParserResult.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ class SQLParserResult {
9191

9292
} // namespace hsql
9393

94-
#endif // SQLPARSER_SQLPARSER_RESULT_H
94+
#endif // SQLPARSER_SQLPARSER_RESULT_H

src/parser/parser_typedef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ struct HSQL_CUST_LTYPE {
3030
#define HSQL_LTYPE HSQL_CUST_LTYPE
3131
#define HSQL_LTYPE_IS_DECLARED 1
3232

33-
#endif
33+
#endif

src/sql/DropStatement.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ struct DropStatement : SQLStatement {
2222
};
2323

2424
} // namespace hsql
25-
#endif
25+
#endif

0 commit comments

Comments
 (0)