diff options
author | Sir Anthony <[email protected]> | 2014-02-05 20:15:56 +0600 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-03-08 01:38:32 -0800 |
commit | 6e39a8f6ec41b44f41b3c4a710478a2e442efc0a (patch) | |
tree | a45113418a077fdd5bcaa11a2df5cbc70e488ac8 /src/glsl/glcpp/tests | |
parent | da2275cd9b4435f9c6af85ddc3f6be0a7e5b24cc (diff) |
glcpp: Do not remove spaces to preserve locations.
After preprocessing by glcpp all adjacent spaces were replaced by
single one and glsl parser received column-shifted shader source.
It negatively affected ast location set up and produced wrong error
messages for heavily-spaced shaders.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/glcpp/tests')
-rw-r--r-- | src/glsl/glcpp/tests/000-content-with-spaces.c | 2 | ||||
-rw-r--r-- | src/glsl/glcpp/tests/000-content-with-spaces.c.expected | 2 | ||||
-rw-r--r-- | src/glsl/glcpp/tests/100-macro-with-colon.c.expected | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/glsl/glcpp/tests/000-content-with-spaces.c b/src/glsl/glcpp/tests/000-content-with-spaces.c index 696cb3a74fc..1f2320e6fc1 100644 --- a/src/glsl/glcpp/tests/000-content-with-spaces.c +++ b/src/glsl/glcpp/tests/000-content-with-spaces.c @@ -1 +1 @@ -this is four tokens + this is four tokens with spaces 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 83f7834d547..5e17ec910fa 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,2 @@ -this is four tokens + this is four tokens with spaces 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 6cfac257b95..36f98aa3efc 100644 --- a/src/glsl/glcpp/tests/100-macro-with-colon.c.expected +++ b/src/glsl/glcpp/tests/100-macro-with-colon.c.expected @@ -2,7 +2,7 @@ switch (1) { - case 1 + 2: - break; + case 1 + 2: + break; } |