summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/glsl/glcpp/glcpp-lex.l87
-rw-r--r--src/glsl/glcpp/glcpp-parse.y1
-rw-r--r--src/glsl/glcpp/glcpp.h1
-rw-r--r--src/glsl/glcpp/tests/000-content-with-spaces.c.expected1
-rw-r--r--src/glsl/glcpp/tests/001-define.c.expected1
-rw-r--r--src/glsl/glcpp/tests/002-define-chain.c.expected1
-rw-r--r--src/glsl/glcpp/tests/003-define-chain-reverse.c.expected1
-rw-r--r--src/glsl/glcpp/tests/004-define-recursive.c.expected1
-rw-r--r--src/glsl/glcpp/tests/005-define-composite-chain.c.expected1
-rw-r--r--src/glsl/glcpp/tests/006-define-composite-chain-reverse.c.expected1
-rw-r--r--src/glsl/glcpp/tests/007-define-composite-recursive.c.expected1
-rw-r--r--src/glsl/glcpp/tests/008-define-empty.c.expected1
-rw-r--r--src/glsl/glcpp/tests/009-undef.c.expected1
-rw-r--r--src/glsl/glcpp/tests/010-undef-re-define.c.expected1
-rw-r--r--src/glsl/glcpp/tests/011-define-func-empty.c.expected1
-rw-r--r--src/glsl/glcpp/tests/012-define-func-no-args.c.expected1
-rw-r--r--src/glsl/glcpp/tests/013-define-func-1-arg-unused.c.expected1
-rw-r--r--src/glsl/glcpp/tests/014-define-func-2-arg-unused.c.expected1
-rw-r--r--src/glsl/glcpp/tests/015-define-object-with-parens.c.expected1
-rw-r--r--src/glsl/glcpp/tests/016-define-func-1-arg.c.expected1
-rw-r--r--src/glsl/glcpp/tests/017-define-func-2-args.c.expected1
-rw-r--r--src/glsl/glcpp/tests/018-define-func-macro-as-parameter.c.expected1
-rw-r--r--src/glsl/glcpp/tests/019-define-func-1-arg-multi.c.expected1
-rw-r--r--src/glsl/glcpp/tests/020-define-func-2-arg-multi.c.expected1
-rw-r--r--src/glsl/glcpp/tests/021-define-func-compose.c.expected1
-rw-r--r--src/glsl/glcpp/tests/022-define-func-arg-with-parens.c.expected1
-rw-r--r--src/glsl/glcpp/tests/023-define-extra-whitespace.c.expected1
-rw-r--r--src/glsl/glcpp/tests/024-define-chain-to-self-recursion.c.expected1
-rw-r--r--src/glsl/glcpp/tests/025-func-macro-as-non-macro.c.expected1
-rw-r--r--src/glsl/glcpp/tests/026-define-func-extra-newlines.c.expected1
-rw-r--r--src/glsl/glcpp/tests/027-define-chain-obj-to-func.c.expected1
-rw-r--r--src/glsl/glcpp/tests/028-define-chain-obj-to-non-func.c.expected1
-rw-r--r--src/glsl/glcpp/tests/029-define-chain-obj-to-func-with-args.c.expected1
-rw-r--r--src/glsl/glcpp/tests/030-define-chain-obj-to-func-compose.c.expected1
-rw-r--r--src/glsl/glcpp/tests/031-define-chain-func-to-func-compose.c.expected1
-rw-r--r--src/glsl/glcpp/tests/032-define-func-self-recurse.c.expected1
-rw-r--r--src/glsl/glcpp/tests/033-define-func-self-compose.c.expected1
-rw-r--r--src/glsl/glcpp/tests/034-define-func-self-compose-non-func.c.expected1
-rw-r--r--src/glsl/glcpp/tests/035-define-func-self-compose-non-func-multi-token-argument.c.expected1
-rw-r--r--src/glsl/glcpp/tests/036-define-func-non-macro-multi-token-argument.c.expected1
-rw-r--r--src/glsl/glcpp/tests/037-finalize-unexpanded-macro.c.expected1
-rw-r--r--src/glsl/glcpp/tests/038-func-arg-with-commas.c.expected1
-rw-r--r--src/glsl/glcpp/tests/039-func-arg-obj-macro-with-comma.c.expected1
-rw-r--r--src/glsl/glcpp/tests/040-token-pasting.c.expected1
-rw-r--r--src/glsl/glcpp/tests/041-if-0.c.expected1
-rw-r--r--src/glsl/glcpp/tests/042-if-1.c.expected1
-rw-r--r--src/glsl/glcpp/tests/043-if-0-else.c.expected1
-rw-r--r--src/glsl/glcpp/tests/044-if-1-else.c.expected1
-rw-r--r--src/glsl/glcpp/tests/045-if-0-elif.c.expected1
-rw-r--r--src/glsl/glcpp/tests/046-if-1-elsif.c.expected1
-rw-r--r--src/glsl/glcpp/tests/047-if-elif-else.c.expected1
-rw-r--r--src/glsl/glcpp/tests/048-if-nested.c.expected1
-rw-r--r--src/glsl/glcpp/tests/049-if-expression-precedence.c.expected1
-rw-r--r--src/glsl/glcpp/tests/050-if-defined.c.expected1
-rw-r--r--src/glsl/glcpp/tests/051-if-relational.c.expected1
-rw-r--r--src/glsl/glcpp/tests/052-if-bitwise.c.expected1
-rw-r--r--src/glsl/glcpp/tests/053-if-divide-and-shift.c.expected1
-rw-r--r--src/glsl/glcpp/tests/054-if-with-macros.c.expected1
-rw-r--r--src/glsl/glcpp/tests/055-define-chain-obj-to-func-parens-in-text.c.expected1
-rw-r--r--src/glsl/glcpp/tests/056-macro-argument-with-comma.c.expected1
-rw-r--r--src/glsl/glcpp/tests/057-empty-arguments.c.expected1
-rw-r--r--src/glsl/glcpp/tests/058-token-pasting-empty-arguments.c.expected1
-rw-r--r--src/glsl/glcpp/tests/059-token-pasting-integer.c.expected1
-rw-r--r--src/glsl/glcpp/tests/060-left-paren-in-macro-right-paren-in-text.c.expected1
-rw-r--r--src/glsl/glcpp/tests/061-define-chain-obj-to-func-multi.c.expected1
-rw-r--r--src/glsl/glcpp/tests/062-if-0-skips-garbage.c.expected1
-rw-r--r--src/glsl/glcpp/tests/063-comments.c.expected1
-rw-r--r--src/glsl/glcpp/tests/064-version.c.expected1
-rw-r--r--src/glsl/glcpp/tests/065-if-defined-parens.c.expected1
-rw-r--r--src/glsl/glcpp/tests/066-if-nospace-expression.c.expected1
-rw-r--r--src/glsl/glcpp/tests/067-nested-ifdef-ifndef.c.expected1
-rw-r--r--src/glsl/glcpp/tests/068-accidental-pasting.c.expected1
-rw-r--r--src/glsl/glcpp/tests/069-repeated-argument.c.expected1
-rw-r--r--src/glsl/glcpp/tests/070-undefined-macro-in-expression.c.expected1
-rw-r--r--src/glsl/glcpp/tests/071-punctuator.c.expected1
-rw-r--r--src/glsl/glcpp/tests/072-token-pasting-same-line.c.expected1
-rw-r--r--src/glsl/glcpp/tests/073-if-in-ifdef.c.expected1
-rw-r--r--src/glsl/glcpp/tests/074-elif-undef.c.expected1
-rw-r--r--src/glsl/glcpp/tests/075-elif-elif-undef.c.expected1
-rw-r--r--src/glsl/glcpp/tests/076-elif-undef-nested.c.expected1
-rw-r--r--src/glsl/glcpp/tests/077-else-without-if.c.expected1
-rw-r--r--src/glsl/glcpp/tests/078-elif-without-if.c.expected1
-rw-r--r--src/glsl/glcpp/tests/079-endif-without-if.c.expected1
-rw-r--r--src/glsl/glcpp/tests/080-if-without-expression.c.expected1
-rw-r--r--src/glsl/glcpp/tests/081-elif-without-expression.c.expected1
-rw-r--r--src/glsl/glcpp/tests/082-invalid-paste.c.expected1
-rw-r--r--src/glsl/glcpp/tests/083-unterminated-if.c.expected1
-rw-r--r--src/glsl/glcpp/tests/085-incorrect-argument-count.c.expected1
-rw-r--r--src/glsl/glcpp/tests/086-reserved-macro-names.c.expected1
-rw-r--r--src/glsl/glcpp/tests/087-if-comments.c.expected1
-rw-r--r--src/glsl/glcpp/tests/088-redefine-macro-legitimate.c.expected1
-rw-r--r--src/glsl/glcpp/tests/089-redefine-macro-error.c.expected1
-rw-r--r--src/glsl/glcpp/tests/090-hash-error.c.expected1
-rw-r--r--src/glsl/glcpp/tests/091-hash-line.c.expected1
-rw-r--r--src/glsl/glcpp/tests/092-redefine-macro-error-2.c.expected1
-rw-r--r--src/glsl/glcpp/tests/093-divide-by-zero.c.expected1
-rw-r--r--src/glsl/glcpp/tests/094-divide-by-zero-short-circuit.c.expected1
-rw-r--r--src/glsl/glcpp/tests/095-recursive-define.c.expected1
-rw-r--r--src/glsl/glcpp/tests/096-paste-twice.c.expected1
-rw-r--r--src/glsl/glcpp/tests/097-paste-with-non-function-macro.c.expected1
-rw-r--r--src/glsl/glcpp/tests/098-elif-undefined.c.expected1
-rw-r--r--src/glsl/glcpp/tests/099-c99-example.c.expected1
-rw-r--r--src/glsl/glcpp/tests/100-macro-with-colon.c.expected1
-rw-r--r--src/glsl/glcpp/tests/101-macros-used-twice.c.expected1
-rw-r--r--src/glsl/glcpp/tests/104-hash-line-followed-by-code.c.expected1
-rw-r--r--src/glsl/glcpp/tests/105-multiline-hash-line.c.expected1
-rw-r--r--src/glsl/glcpp/tests/106-multiline-hash-if.c.expected1
-rw-r--r--src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected1
-rw-r--r--src/glsl/glcpp/tests/108-no-space-after-hash-version.c.expected1
-rw-r--r--src/glsl/glcpp/tests/109-no-space-after-hash-line.c.expected1
-rw-r--r--src/glsl/glcpp/tests/110-no-space-digits-after-hash-elif.c.expected1
-rw-r--r--src/glsl/glcpp/tests/111-no-space-operator-after-hash-if.c.expected1
-rw-r--r--src/glsl/glcpp/tests/112-no-space-operator-after-hash-elif.c.expected1
-rw-r--r--src/glsl/glcpp/tests/113-line-and-file-macros.c.expected1
-rw-r--r--src/glsl/glcpp/tests/114-paste-integer-tokens.c.expected1
-rw-r--r--src/glsl/glcpp/tests/115-line-continuations.c.expected1
-rw-r--r--src/glsl/glcpp/tests/116-disable-line-continuations.c.expected1
-rw-r--r--src/glsl/glcpp/tests/117-line-continuation-and-non-continuation-backslash.c.expected1
-rw-r--r--src/glsl/glcpp/tests/118-comment-becomes-space.c.expected1
-rw-r--r--src/glsl/glcpp/tests/118-multiple-else.c.expected1
-rw-r--r--src/glsl/glcpp/tests/119-elif-after-else.c.expected1
-rw-r--r--src/glsl/glcpp/tests/120-undef-builtin.c.expected1
-rw-r--r--src/glsl/glcpp/tests/121-comment-bug-72686.c.expected1
-rw-r--r--src/glsl/glcpp/tests/122-redefine-whitespace.c.expected1
-rw-r--r--src/glsl/glcpp/tests/124-preprocessing-numbers.c.expected1
-rw-r--r--src/glsl/glcpp/tests/125-es-short-circuit-undefined.c.expected1
-rw-r--r--src/glsl/glcpp/tests/126-garbage-after-directive.c.expected1
-rw-r--r--src/glsl/glcpp/tests/127-pragma-empty.c.expected1
-rw-r--r--src/glsl/glcpp/tests/128-space-before-hash.c.expected1
-rw-r--r--src/glsl/glcpp/tests/130-define-comment.c.expected1
130 files changed, 51 insertions, 165 deletions
diff --git a/src/glsl/glcpp/glcpp-lex.l b/src/glsl/glcpp/glcpp-lex.l
index 44547fde0e9..980ab5d3ff1 100644
--- a/src/glsl/glcpp/glcpp-lex.l
+++ b/src/glsl/glcpp/glcpp-lex.l
@@ -60,6 +60,16 @@ void glcpp_set_column (int column_no , yyscan_t yyscanner);
yycolumn = 1; \
yylloc->source = 0; \
} while(0)
+
+#define RETURN_TOKEN(token) \
+ do { \
+ if (token == NEWLINE) \
+ parser->last_token_was_newline = 1; \
+ else \
+ parser->last_token_was_newline = 0; \
+ return (token); \
+ } while(0)
+
%}
%option bison-bridge bison-locations reentrant noyywrap
@@ -111,7 +121,7 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]?
parser->commented_newlines--;
if (parser->commented_newlines == 0)
BEGIN INITIAL;
- return NEWLINE;
+ RETURN_TOKEN (NEWLINE);
}
/* The handling of the SKIP vs INITIAL start states requires
@@ -169,13 +179,13 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]?
<COMMENT>"*"+"/" {
yy_pop_state(yyscanner);
if (yyextra->space_tokens)
- return SPACE;
+ RETURN_TOKEN (SPACE);
}
{HASH}version{HSPACE}+ {
yylval->str = ralloc_strdup (yyextra, yytext);
yyextra->space_tokens = 0;
- return HASH_VERSION;
+ RETURN_TOKEN (HASH_VERSION);
}
/* glcpp doesn't handle #extension, #version, or #pragma directives.
@@ -184,46 +194,46 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]?
yylval->str = ralloc_strdup (yyextra, yytext);
yylineno++;
yycolumn = 0;
- return OTHER;
+ RETURN_TOKEN (OTHER);
}
{HASH}line{HSPACE}+ {
- return HASH_LINE;
+ RETURN_TOKEN (HASH_LINE);
}
<SKIP,INITIAL>{
{HASH}ifdef {
yyextra->lexing_directive = 1;
yyextra->space_tokens = 0;
- return HASH_IFDEF;
+ RETURN_TOKEN (HASH_IFDEF);
}
{HASH}ifndef {
yyextra->lexing_directive = 1;
yyextra->space_tokens = 0;
- return HASH_IFNDEF;
+ RETURN_TOKEN (HASH_IFNDEF);
}
{HASH}if/[^_a-zA-Z0-9] {
yyextra->lexing_directive = 1;
yyextra->space_tokens = 0;
- return HASH_IF;
+ RETURN_TOKEN (HASH_IF);
}
{HASH}elif/[^_a-zA-Z0-9] {
yyextra->lexing_directive = 1;
yyextra->space_tokens = 0;
- return HASH_ELIF;
+ RETURN_TOKEN (HASH_ELIF);
}
{HASH}else {
yyextra->space_tokens = 0;
- return HASH_ELSE;
+ RETURN_TOKEN (HASH_ELSE);
}
{HASH}endif {
yyextra->space_tokens = 0;
- return HASH_ENDIF;
+ RETURN_TOKEN (HASH_ENDIF);
}
}
@@ -258,21 +268,21 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]?
{HASH}define{HSPACE}+ {
yyextra->space_tokens = 0;
yy_push_state(DEFINE, yyscanner);
- return HASH_DEFINE;
+ RETURN_TOKEN (HASH_DEFINE);
}
/* An identifier immediately followed by '(' */
<DEFINE>{IDENTIFIER}/"(" {
yy_pop_state(yyscanner);
yylval->str = ralloc_strdup (yyextra, yytext);
- return FUNC_IDENTIFIER;
+ RETURN_TOKEN (FUNC_IDENTIFIER);
}
/* An identifier not immediately followed by '(' */
<DEFINE>{IDENTIFIER} {
yy_pop_state(yyscanner);
yylval->str = ralloc_strdup (yyextra, yytext);
- return OBJ_IDENTIFIER;
+ RETURN_TOKEN (OBJ_IDENTIFIER);
}
/* Whitespace */
@@ -284,7 +294,7 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]?
<DEFINE>[/][^*]{NONSPACE}* {
BEGIN INITIAL;
glcpp_error(yylloc, yyextra, "#define followed by a non-identifier: %s", yytext);
- return INTEGER_STRING;
+ RETURN_TOKEN (INTEGER_STRING);
}
/* A character that can't start an identifier, comment, or
@@ -292,98 +302,98 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]?
<DEFINE>[^_a-zA-Z/[:space:]]{NONSPACE}* {
BEGIN INITIAL;
glcpp_error(yylloc, yyextra, "#define followed by a non-identifier: %s", yytext);
- return INTEGER_STRING;
+ RETURN_TOKEN (INTEGER_STRING);
}
{HASH}undef {
yyextra->space_tokens = 0;
- return HASH_UNDEF;
+ RETURN_TOKEN (HASH_UNDEF);
}
{HASH} {
yyextra->space_tokens = 0;
- return HASH;
+ RETURN_TOKEN (HASH);
}
{DECIMAL_INTEGER} {
yylval->str = ralloc_strdup (yyextra, yytext);
- return INTEGER_STRING;
+ RETURN_TOKEN (INTEGER_STRING);
}
{OCTAL_INTEGER} {
yylval->str = ralloc_strdup (yyextra, yytext);
- return INTEGER_STRING;
+ RETURN_TOKEN (INTEGER_STRING);
}
{HEXADECIMAL_INTEGER} {
yylval->str = ralloc_strdup (yyextra, yytext);
- return INTEGER_STRING;
+ RETURN_TOKEN (INTEGER_STRING);
}
"<<" {
- return LEFT_SHIFT;
+ RETURN_TOKEN (LEFT_SHIFT);
}
">>" {
- return RIGHT_SHIFT;
+ RETURN_TOKEN (RIGHT_SHIFT);
}
"<=" {
- return LESS_OR_EQUAL;
+ RETURN_TOKEN (LESS_OR_EQUAL);
}
">=" {
- return GREATER_OR_EQUAL;
+ RETURN_TOKEN (GREATER_OR_EQUAL);
}
"==" {
- return EQUAL;
+ RETURN_TOKEN (EQUAL);
}
"!=" {
- return NOT_EQUAL;
+ RETURN_TOKEN (NOT_EQUAL);
}
"&&" {
- return AND;
+ RETURN_TOKEN (AND);
}
"||" {
- return OR;
+ RETURN_TOKEN (OR);
}
"##" {
if (parser->is_gles)
glcpp_error(yylloc, yyextra, "Token pasting (##) is illegal in GLES");
- return PASTE;
+ RETURN_TOKEN (PASTE);
}
"defined" {
- return DEFINED;
+ RETURN_TOKEN (DEFINED);
}
{IDENTIFIER} {
yylval->str = ralloc_strdup (yyextra, yytext);
- return IDENTIFIER;
+ RETURN_TOKEN (IDENTIFIER);
}
{PP_NUMBER} {
yylval->str = ralloc_strdup (yyextra, yytext);
- return OTHER;
+ RETURN_TOKEN (OTHER);
}
{PUNCTUATION} {
- return yytext[0];
+ RETURN_TOKEN (yytext[0]);
}
{OTHER}+ {
yylval->str = ralloc_strdup (yyextra, yytext);
- return OTHER;
+ RETURN_TOKEN (OTHER);
}
{HSPACE} {
if (yyextra->space_tokens) {
- return SPACE;
+ RETURN_TOKEN (SPACE);
}
}
@@ -395,7 +405,7 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]?
yyextra->lexing_directive = 0;
yylineno++;
yycolumn = 0;
- return NEWLINE;
+ RETURN_TOKEN (NEWLINE);
}
<INITIAL,COMMENT,DEFINE><<EOF>> {
@@ -405,7 +415,8 @@ HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]?
glcpp_error(yylloc, yyextra, "#define without macro name");
BEGIN DONE; /* Don't keep matching this rule forever. */
yyextra->lexing_directive = 0;
- return NEWLINE;
+ if (! parser->last_token_was_newline)
+ RETURN_TOKEN (NEWLINE);
}
/* We don't actually use the UNREACHABLE start condition. We
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y
index 084078eb01f..07d780e3877 100644
--- a/src/glsl/glcpp/glcpp-parse.y
+++ b/src/glsl/glcpp/glcpp-parse.y
@@ -1308,6 +1308,7 @@ glcpp_parser_create (const struct gl_extensions *extensions, gl_api api)
parser->active = NULL;
parser->lexing_directive = 0;
parser->space_tokens = 1;
+ parser->last_token_was_newline = 0;
parser->newline_as_space = 0;
parser->in_control_line = 0;
parser->paren_count = 0;
diff --git a/src/glsl/glcpp/glcpp.h b/src/glsl/glcpp/glcpp.h
index 64b4872025c..6316c9f49b8 100644
--- a/src/glsl/glcpp/glcpp.h
+++ b/src/glsl/glcpp/glcpp.h
@@ -177,6 +177,7 @@ struct glcpp_parser {
active_list_t *active;
int lexing_directive;
int space_tokens;
+ int last_token_was_newline;
int newline_as_space;
int in_control_line;
int paren_count;
diff --git a/src/glsl/glcpp/tests/000-content-with-spaces.c.expected b/src/glsl/glcpp/tests/000-content-with-spaces.c.expected
index 5e17ec910fa..f49870f7aa7 100644
--- a/src/glsl/glcpp/tests/000-content-with-spaces.c.expected
+++ b/src/glsl/glcpp/tests/000-content-with-spaces.c.expected
@@ -1,2 +1 @@
this is four tokens with spaces
-
diff --git a/src/glsl/glcpp/tests/001-define.c.expected b/src/glsl/glcpp/tests/001-define.c.expected
index 878fd15d6f8..a464d9da742 100644
--- a/src/glsl/glcpp/tests/001-define.c.expected
+++ b/src/glsl/glcpp/tests/001-define.c.expected
@@ -1,3 +1,2 @@
1
-
diff --git a/src/glsl/glcpp/tests/002-define-chain.c.expected b/src/glsl/glcpp/tests/002-define-chain.c.expected
index 43d484d7131..c6c9ee38a9e 100644
--- a/src/glsl/glcpp/tests/002-define-chain.c.expected
+++ b/src/glsl/glcpp/tests/002-define-chain.c.expected
@@ -1,4 +1,3 @@
1
-
diff --git a/src/glsl/glcpp/tests/003-define-chain-reverse.c.expected b/src/glsl/glcpp/tests/003-define-chain-reverse.c.expected
index 43d484d7131..c6c9ee38a9e 100644
--- a/src/glsl/glcpp/tests/003-define-chain-reverse.c.expected
+++ b/src/glsl/glcpp/tests/003-define-chain-reverse.c.expected
@@ -1,4 +1,3 @@
1
-
diff --git a/src/glsl/glcpp/tests/004-define-recursive.c.expected b/src/glsl/glcpp/tests/004-define-recursive.c.expected
index 4d2698b7a7f..2d07687f8ca 100644
--- a/src/glsl/glcpp/tests/004-define-recursive.c.expected
+++ b/src/glsl/glcpp/tests/004-define-recursive.c.expected
@@ -4,4 +4,3 @@
foo
bar
baz
-
diff --git a/src/glsl/glcpp/tests/005-define-composite-chain.c.expected b/src/glsl/glcpp/tests/005-define-composite-chain.c.expected
index c67358f4f69..892975c268c 100644
--- a/src/glsl/glcpp/tests/005-define-composite-chain.c.expected
+++ b/src/glsl/glcpp/tests/005-define-composite-chain.c.expected
@@ -1,4 +1,3 @@
a 1
-
diff --git a/src/glsl/glcpp/tests/006-define-composite-chain-reverse.c.expected b/src/glsl/glcpp/tests/006-define-composite-chain-reverse.c.expected
index c67358f4f69..892975c268c 100644
--- a/src/glsl/glcpp/tests/006-define-composite-chain-reverse.c.expected
+++ b/src/glsl/glcpp/tests/006-define-composite-chain-reverse.c.expected
@@ -1,4 +1,3 @@
a 1
-
diff --git a/src/glsl/glcpp/tests/007-define-composite-recursive.c.expected b/src/glsl/glcpp/tests/007-define-composite-recursive.c.expected
index 30fe4dc1f62..0b0b477d9df 100644
--- a/src/glsl/glcpp/tests/007-define-composite-recursive.c.expected
+++ b/src/glsl/glcpp/tests/007-define-composite-recursive.c.expected
@@ -4,4 +4,3 @@
a b c foo
b c a bar
c a b baz
-
diff --git a/src/glsl/glcpp/tests/008-define-empty.c.expected b/src/glsl/glcpp/tests/008-define-empty.c.expected
index c0f53d75c71..d148bc8e800 100644
--- a/src/glsl/glcpp/tests/008-define-empty.c.expected
+++ b/src/glsl/glcpp/tests/008-define-empty.c.expected
@@ -1,3 +1,2 @@
-
diff --git a/src/glsl/glcpp/tests/009-undef.c.expected b/src/glsl/glcpp/tests/009-undef.c.expected
index 03a7061af03..9c0b35a4518 100644
--- a/src/glsl/glcpp/tests/009-undef.c.expected
+++ b/src/glsl/glcpp/tests/009-undef.c.expected
@@ -2,4 +2,3 @@
1
foo
-
diff --git a/src/glsl/glcpp/tests/010-undef-re-define.c.expected b/src/glsl/glcpp/tests/010-undef-re-define.c.expected
index f4f7efdc2bf..5970f49028e 100644
--- a/src/glsl/glcpp/tests/010-undef-re-define.c.expected
+++ b/src/glsl/glcpp/tests/010-undef-re-define.c.expected
@@ -4,4 +4,3 @@
foo
2
-
diff --git a/src/glsl/glcpp/tests/011-define-func-empty.c.expected b/src/glsl/glcpp/tests/011-define-func-empty.c.expected
index c0f53d75c71..d148bc8e800 100644
--- a/src/glsl/glcpp/tests/011-define-func-empty.c.expected
+++ b/src/glsl/glcpp/tests/011-define-func-empty.c.expected
@@ -1,3 +1,2 @@
-
diff --git a/src/glsl/glcpp/tests/012-define-func-no-args.c.expected b/src/glsl/glcpp/tests/012-define-func-no-args.c.expected
index 03537672974..9f075f26004 100644
--- a/src/glsl/glcpp/tests/012-define-func-no-args.c.expected
+++ b/src/glsl/glcpp/tests/012-define-func-no-args.c.expected
@@ -1,3 +1,2 @@
bar
-
diff --git a/src/glsl/glcpp/tests/013-define-func-1-arg-unused.c.expected b/src/glsl/glcpp/tests/013-define-func-1-arg-unused.c.expected
index 878fd15d6f8..a464d9da742 100644
--- a/src/glsl/glcpp/tests/013-define-func-1-arg-unused.c.expected
+++ b/src/glsl/glcpp/tests/013-define-func-1-arg-unused.c.expected
@@ -1,3 +1,2 @@
1
-
diff --git a/src/glsl/glcpp/tests/014-define-func-2-arg-unused.c.expected b/src/glsl/glcpp/tests/014-define-func-2-arg-unused.c.expected
index 878fd15d6f8..a464d9da742 100644
--- a/src/glsl/glcpp/tests/014-define-func-2-arg-unused.c.expected
+++ b/src/glsl/glcpp/tests/014-define-func-2-arg-unused.c.expected
@@ -1,3 +1,2 @@
1
-
diff --git a/src/glsl/glcpp/tests/015-define-object-with-parens.c.expected b/src/glsl/glcpp/tests/015-define-object-with-parens.c.expected
index d6f8cb9dc61..a70321a4c51 100644
--- a/src/glsl/glcpp/tests/015-define-object-with-parens.c.expected
+++ b/src/glsl/glcpp/tests/015-define-object-with-parens.c.expected
@@ -2,4 +2,3 @@
()1()
()2()
-
diff --git a/src/glsl/glcpp/tests/016-define-func-1-arg.c.expected b/src/glsl/glcpp/tests/016-define-func-1-arg.c.expected
index 7f1828a3c61..6bfe04f7381 100644
--- a/src/glsl/glcpp/tests/016-define-func-1-arg.c.expected
+++ b/src/glsl/glcpp/tests/016-define-func-1-arg.c.expected
@@ -1,3 +1,2 @@
((bar)+1)
-
diff --git a/src/glsl/glcpp/tests/017-define-func-2-args.c.expected b/src/glsl/glcpp/tests/017-define-func-2-args.c.expected
index 9f341dac00a..f7a2b8c26cb 100644
--- a/src/glsl/glcpp/tests/017-define-func-2-args.c.expected
+++ b/src/glsl/glcpp/tests/017-define-func-2-args.c.expected
@@ -1,3 +1,2 @@
((bar)*(baz))
-
diff --git a/src/glsl/glcpp/tests/018-define-func-macro-as-parameter.c.expected b/src/glsl/glcpp/tests/018-define-func-macro-as-parameter.c.expected
index 43d484d7131..c6c9ee38a9e 100644
--- a/src/glsl/glcpp/tests/018-define-func-macro-as-parameter.c.expected
+++ b/src/glsl/glcpp/tests/018-define-func-macro-as-parameter.c.expected
@@ -1,4 +1,3 @@
1
-
diff --git a/src/glsl/glcpp/tests/019-define-func-1-arg-multi.c.expected b/src/glsl/glcpp/tests/019-define-func-1-arg-multi.c.expected
index 4314fc88d83..1e89b8cfd0c 100644
--- a/src/glsl/glcpp/tests/019-define-func-1-arg-multi.c.expected
+++ b/src/glsl/glcpp/tests/019-define-func-1-arg-multi.c.expected
@@ -1,3 +1,2 @@
(this is more than one word)
-
diff --git a/src/glsl/glcpp/tests/020-define-func-2-arg-multi.c.expected b/src/glsl/glcpp/tests/020-define-func-2-arg-multi.c.expected
index 5648e4fb9d4..19f59f5ecb7 100644
--- a/src/glsl/glcpp/tests/020-define-func-2-arg-multi.c.expected
+++ b/src/glsl/glcpp/tests/020-define-func-2-arg-multi.c.expected
@@ -1,3 +1,2 @@
one fish,two fish,red fish,blue fish
-
diff --git a/src/glsl/glcpp/tests/021-define-func-compose.c.expected b/src/glsl/glcpp/tests/021-define-func-compose.c.expected
index 1d62105de4c..87f51f0baca 100644
--- a/src/glsl/glcpp/tests/021-define-func-compose.c.expected
+++ b/src/glsl/glcpp/tests/021-define-func-compose.c.expected
@@ -1,4 +1,3 @@
(2*((1+(3))))
-
diff --git a/src/glsl/glcpp/tests/022-define-func-arg-with-parens.c.expected b/src/glsl/glcpp/tests/022-define-func-arg-with-parens.c.expected
index 66c16581758..1dfc6698bb7 100644
--- a/src/glsl/glcpp/tests/022-define-func-arg-with-parens.c.expected
+++ b/src/glsl/glcpp/tests/022-define-func-arg-with-parens.c.expected
@@ -1,3 +1,2 @@
(argument(including parens)for the win)
-
diff --git a/src/glsl/glcpp/tests/023-define-extra-whitespace.c.expected b/src/glsl/glcpp/tests/023-define-extra-whitespace.c.expected
index 573829c2d69..9c58275d0f9 100644
--- a/src/glsl/glcpp/tests/023-define-extra-whitespace.c.expected
+++ b/src/glsl/glcpp/tests/023-define-extra-whitespace.c.expected
@@ -6,4 +6,3 @@
2
3 4
5 6 7
-
diff --git a/src/glsl/glcpp/tests/024-define-chain-to-self-recursion.c.expected b/src/glsl/glcpp/tests/024-define-chain-to-self-recursion.c.expected
index ad955fce6ec..15600af546b 100644
--- a/src/glsl/glcpp/tests/024-define-chain-to-self-recursion.c.expected
+++ b/src/glsl/glcpp/tests/024-define-chain-to-self-recursion.c.expected
@@ -1,4 +1,3 @@
foo
-
diff --git a/src/glsl/glcpp/tests/025-func-macro-as-non-macro.c.expected b/src/glsl/glcpp/tests/025-func-macro-as-non-macro.c.expected
index 960f44511a9..4a59f0520e3 100644
--- a/src/glsl/glcpp/tests/025-func-macro-as-non-macro.c.expected
+++ b/src/glsl/glcpp/tests/025-func-macro-as-non-macro.c.expected
@@ -1,3 +1,2 @@
foo bar
-
diff --git a/src/glsl/glcpp/tests/026-define-func-extra-newlines.c.expected b/src/glsl/glcpp/tests/026-define-func-extra-newlines.c.expected
index f0888f21b94..5e3c70f2cc5 100644
--- a/src/glsl/glcpp/tests/026-define-func-extra-newlines.c.expected
+++ b/src/glsl/glcpp/tests/026-define-func-extra-newlines.c.expected
@@ -1,4 +1,3 @@
bar
-
diff --git a/src/glsl/glcpp/tests/027-define-chain-obj-to-func.c.expected b/src/glsl/glcpp/tests/027-define-chain-obj-to-func.c.expected
index aef762e1e69..94c15f95059 100644
--- a/src/glsl/glcpp/tests/027-define-chain-obj-to-func.c.expected
+++ b/src/glsl/glcpp/tests/027-define-chain-obj-to-func.c.expected
@@ -1,4 +1,3 @@
success
-
diff --git a/src/glsl/glcpp/tests/028-define-chain-obj-to-non-func.c.expected b/src/glsl/glcpp/tests/028-define-chain-obj-to-non-func.c.expected
index aef762e1e69..94c15f95059 100644
--- a/src/glsl/glcpp/tests/028-define-chain-obj-to-non-func.c.expected
+++ b/src/glsl/glcpp/tests/028-define-chain-obj-to-non-func.c.expected
@@ -1,4 +1,3 @@
success
-
diff --git a/src/glsl/glcpp/tests/029-define-chain-obj-to-func-with-args.c.expected b/src/glsl/glcpp/tests/029-define-chain-obj-to-func-with-args.c.expected
index aef762e1e69..94c15f95059 100644
--- a/src/glsl/glcpp/tests/029-define-chain-obj-to-func-with-args.c.expected
+++ b/src/glsl/glcpp/tests/029-define-chain-obj-to-func-with-args.c.expected
@@ -1,4 +1,3 @@
success
-
diff --git a/src/glsl/glcpp/tests/030-define-chain-obj-to-func-compose.c.expected b/src/glsl/glcpp/tests/030-define-chain-obj-to-func-compose.c.expected
index 729bdd15f80..bed826e7831 100644
--- a/src/glsl/glcpp/tests/030-define-chain-obj-to-func-compose.c.expected
+++ b/src/glsl/glcpp/tests/030-define-chain-obj-to-func-compose.c.expected
@@ -2,4 +2,3 @@
success
-
diff --git a/src/glsl/glcpp/tests/031-define-chain-func-to-func-compose.c.expected b/src/glsl/glcpp/tests/031-define-chain-func-to-func-compose.c.expected
index 729bdd15f80..bed826e7831 100644
--- a/src/glsl/glcpp/tests/031-define-chain-func-to-func-compose.c.expected
+++ b/src/glsl/glcpp/tests/031-define-chain-func-to-func-compose.c.expected
@@ -2,4 +2,3 @@
success
-
diff --git a/src/glsl/glcpp/tests/032-define-func-self-recurse.c.expected b/src/glsl/glcpp/tests/032-define-func-self-recurse.c.expected
index 541d44db7ab..983f9417401 100644
--- a/src/glsl/glcpp/tests/032-define-func-self-recurse.c.expected
+++ b/src/glsl/glcpp/tests/032-define-func-self-recurse.c.expected
@@ -1,3 +1,2 @@
foo(2*(3))
-
diff --git a/src/glsl/glcpp/tests/033-define-func-self-compose.c.expected b/src/glsl/glcpp/tests/033-define-func-self-compose.c.expected
index 6ea6905d80b..08183623643 100644
--- a/src/glsl/glcpp/tests/033-define-func-self-compose.c.expected
+++ b/src/glsl/glcpp/tests/033-define-func-self-compose.c.expected
@@ -1,3 +1,2 @@
foo(2*(foo(2*(3))))
-
diff --git a/src/glsl/glcpp/tests/034-define-func-self-compose-non-func.c.expected b/src/glsl/glcpp/tests/034-define-func-self-compose-non-func.c.expected
index 24823b1b673..3f808fe665d 100644
--- a/src/glsl/glcpp/tests/034-define-func-self-compose-non-func.c.expected
+++ b/src/glsl/glcpp/tests/034-define-func-self-compose-non-func.c.expected
@@ -1,3 +1,2 @@
foo
-
diff --git a/src/glsl/glcpp/tests/035-define-func-self-compose-non-func-multi-token-argument.c.expected b/src/glsl/glcpp/tests/035-define-func-self-compose-non-func-multi-token-argument.c.expected
index 137a9ea2db8..09dfdd64e9b 100644
--- a/src/glsl/glcpp/tests/035-define-func-self-compose-non-func-multi-token-argument.c.expected
+++ b/src/glsl/glcpp/tests/035-define-func-self-compose-non-func-multi-token-argument.c.expected
@@ -1,3 +1,2 @@
1+foo
-
diff --git a/src/glsl/glcpp/tests/036-define-func-non-macro-multi-token-argument.c.expected b/src/glsl/glcpp/tests/036-define-func-non-macro-multi-token-argument.c.expected
index ff6360bfe4e..580ed9599c5 100644
--- a/src/glsl/glcpp/tests/036-define-func-non-macro-multi-token-argument.c.expected
+++ b/src/glsl/glcpp/tests/036-define-func-non-macro-multi-token-argument.c.expected
@@ -1,4 +1,3 @@
more success
-
diff --git a/src/glsl/glcpp/tests/037-finalize-unexpanded-macro.c.expected b/src/glsl/glcpp/tests/037-finalize-unexpanded-macro.c.expected
index cbadee848a5..e804d7e4f9f 100644
--- a/src/glsl/glcpp/tests/037-finalize-unexpanded-macro.c.expected
+++ b/src/glsl/glcpp/tests/037-finalize-unexpanded-macro.c.expected
@@ -1,4 +1,3 @@
expand(just once)
-
diff --git a/src/glsl/glcpp/tests/038-func-arg-with-commas.c.expected b/src/glsl/glcpp/tests/038-func-arg-with-commas.c.expected
index 5a28fb3b66c..6544adb3a25 100644
--- a/src/glsl/glcpp/tests/038-func-arg-with-commas.c.expected
+++ b/src/glsl/glcpp/tests/038-func-arg-with-commas.c.expected
@@ -1,3 +1,2 @@
success
-
diff --git a/src/glsl/glcpp/tests/039-func-arg-obj-macro-with-comma.c.expected b/src/glsl/glcpp/tests/039-func-arg-obj-macro-with-comma.c.expected
index b73869d0238..8a15397a033 100644
--- a/src/glsl/glcpp/tests/039-func-arg-obj-macro-with-comma.c.expected
+++ b/src/glsl/glcpp/tests/039-func-arg-obj-macro-with-comma.c.expected
@@ -1,4 +1,3 @@
(two,words)
-
diff --git a/src/glsl/glcpp/tests/040-token-pasting.c.expected b/src/glsl/glcpp/tests/040-token-pasting.c.expected
index 36f66992539..48e836ec3fa 100644
--- a/src/glsl/glcpp/tests/040-token-pasting.c.expected
+++ b/src/glsl/glcpp/tests/040-token-pasting.c.expected
@@ -1,3 +1,2 @@
onetoken
-
diff --git a/src/glsl/glcpp/tests/041-if-0.c.expected b/src/glsl/glcpp/tests/041-if-0.c.expected
index 3800024c6ff..8b506b32d55 100644
--- a/src/glsl/glcpp/tests/041-if-0.c.expected
+++ b/src/glsl/glcpp/tests/041-if-0.c.expected
@@ -3,4 +3,3 @@ success_1
success_2
-
diff --git a/src/glsl/glcpp/tests/042-if-1.c.expected b/src/glsl/glcpp/tests/042-if-1.c.expected
index e591044adbb..a6ae9465a97 100644
--- a/src/glsl/glcpp/tests/042-if-1.c.expected
+++ b/src/glsl/glcpp/tests/042-if-1.c.expected
@@ -3,4 +3,3 @@ success_1
success_2
success_3
-
diff --git a/src/glsl/glcpp/tests/043-if-0-else.c.expected b/src/glsl/glcpp/tests/043-if-0-else.c.expected
index ee9e677096e..3d7e6be96c8 100644
--- a/src/glsl/glcpp/tests/043-if-0-else.c.expected
+++ b/src/glsl/glcpp/tests/043-if-0-else.c.expected
@@ -5,4 +5,3 @@ success_1
success_2
success_3
-
diff --git a/src/glsl/glcpp/tests/044-if-1-else.c.expected b/src/glsl/glcpp/tests/044-if-1-else.c.expected
index 129f5c8542e..4a31e1cfa9e 100644
--- a/src/glsl/glcpp/tests/044-if-1-else.c.expected
+++ b/src/glsl/glcpp/tests/044-if-1-else.c.expected
@@ -5,4 +5,3 @@ success_2
success_3
-
diff --git a/src/glsl/glcpp/tests/045-if-0-elif.c.expected b/src/glsl/glcpp/tests/045-if-0-elif.c.expected
index 97a11b4472e..a9bb1588e4f 100644
--- a/src/glsl/glcpp/tests/045-if-0-elif.c.expected
+++ b/src/glsl/glcpp/tests/045-if-0-elif.c.expected
@@ -9,4 +9,3 @@ success_3
success_4
-
diff --git a/src/glsl/glcpp/tests/046-if-1-elsif.c.expected b/src/glsl/glcpp/tests/046-if-1-elsif.c.expected
index b928b917e3d..a4995713ca5 100644
--- a/src/glsl/glcpp/tests/046-if-1-elsif.c.expected
+++ b/src/glsl/glcpp/tests/046-if-1-elsif.c.expected
@@ -9,4 +9,3 @@ success_2
success_3
-
diff --git a/src/glsl/glcpp/tests/047-if-elif-else.c.expected b/src/glsl/glcpp/tests/047-if-elif-else.c.expected
index e5b53a3fa59..54d30861197 100644
--- a/src/glsl/glcpp/tests/047-if-elif-else.c.expected
+++ b/src/glsl/glcpp/tests/047-if-elif-else.c.expected
@@ -9,4 +9,3 @@ success_1
success_2
success_3
-
diff --git a/src/glsl/glcpp/tests/048-if-nested.c.expected b/src/glsl/glcpp/tests/048-if-nested.c.expected
index c61fd0b3159..8beb9c32c37 100644
--- a/src/glsl/glcpp/tests/048-if-nested.c.expected
+++ b/src/glsl/glcpp/tests/048-if-nested.c.expected
@@ -9,4 +9,3 @@ success_1
success_2
-
diff --git a/src/glsl/glcpp/tests/049-if-expression-precedence.c.expected b/src/glsl/glcpp/tests/049-if-expression-precedence.c.expected
index 569debb0bb6..729bdd15f80 100644
--- a/src/glsl/glcpp/tests/049-if-expression-precedence.c.expected
+++ b/src/glsl/glcpp/tests/049-if-expression-precedence.c.expected
@@ -3,4 +3,3 @@
success
-
diff --git a/src/glsl/glcpp/tests/050-if-defined.c.expected b/src/glsl/glcpp/tests/050-if-defined.c.expected
index 3f01955ee40..737eb8d9403 100644
--- a/src/glsl/glcpp/tests/050-if-defined.c.expected
+++ b/src/glsl/glcpp/tests/050-if-defined.c.expected
@@ -15,4 +15,3 @@ success_2
success_3
-
diff --git a/src/glsl/glcpp/tests/051-if-relational.c.expected b/src/glsl/glcpp/tests/051-if-relational.c.expected
index d2b76f14576..652fefdd43b 100644
--- a/src/glsl/glcpp/tests/051-if-relational.c.expected
+++ b/src/glsl/glcpp/tests/051-if-relational.c.expected
@@ -33,4 +33,3 @@ success_5
-
diff --git a/src/glsl/glcpp/tests/052-if-bitwise.c.expected b/src/glsl/glcpp/tests/052-if-bitwise.c.expected
index bb5d92e8d92..44e52b206e5 100644
--- a/src/glsl/glcpp/tests/052-if-bitwise.c.expected
+++ b/src/glsl/glcpp/tests/052-if-bitwise.c.expected
@@ -18,4 +18,3 @@ success_4
-
diff --git a/src/glsl/glcpp/tests/053-if-divide-and-shift.c.expected b/src/glsl/glcpp/tests/053-if-divide-and-shift.c.expected
index f97e93673cc..7e78e0454e0 100644
--- a/src/glsl/glcpp/tests/053-if-divide-and-shift.c.expected
+++ b/src/glsl/glcpp/tests/053-if-divide-and-shift.c.expected
@@ -13,4 +13,3 @@ success_2
success_3
-
diff --git a/src/glsl/glcpp/tests/054-if-with-macros.c.expected b/src/glsl/glcpp/tests/054-if-with-macros.c.expected
index 27ea4969628..70f737c90a9 100644
--- a/src/glsl/glcpp/tests/054-if-with-macros.c.expected
+++ b/src/glsl/glcpp/tests/054-if-with-macros.c.expected
@@ -32,4 +32,3 @@ success_6
-
diff --git a/src/glsl/glcpp/tests/055-define-chain-obj-to-func-parens-in-text.c.expected b/src/glsl/glcpp/tests/055-define-chain-obj-to-func-parens-in-text.c.expected
index aef762e1e69..94c15f95059 100644
--- a/src/glsl/glcpp/tests/055-define-chain-obj-to-func-parens-in-text.c.expected
+++ b/src/glsl/glcpp/tests/055-define-chain-obj-to-func-parens-in-text.c.expected
@@ -1,4 +1,3 @@
success
-
diff --git a/src/glsl/glcpp/tests/056-macro-argument-with-comma.c.expected b/src/glsl/glcpp/tests/056-macro-argument-with-comma.c.expected
index 729bdd15f80..bed826e7831 100644
--- a/src/glsl/glcpp/tests/056-macro-argument-with-comma.c.expected
+++ b/src/glsl/glcpp/tests/056-macro-argument-with-comma.c.expected
@@ -2,4 +2,3 @@
success
-
diff --git a/src/glsl/glcpp/tests/057-empty-arguments.c.expected b/src/glsl/glcpp/tests/057-empty-arguments.c.expected
index 4e3aad52173..7d97e15e29d 100644
--- a/src/glsl/glcpp/tests/057-empty-arguments.c.expected
+++ b/src/glsl/glcpp/tests/057-empty-arguments.c.expected
@@ -4,4 +4,3 @@ success
success
success
-
diff --git a/src/glsl/glcpp/tests/058-token-pasting-empty-arguments.c.expected b/src/glsl/glcpp/tests/058-token-pasting-empty-arguments.c.expected
index a1c34e5c1f8..e0967a1b951 100644
--- a/src/glsl/glcpp/tests/058-token-pasting-empty-arguments.c.expected
+++ b/src/glsl/glcpp/tests/058-token-pasting-empty-arguments.c.expected
@@ -3,4 +3,3 @@ ab
a
b
-
diff --git a/src/glsl/glcpp/tests/059-token-pasting-integer.c.expected b/src/glsl/glcpp/tests/059-token-pasting-integer.c.expected
index f1a2cd21c13..f1288aa7cb7 100644
--- a/src/glsl/glcpp/tests/059-token-pasting-integer.c.expected
+++ b/src/glsl/glcpp/tests/059-token-pasting-integer.c.expected
@@ -2,4 +2,3 @@
12
1000
identifier2
-
diff --git a/src/glsl/glcpp/tests/060-left-paren-in-macro-right-paren-in-text.c.expected b/src/glsl/glcpp/tests/060-left-paren-in-macro-right-paren-in-text.c.expected
index c1f0d24a144..3e5501aa6e8 100644
--- a/src/glsl/glcpp/tests/060-left-paren-in-macro-right-paren-in-text.c.expected
+++ b/src/glsl/glcpp/tests/060-left-paren-in-macro-right-paren-in-text.c.expected
@@ -1,4 +1,3 @@
5*2
-
diff --git a/src/glsl/glcpp/tests/061-define-chain-obj-to-func-multi.c.expected b/src/glsl/glcpp/tests/061-define-chain-obj-to-func-multi.c.expected
index 111f7d10634..15eb64b97f1 100644
--- a/src/glsl/glcpp/tests/061-define-chain-obj-to-func-multi.c.expected
+++ b/src/glsl/glcpp/tests/061-define-chain-obj-to-func-multi.c.expected
@@ -3,4 +3,3 @@
success
-
diff --git a/src/glsl/glcpp/tests/062-if-0-skips-garbage.c.expected b/src/glsl/glcpp/tests/062-if-0-skips-garbage.c.expected
index 6fb66a5e2f0..3f2ff2d6cc8 100644
--- a/src/glsl/glcpp/tests/062-if-0-skips-garbage.c.expected
+++ b/src/glsl/glcpp/tests/062-if-0-skips-garbage.c.expected
@@ -3,4 +3,3 @@
-
diff --git a/src/glsl/glcpp/tests/063-comments.c.expected b/src/glsl/glcpp/tests/063-comments.c.expected
index 1965c9be02d..f6e10ce0377 100644
--- a/src/glsl/glcpp/tests/063-comments.c.expected
+++ b/src/glsl/glcpp/tests/063-comments.c.expected
@@ -18,4 +18,3 @@ more code here
are not treated like comments.
-
diff --git a/src/glsl/glcpp/tests/064-version.c.expected b/src/glsl/glcpp/tests/064-version.c.expected
index 3af71113c8c..4036b1ee374 100644
--- a/src/glsl/glcpp/tests/064-version.c.expected
+++ b/src/glsl/glcpp/tests/064-version.c.expected
@@ -1,3 +1,2 @@
#version 130
-
diff --git a/src/glsl/glcpp/tests/065-if-defined-parens.c.expected b/src/glsl/glcpp/tests/065-if-defined-parens.c.expected
index 3f01955ee40..737eb8d9403 100644
--- a/src/glsl/glcpp/tests/065-if-defined-parens.c.expected
+++ b/src/glsl/glcpp/tests/065-if-defined-parens.c.expected
@@ -15,4 +15,3 @@ success_2
success_3
-
diff --git a/src/glsl/glcpp/tests/066-if-nospace-expression.c.expected b/src/glsl/glcpp/tests/066-if-nospace-expression.c.expected
index 0e84a7cda39..5a28fb3b66c 100644
--- a/src/glsl/glcpp/tests/066-if-nospace-expression.c.expected
+++ b/src/glsl/glcpp/tests/066-if-nospace-expression.c.expected
@@ -1,4 +1,3 @@
success
-
diff --git a/src/glsl/glcpp/tests/067-nested-ifdef-ifndef.c.expected b/src/glsl/glcpp/tests/067-nested-ifdef-ifndef.c.expected
index 3340daaa1f9..9a5ed2eb2d3 100644
--- a/src/glsl/glcpp/tests/067-nested-ifdef-ifndef.c.expected
+++ b/src/glsl/glcpp/tests/067-nested-ifdef-ifndef.c.expected
@@ -38,4 +38,3 @@ success
success
-
diff --git a/src/glsl/glcpp/tests/068-accidental-pasting.c.expected b/src/glsl/glcpp/tests/068-accidental-pasting.c.expected
index ce41cd6e524..27582cda5e8 100644
--- a/src/glsl/glcpp/tests/068-accidental-pasting.c.expected
+++ b/src/glsl/glcpp/tests/068-accidental-pasting.c.expected
@@ -9,4 +9,3 @@
| |
+ +
- -
-
diff --git a/src/glsl/glcpp/tests/069-repeated-argument.c.expected b/src/glsl/glcpp/tests/069-repeated-argument.c.expected
index 755c4d4b56c..8b4b095e488 100644
--- a/src/glsl/glcpp/tests/069-repeated-argument.c.expected
+++ b/src/glsl/glcpp/tests/069-repeated-argument.c.expected
@@ -1,3 +1,2 @@
1 1
-
diff --git a/src/glsl/glcpp/tests/070-undefined-macro-in-expression.c.expected b/src/glsl/glcpp/tests/070-undefined-macro-in-expression.c.expected
index d5a84525579..44b93a434fa 100644
--- a/src/glsl/glcpp/tests/070-undefined-macro-in-expression.c.expected
+++ b/src/glsl/glcpp/tests/070-undefined-macro-in-expression.c.expected
@@ -3,4 +3,3 @@
Success
-
diff --git a/src/glsl/glcpp/tests/071-punctuator.c.expected b/src/glsl/glcpp/tests/071-punctuator.c.expected
index fee253b7452..959d6825988 100644
--- a/src/glsl/glcpp/tests/071-punctuator.c.expected
+++ b/src/glsl/glcpp/tests/071-punctuator.c.expected
@@ -1,2 +1 @@
a = b
-
diff --git a/src/glsl/glcpp/tests/072-token-pasting-same-line.c.expected b/src/glsl/glcpp/tests/072-token-pasting-same-line.c.expected
index c780b43d70f..7b80af7e465 100644
--- a/src/glsl/glcpp/tests/072-token-pasting-same-line.c.expected
+++ b/src/glsl/glcpp/tests/072-token-pasting-same-line.c.expected
@@ -1,3 +1,2 @@
success_1 success_2 success_3
-
diff --git a/src/glsl/glcpp/tests/073-if-in-ifdef.c.expected b/src/glsl/glcpp/tests/073-if-in-ifdef.c.expected
index 3f2ff2d6cc8..fd40910d9e7 100644
--- a/src/glsl/glcpp/tests/073-if-in-ifdef.c.expected
+++ b/src/glsl/glcpp/tests/073-if-in-ifdef.c.expected
@@ -2,4 +2,3 @@
-
diff --git a/src/glsl/glcpp/tests/074-elif-undef.c.expected b/src/glsl/glcpp/tests/074-elif-undef.c.expected
index fd40910d9e7..b28b04f6431 100644
--- a/src/glsl/glcpp/tests/074-elif-undef.c.expected
+++ b/src/glsl/glcpp/tests/074-elif-undef.c.expected
@@ -1,4 +1,3 @@
-
diff --git a/src/glsl/glcpp/tests/075-elif-elif-undef.c.expected b/src/glsl/glcpp/tests/075-elif-elif-undef.c.expected
index 3f2ff2d6cc8..fd40910d9e7 100644
--- a/src/glsl/glcpp/tests/075-elif-elif-undef.c.expected
+++ b/src/glsl/glcpp/tests/075-elif-elif-undef.c.expected
@@ -2,4 +2,3 @@
-
diff --git a/src/glsl/glcpp/tests/076-elif-undef-nested.c.expected b/src/glsl/glcpp/tests/076-elif-undef-nested.c.expected
index 6fb66a5e2f0..3f2ff2d6cc8 100644
--- a/src/glsl/glcpp/tests/076-elif-undef-nested.c.expected
+++ b/src/glsl/glcpp/tests/076-elif-undef-nested.c.expected
@@ -3,4 +3,3 @@
-
diff --git a/src/glsl/glcpp/tests/077-else-without-if.c.expected b/src/glsl/glcpp/tests/077-else-without-if.c.expected
index d289b363562..cc1c379cad3 100644
--- a/src/glsl/glcpp/tests/077-else-without-if.c.expected
+++ b/src/glsl/glcpp/tests/077-else-without-if.c.expected
@@ -1,4 +1,3 @@
0:1(2): preprocessor error: else without #if
-
diff --git a/src/glsl/glcpp/tests/078-elif-without-if.c.expected b/src/glsl/glcpp/tests/078-elif-without-if.c.expected
index 7d41f0ac794..ee3450133a2 100644
--- a/src/glsl/glcpp/tests/078-elif-without-if.c.expected
+++ b/src/glsl/glcpp/tests/078-elif-without-if.c.expected
@@ -1,4 +1,3 @@
0:1(2): preprocessor error: elif without #if
-
diff --git a/src/glsl/glcpp/tests/079-endif-without-if.c.expected b/src/glsl/glcpp/tests/079-endif-without-if.c.expected
index 08dd33546f2..ad21d4c9579 100644
--- a/src/glsl/glcpp/tests/079-endif-without-if.c.expected
+++ b/src/glsl/glcpp/tests/079-endif-without-if.c.expected
@@ -1,4 +1,3 @@
0:1(2): preprocessor error: #endif without #if
-
diff --git a/src/glsl/glcpp/tests/080-if-without-expression.c.expected b/src/glsl/glcpp/tests/080-if-without-expression.c.expected
index 768ba0f473f..2e4cd7323c5 100644
--- a/src/glsl/glcpp/tests/080-if-without-expression.c.expected
+++ b/src/glsl/glcpp/tests/080-if-without-expression.c.expected
@@ -3,4 +3,3 @@
-
diff --git a/src/glsl/glcpp/tests/081-elif-without-expression.c.expected b/src/glsl/glcpp/tests/081-elif-without-expression.c.expected
index 974f0f550eb..b607b849068 100644
--- a/src/glsl/glcpp/tests/081-elif-without-expression.c.expected
+++ b/src/glsl/glcpp/tests/081-elif-without-expression.c.expected
@@ -2,4 +2,3 @@
-
diff --git a/src/glsl/glcpp/tests/082-invalid-paste.c.expected b/src/glsl/glcpp/tests/082-invalid-paste.c.expected
index 2dd21c0635e..b48a2d6d296 100644
--- a/src/glsl/glcpp/tests/082-invalid-paste.c.expected
+++ b/src/glsl/glcpp/tests/082-invalid-paste.c.expected
@@ -17,4 +17,3 @@ Pasting "4" and "+" does not give a valid preprocessing token.
2
34
45.2
-
diff --git a/src/glsl/glcpp/tests/083-unterminated-if.c.expected b/src/glsl/glcpp/tests/083-unterminated-if.c.expected
index a69f8bab582..b03f9ccf95f 100644
--- a/src/glsl/glcpp/tests/083-unterminated-if.c.expected
+++ b/src/glsl/glcpp/tests/083-unterminated-if.c.expected
@@ -2,4 +2,3 @@
-
diff --git a/src/glsl/glcpp/tests/085-incorrect-argument-count.c.expected b/src/glsl/glcpp/tests/085-incorrect-argument-count.c.expected
index 1df30cbb56f..d23845bfd49 100644
--- a/src/glsl/glcpp/tests/085-incorrect-argument-count.c.expected
+++ b/src/glsl/glcpp/tests/085-incorrect-argument-count.c.expected
@@ -9,4 +9,3 @@ MULT()
MULT(1)
MULT(1,2,3)
-
diff --git a/src/glsl/glcpp/tests/086-reserved-macro-names.c.expected b/src/glsl/glcpp/tests/086-reserved-macro-names.c.expected
index 5ca42a983a4..f0b1373d760 100644
--- a/src/glsl/glcpp/tests/086-reserved-macro-names.c.expected
+++ b/src/glsl/glcpp/tests/086-reserved-macro-names.c.expected
@@ -7,4 +7,3 @@
-
diff --git a/src/glsl/glcpp/tests/087-if-comments.c.expected b/src/glsl/glcpp/tests/087-if-comments.c.expected
index 827e548fe55..2783a9c14d5 100644
--- a/src/glsl/glcpp/tests/087-if-comments.c.expected
+++ b/src/glsl/glcpp/tests/087-if-comments.c.expected
@@ -3,4 +3,3 @@
win
-
diff --git a/src/glsl/glcpp/tests/088-redefine-macro-legitimate.c.expected b/src/glsl/glcpp/tests/088-redefine-macro-legitimate.c.expected
index 6fb66a5e2f0..3f2ff2d6cc8 100644
--- a/src/glsl/glcpp/tests/088-redefine-macro-legitimate.c.expected
+++ b/src/glsl/glcpp/tests/088-redefine-macro-legitimate.c.expected
@@ -3,4 +3,3 @@
-
diff --git a/src/glsl/glcpp/tests/089-redefine-macro-error.c.expected b/src/glsl/glcpp/tests/089-redefine-macro-error.c.expected
index 6209ead559e..a945161497f 100644
--- a/src/glsl/glcpp/tests/089-redefine-macro-error.c.expected
+++ b/src/glsl/glcpp/tests/089-redefine-macro-error.c.expected
@@ -27,4 +27,3 @@
-
diff --git a/src/glsl/glcpp/tests/090-hash-error.c.expected b/src/glsl/glcpp/tests/090-hash-error.c.expected
index f2f1fbeaf8a..b9b226bb4e1 100644
--- a/src/glsl/glcpp/tests/090-hash-error.c.expected
+++ b/src/glsl/glcpp/tests/090-hash-error.c.expected
@@ -1,3 +1,2 @@
0:1(2): preprocessor error: #error human error
-
diff --git a/src/glsl/glcpp/tests/091-hash-line.c.expected b/src/glsl/glcpp/tests/091-hash-line.c.expected
index 48af0b296e4..d6831da384e 100644
--- a/src/glsl/glcpp/tests/091-hash-line.c.expected
+++ b/src/glsl/glcpp/tests/091-hash-line.c.expected
@@ -16,4 +16,3 @@
#line 90 2
#line 180 2
-
diff --git a/src/glsl/glcpp/tests/092-redefine-macro-error-2.c.expected b/src/glsl/glcpp/tests/092-redefine-macro-error-2.c.expected
index 0026f91f32b..698294d91f2 100644
--- a/src/glsl/glcpp/tests/092-redefine-macro-error-2.c.expected
+++ b/src/glsl/glcpp/tests/092-redefine-macro-error-2.c.expected
@@ -7,4 +7,3 @@
-
diff --git a/src/glsl/glcpp/tests/093-divide-by-zero.c.expected b/src/glsl/glcpp/tests/093-divide-by-zero.c.expected
index 08f183f24f5..9adae3f9d55 100644
--- a/src/glsl/glcpp/tests/093-divide-by-zero.c.expected
+++ b/src/glsl/glcpp/tests/093-divide-by-zero.c.expected
@@ -1,4 +1,3 @@
0:1(13): preprocessor error: division by 0 in preprocessor directive
-
diff --git a/src/glsl/glcpp/tests/094-divide-by-zero-short-circuit.c.expected b/src/glsl/glcpp/tests/094-divide-by-zero-short-circuit.c.expected
index be20b7c8909..570952b2454 100644
--- a/src/glsl/glcpp/tests/094-divide-by-zero-short-circuit.c.expected
+++ b/src/glsl/glcpp/tests/094-divide-by-zero-short-circuit.c.expected
@@ -12,4 +12,3 @@
-
diff --git a/src/glsl/glcpp/tests/095-recursive-define.c.expected b/src/glsl/glcpp/tests/095-recursive-define.c.expected
index c7aa18ff6cb..493ab091be7 100644
--- a/src/glsl/glcpp/tests/095-recursive-define.c.expected
+++ b/src/glsl/glcpp/tests/095-recursive-define.c.expected
@@ -1,4 +1,3 @@
B(0, C)
-
diff --git a/src/glsl/glcpp/tests/096-paste-twice.c.expected b/src/glsl/glcpp/tests/096-paste-twice.c.expected
index e40194112aa..96c57d2a6ec 100644
--- a/src/glsl/glcpp/tests/096-paste-twice.c.expected
+++ b/src/glsl/glcpp/tests/096-paste-twice.c.expected
@@ -1,4 +1,3 @@
justonetoken
-
diff --git a/src/glsl/glcpp/tests/097-paste-with-non-function-macro.c.expected b/src/glsl/glcpp/tests/097-paste-with-non-function-macro.c.expected
index af92187ee90..36f66992539 100644
--- a/src/glsl/glcpp/tests/097-paste-with-non-function-macro.c.expected
+++ b/src/glsl/glcpp/tests/097-paste-with-non-function-macro.c.expected
@@ -1,4 +1,3 @@
onetoken
-
diff --git a/src/glsl/glcpp/tests/098-elif-undefined.c.expected b/src/glsl/glcpp/tests/098-elif-undefined.c.expected
index 2af0a12690a..c6ef689ce4b 100644
--- a/src/glsl/glcpp/tests/098-elif-undefined.c.expected
+++ b/src/glsl/glcpp/tests/098-elif-undefined.c.expected
@@ -5,4 +5,3 @@
Yes, this.
-
diff --git a/src/glsl/glcpp/tests/099-c99-example.c.expected b/src/glsl/glcpp/tests/099-c99-example.c.expected
index 19be7505552..352bbff48f5 100644
--- a/src/glsl/glcpp/tests/099-c99-example.c.expected
+++ b/src/glsl/glcpp/tests/099-c99-example.c.expected
@@ -14,4 +14,3 @@
f(2 * (y+1)) + f(2 * (f(2 * (z[0])))) % f(2 * (0)) + t(1);
f(2 * (2 +(3,4)-0,1)) | f(2 * (~ 5)) & f(2 * (0,1))^m(0,1);
int i[] = { 1, 23, 4, 5, };
-
diff --git a/src/glsl/glcpp/tests/100-macro-with-colon.c.expected b/src/glsl/glcpp/tests/100-macro-with-colon.c.expected
index 36f98aa3efc..b4360784ee0 100644
--- a/src/glsl/glcpp/tests/100-macro-with-colon.c.expected
+++ b/src/glsl/glcpp/tests/100-macro-with-colon.c.expected
@@ -5,4 +5,3 @@ switch (1) {
case 1 + 2:
break;
}
-
diff --git a/src/glsl/glcpp/tests/101-macros-used-twice.c.expected b/src/glsl/glcpp/tests/101-macros-used-twice.c.expected
index 1a4bf15362b..1e0b30696cb 100644
--- a/src/glsl/glcpp/tests/101-macros-used-twice.c.expected
+++ b/src/glsl/glcpp/tests/101-macros-used-twice.c.expected
@@ -14,4 +14,3 @@ once
once again
-
diff --git a/src/glsl/glcpp/tests/104-hash-line-followed-by-code.c.expected b/src/glsl/glcpp/tests/104-hash-line-followed-by-code.c.expected
index e89a2926fb0..3fbeec48e4c 100644
--- a/src/glsl/glcpp/tests/104-hash-line-followed-by-code.c.expected
+++ b/src/glsl/glcpp/tests/104-hash-line-followed-by-code.c.expected
@@ -1,3 +1,2 @@
#line 2
int foo();
-
diff --git a/src/glsl/glcpp/tests/105-multiline-hash-line.c.expected b/src/glsl/glcpp/tests/105-multiline-hash-line.c.expected
index fb8e1504c7c..814cef1b8c5 100644
--- a/src/glsl/glcpp/tests/105-multiline-hash-line.c.expected
+++ b/src/glsl/glcpp/tests/105-multiline-hash-line.c.expected
@@ -3,4 +3,3 @@
#line 2
-
diff --git a/src/glsl/glcpp/tests/106-multiline-hash-if.c.expected b/src/glsl/glcpp/tests/106-multiline-hash-if.c.expected
index 6f5ff2e3239..1c0cbc970f5 100644
--- a/src/glsl/glcpp/tests/106-multiline-hash-if.c.expected
+++ b/src/glsl/glcpp/tests/106-multiline-hash-if.c.expected
@@ -4,4 +4,3 @@
int foo();
-
diff --git a/src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected b/src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected
index 68d489b072d..b0601d7ee42 100644
--- a/src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected
+++ b/src/glsl/glcpp/tests/107-multiline-hash-elif.c.expected
@@ -5,4 +5,3 @@
int foo();
-
diff --git a/src/glsl/glcpp/tests/108-no-space-after-hash-version.c.expected b/src/glsl/glcpp/tests/108-no-space-after-hash-version.c.expected
index da4544a55ca..748bfe19b36 100644
--- a/src/glsl/glcpp/tests/108-no-space-after-hash-version.c.expected
+++ b/src/glsl/glcpp/tests/108-no-space-after-hash-version.c.expected
@@ -1,2 +1 @@
0:1(3): preprocessor error: Invalid tokens after #
-
diff --git a/src/glsl/glcpp/tests/109-no-space-after-hash-line.c.expected b/src/glsl/glcpp/tests/109-no-space-after-hash-line.c.expected
index da4544a55ca..748bfe19b36 100644
--- a/src/glsl/glcpp/tests/109-no-space-after-hash-line.c.expected
+++ b/src/glsl/glcpp/tests/109-no-space-after-hash-line.c.expected
@@ -1,2 +1 @@
0:1(3): preprocessor error: Invalid tokens after #
-
diff --git a/src/glsl/glcpp/tests/110-no-space-digits-after-hash-elif.c.expected b/src/glsl/glcpp/tests/110-no-space-digits-after-hash-elif.c.expected
index 6d5e9d1a58e..847437c9111 100644
--- a/src/glsl/glcpp/tests/110-no-space-digits-after-hash-elif.c.expected
+++ b/src/glsl/glcpp/tests/110-no-space-digits-after-hash-elif.c.expected
@@ -1,4 +1,3 @@
0:2(2): preprocessor error: Invalid tokens after #
-
diff --git a/src/glsl/glcpp/tests/111-no-space-operator-after-hash-if.c.expected b/src/glsl/glcpp/tests/111-no-space-operator-after-hash-if.c.expected
index e083008cd8c..5c005c393a9 100644
--- a/src/glsl/glcpp/tests/111-no-space-operator-after-hash-if.c.expected
+++ b/src/glsl/glcpp/tests/111-no-space-operator-after-hash-if.c.expected
@@ -17,4 +17,3 @@ success
success
-
diff --git a/src/glsl/glcpp/tests/112-no-space-operator-after-hash-elif.c.expected b/src/glsl/glcpp/tests/112-no-space-operator-after-hash-elif.c.expected
index 3b5479a2b53..86b37036b65 100644
--- a/src/glsl/glcpp/tests/112-no-space-operator-after-hash-elif.c.expected
+++ b/src/glsl/glcpp/tests/112-no-space-operator-after-hash-elif.c.expected
@@ -22,4 +22,3 @@ success
success
-
diff --git a/src/glsl/glcpp/tests/113-line-and-file-macros.c.expected b/src/glsl/glcpp/tests/113-line-and-file-macros.c.expected
index 3562fb9eaad..55bc788ffd7 100644
--- a/src/glsl/glcpp/tests/113-line-and-file-macros.c.expected
+++ b/src/glsl/glcpp/tests/113-line-and-file-macros.c.expected
@@ -5,4 +5,3 @@
5. Hexadecimal for 20560: 5 0 5 0
6: Zip code for Nortonville, KS: 6 6 0 6 0
7. James Bond, as a number: 0 0 7
-
diff --git a/src/glsl/glcpp/tests/114-paste-integer-tokens.c.expected b/src/glsl/glcpp/tests/114-paste-integer-tokens.c.expected
index a3ad7da596d..aa9711034a6 100644
--- a/src/glsl/glcpp/tests/114-paste-integer-tokens.c.expected
+++ b/src/glsl/glcpp/tests/114-paste-integer-tokens.c.expected
@@ -5,4 +5,3 @@
5. Hexadecimal for 20560: 5050
6: Zip code for Nortonville, KS: 66060
7. James Bond, as a number: 007
-
diff --git a/src/glsl/glcpp/tests/115-line-continuations.c.expected b/src/glsl/glcpp/tests/115-line-continuations.c.expected
index f67ba1cf72e..428b5e822c5 100644
--- a/src/glsl/glcpp/tests/115-line-continuations.c.expected
+++ b/src/glsl/glcpp/tests/115-line-continuations.c.expected
@@ -7,4 +7,3 @@
success
-
diff --git a/src/glsl/glcpp/tests/116-disable-line-continuations.c.expected b/src/glsl/glcpp/tests/116-disable-line-continuations.c.expected
index 9b9a8c5b6b9..5ca78928a61 100644
--- a/src/glsl/glcpp/tests/116-disable-line-continuations.c.expected
+++ b/src/glsl/glcpp/tests/116-disable-line-continuations.c.expected
@@ -11,4 +11,3 @@ success
-
diff --git a/src/glsl/glcpp/tests/117-line-continuation-and-non-continuation-backslash.c.expected b/src/glsl/glcpp/tests/117-line-continuation-and-non-continuation-backslash.c.expected
index 292d6516fe0..8aaa04d28e4 100644
--- a/src/glsl/glcpp/tests/117-line-continuation-and-non-continuation-backslash.c.expected
+++ b/src/glsl/glcpp/tests/117-line-continuation-and-non-continuation-backslash.c.expected
@@ -10,4 +10,3 @@
-
diff --git a/src/glsl/glcpp/tests/118-comment-becomes-space.c.expected b/src/glsl/glcpp/tests/118-comment-becomes-space.c.expected
index 2adf5d1ba90..1fa8135cb13 100644
--- a/src/glsl/glcpp/tests/118-comment-becomes-space.c.expected
+++ b/src/glsl/glcpp/tests/118-comment-becomes-space.c.expected
@@ -2,4 +2,3 @@
first second
-
diff --git a/src/glsl/glcpp/tests/118-multiple-else.c.expected b/src/glsl/glcpp/tests/118-multiple-else.c.expected
index eaec4815076..00b3328c835 100644
--- a/src/glsl/glcpp/tests/118-multiple-else.c.expected
+++ b/src/glsl/glcpp/tests/118-multiple-else.c.expected
@@ -5,4 +5,3 @@ int foo;
int bar;
-
diff --git a/src/glsl/glcpp/tests/119-elif-after-else.c.expected b/src/glsl/glcpp/tests/119-elif-after-else.c.expected
index 33f05136158..636956799cd 100644
--- a/src/glsl/glcpp/tests/119-elif-after-else.c.expected
+++ b/src/glsl/glcpp/tests/119-elif-after-else.c.expected
@@ -5,4 +5,3 @@ int foo;
int bar;
-
diff --git a/src/glsl/glcpp/tests/120-undef-builtin.c.expected b/src/glsl/glcpp/tests/120-undef-builtin.c.expected
index d6981dc0b80..339ea4fc617 100644
--- a/src/glsl/glcpp/tests/120-undef-builtin.c.expected
+++ b/src/glsl/glcpp/tests/120-undef-builtin.c.expected
@@ -4,4 +4,3 @@
-
diff --git a/src/glsl/glcpp/tests/121-comment-bug-72686.c.expected b/src/glsl/glcpp/tests/121-comment-bug-72686.c.expected
index 402a76381e3..5c484c2fe59 100644
--- a/src/glsl/glcpp/tests/121-comment-bug-72686.c.expected
+++ b/src/glsl/glcpp/tests/121-comment-bug-72686.c.expected
@@ -1,3 +1,2 @@
-
diff --git a/src/glsl/glcpp/tests/122-redefine-whitespace.c.expected b/src/glsl/glcpp/tests/122-redefine-whitespace.c.expected
index 193ebc40bb8..602bdef94c2 100644
--- a/src/glsl/glcpp/tests/122-redefine-whitespace.c.expected
+++ b/src/glsl/glcpp/tests/122-redefine-whitespace.c.expected
@@ -20,4 +20,3 @@
-
diff --git a/src/glsl/glcpp/tests/124-preprocessing-numbers.c.expected b/src/glsl/glcpp/tests/124-preprocessing-numbers.c.expected
index 6f5254c3358..6ec588862d6 100644
--- a/src/glsl/glcpp/tests/124-preprocessing-numbers.c.expected
+++ b/src/glsl/glcpp/tests/124-preprocessing-numbers.c.expected
@@ -35,4 +35,3 @@
.23P+OK;GO
1.3p-OK-GO
12.P-OK&GO
-
diff --git a/src/glsl/glcpp/tests/125-es-short-circuit-undefined.c.expected b/src/glsl/glcpp/tests/125-es-short-circuit-undefined.c.expected
index ce5c102ed33..616aa912e2f 100644
--- a/src/glsl/glcpp/tests/125-es-short-circuit-undefined.c.expected
+++ b/src/glsl/glcpp/tests/125-es-short-circuit-undefined.c.expected
@@ -27,4 +27,3 @@ Success
More success
-
diff --git a/src/glsl/glcpp/tests/126-garbage-after-directive.c.expected b/src/glsl/glcpp/tests/126-garbage-after-directive.c.expected
index 95a9e61ebcb..283963db5cf 100644
--- a/src/glsl/glcpp/tests/126-garbage-after-directive.c.expected
+++ b/src/glsl/glcpp/tests/126-garbage-after-directive.c.expected
@@ -5,4 +5,3 @@
-
diff --git a/src/glsl/glcpp/tests/127-pragma-empty.c.expected b/src/glsl/glcpp/tests/127-pragma-empty.c.expected
index 957daff6158..89fe08e8876 100644
--- a/src/glsl/glcpp/tests/127-pragma-empty.c.expected
+++ b/src/glsl/glcpp/tests/127-pragma-empty.c.expected
@@ -1,4 +1,3 @@
#pragma
-
diff --git a/src/glsl/glcpp/tests/128-space-before-hash.c.expected b/src/glsl/glcpp/tests/128-space-before-hash.c.expected
index 71be4c524f2..5d44f4161eb 100644
--- a/src/glsl/glcpp/tests/128-space-before-hash.c.expected
+++ b/src/glsl/glcpp/tests/128-space-before-hash.c.expected
@@ -19,4 +19,3 @@
yes, of course
-
diff --git a/src/glsl/glcpp/tests/130-define-comment.c.expected b/src/glsl/glcpp/tests/130-define-comment.c.expected
index ed59055e306..43d399cafe4 100644
--- a/src/glsl/glcpp/tests/130-define-comment.c.expected
+++ b/src/glsl/glcpp/tests/130-define-comment.c.expected
@@ -1,3 +1,2 @@
FOO( bar )
-