Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
7208473c
Commit
7208473c
authored
Jul 30, 2016
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PP: Non-functional; fix typos and blank spaces.
parent
73d4fb5b
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
12 deletions
+12
-12
numeral.frag.out
Test/baseResults/numeral.frag.out
+2
-2
specExamples.frag.out
Test/baseResults/specExamples.frag.out
+1
-1
tokenLength.vert.out
Test/baseResults/tokenLength.vert.out
+2
-2
revision.h
glslang/Include/revision.h
+1
-1
Scan.cpp
glslang/MachineIndependent/Scan.cpp
+0
-0
Pp.cpp
glslang/MachineIndependent/preprocessor/Pp.cpp
+0
-0
PpScanner.cpp
glslang/MachineIndependent/preprocessor/PpScanner.cpp
+5
-5
PpTokens.h
glslang/MachineIndependent/preprocessor/PpTokens.h
+1
-1
No files found.
Test/baseResults/numeral.frag.out
View file @
7208473c
...
@@ -7,8 +7,8 @@ ERROR: 0:17: '' : octal literal too big
...
@@ -7,8 +7,8 @@ ERROR: 0:17: '' : octal literal too big
ERROR: 0:18: '' : octal literal too big
ERROR: 0:18: '' : octal literal too big
ERROR: 0:23: '' : octal literal digit too large
ERROR: 0:23: '' : octal literal digit too large
ERROR: 0:24: '' : octal literal digit too large
ERROR: 0:24: '' : octal literal digit too large
ERROR: 0:49: '' : bad digit in hex
i
decimal literal
ERROR: 0:49: '' : bad digit in hex
a
decimal literal
ERROR: 0:50: '' : hex
i
decimal literal too big
ERROR: 0:50: '' : hex
a
decimal literal too big
ERROR: 0:88: '' : float literal needs a decimal point or exponent
ERROR: 0:88: '' : float literal needs a decimal point or exponent
ERROR: 0:98: '' : numeric literal too big
ERROR: 0:98: '' : numeric literal too big
ERROR: 0:101: '' : numeric literal too big
ERROR: 0:101: '' : numeric literal too big
...
...
Test/baseResults/specExamples.frag.out
View file @
7208473c
...
@@ -2,7 +2,7 @@ specExamples.frag
...
@@ -2,7 +2,7 @@ specExamples.frag
Warning, version 430 is not yet complete; most version-specific features are present, but some are missing.
Warning, version 430 is not yet complete; most version-specific features are present, but some are missing.
ERROR: 0:6: '=' : cannot convert from 'const uint' to 'global int'
ERROR: 0:6: '=' : cannot convert from 'const uint' to 'global int'
ERROR: 0:20: '' : numeric literal too big
ERROR: 0:20: '' : numeric literal too big
ERROR: 0:21: '' : hex
i
decimal literal too big
ERROR: 0:21: '' : hex
a
decimal literal too big
ERROR: 0:37: 'view' : redefinition
ERROR: 0:37: 'view' : redefinition
ERROR: 0:63: 'invariant' : can only apply to an output
ERROR: 0:63: 'invariant' : can only apply to an output
ERROR: 0:68: 'lightPosition' : redefinition
ERROR: 0:68: 'lightPosition' : redefinition
...
...
Test/baseResults/tokenLength.vert.out
View file @
7208473c
...
@@ -2,10 +2,10 @@ tokenLength.vert
...
@@ -2,10 +2,10 @@ tokenLength.vert
ERROR: 0:9: '' : numeric literal too big
ERROR: 0:9: '' : numeric literal too big
ERROR: 0:10: '' : numeric literal too big
ERROR: 0:10: '' : numeric literal too big
ERROR: 0:13: '' : octal literal too big
ERROR: 0:13: '' : octal literal too big
ERROR: 0:14: '' : hex
i
decimal literal too big
ERROR: 0:14: '' : hex
a
decimal literal too big
ERROR: 0:23: '' : float literal too long
ERROR: 0:23: '' : float literal too long
ERROR: 0:32: '' : name too long
ERROR: 0:32: '' : name too long
ERROR: 0:33: '' : hex
i
decimal literal too big
ERROR: 0:33: '' : hex
a
decimal literal too big
ERROR: 0:34: '' : numeric literal too long
ERROR: 0:34: '' : numeric literal too long
ERROR: 0:34: '' : octal literal too big
ERROR: 0:34: '' : octal literal too big
ERROR: 0:35: '' : numeric literal too long
ERROR: 0:35: '' : numeric literal too long
...
...
glslang/Include/revision.h
View file @
7208473c
...
@@ -2,5 +2,5 @@
...
@@ -2,5 +2,5 @@
// For the version, it uses the latest git tag followed by the number of commits.
// For the version, it uses the latest git tag followed by the number of commits.
// For the date, it uses the current date (when then script is run).
// For the date, it uses the current date (when then script is run).
#define GLSLANG_REVISION "SPIRV99.137
0
"
#define GLSLANG_REVISION "SPIRV99.137
3
"
#define GLSLANG_DATE "30-Jul-2016"
#define GLSLANG_DATE "30-Jul-2016"
glslang/MachineIndependent/Scan.cpp
View file @
7208473c
glslang/MachineIndependent/preprocessor/Pp.cpp
View file @
7208473c
glslang/MachineIndependent/preprocessor/PpScanner.cpp
View file @
7208473c
...
@@ -298,7 +298,7 @@ int TPpContext::tStringInput::scan(TPpToken* ppToken)
...
@@ -298,7 +298,7 @@ int TPpContext::tStringInput::scan(TPpToken* ppToken)
ppToken
->
name
[
len
++
]
=
(
char
)
ch
;
ppToken
->
name
[
len
++
]
=
(
char
)
ch
;
ch
=
getch
();
ch
=
getch
();
if
(
ch
==
'x'
||
ch
==
'X'
)
{
if
(
ch
==
'x'
||
ch
==
'X'
)
{
// must be hex
i
decimal
// must be hex
a
decimal
bool
isUnsigned
=
false
;
bool
isUnsigned
=
false
;
bool
isInt64
=
false
;
bool
isInt64
=
false
;
...
@@ -319,11 +319,11 @@ int TPpContext::tStringInput::scan(TPpToken* ppToken)
...
@@ -319,11 +319,11 @@ int TPpContext::tStringInput::scan(TPpToken* ppToken)
}
else
if
(
ch
>=
'a'
&&
ch
<=
'f'
)
{
}
else
if
(
ch
>=
'a'
&&
ch
<=
'f'
)
{
ii
=
ch
-
'a'
+
10
;
ii
=
ch
-
'a'
+
10
;
}
else
}
else
pp
->
parseContext
.
ppError
(
ppToken
->
loc
,
"bad digit in hex
i
decimal literal"
,
""
,
""
);
pp
->
parseContext
.
ppError
(
ppToken
->
loc
,
"bad digit in hex
a
decimal literal"
,
""
,
""
);
ival
=
(
ival
<<
4
)
|
ii
;
ival
=
(
ival
<<
4
)
|
ii
;
}
else
{
}
else
{
if
(
!
AlreadyComplained
)
{
if
(
!
AlreadyComplained
)
{
pp
->
parseContext
.
ppError
(
ppToken
->
loc
,
"hex
i
decimal literal too big"
,
""
,
""
);
pp
->
parseContext
.
ppError
(
ppToken
->
loc
,
"hex
a
decimal literal too big"
,
""
,
""
);
AlreadyComplained
=
1
;
AlreadyComplained
=
1
;
}
}
ival
=
0xffffffffffffffffull
;
ival
=
0xffffffffffffffffull
;
...
@@ -333,7 +333,7 @@ int TPpContext::tStringInput::scan(TPpToken* ppToken)
...
@@ -333,7 +333,7 @@ int TPpContext::tStringInput::scan(TPpToken* ppToken)
(
ch
>=
'A'
&&
ch
<=
'F'
)
||
(
ch
>=
'A'
&&
ch
<=
'F'
)
||
(
ch
>=
'a'
&&
ch
<=
'f'
));
(
ch
>=
'a'
&&
ch
<=
'f'
));
}
else
{
}
else
{
pp
->
parseContext
.
ppError
(
ppToken
->
loc
,
"bad digit in hex
i
decimal literal"
,
""
,
""
);
pp
->
parseContext
.
ppError
(
ppToken
->
loc
,
"bad digit in hex
a
decimal literal"
,
""
,
""
);
}
}
if
(
ch
==
'u'
||
ch
==
'U'
)
{
if
(
ch
==
'u'
||
ch
==
'U'
)
{
if
(
len
<
MaxTokenLength
)
if
(
len
<
MaxTokenLength
)
...
@@ -447,7 +447,7 @@ int TPpContext::tStringInput::scan(TPpToken* ppToken)
...
@@ -447,7 +447,7 @@ int TPpContext::tStringInput::scan(TPpToken* ppToken)
break
;
break
;
case
'1'
:
case
'2'
:
case
'3'
:
case
'4'
:
case
'1'
:
case
'2'
:
case
'3'
:
case
'4'
:
case
'5'
:
case
'6'
:
case
'7'
:
case
'8'
:
case
'9'
:
case
'5'
:
case
'6'
:
case
'7'
:
case
'8'
:
case
'9'
:
// can't be hex
i
decimal or octal, is either decimal or floating point
// can't be hex
a
decimal or octal, is either decimal or floating point
do
{
do
{
if
(
len
<
MaxTokenLength
)
if
(
len
<
MaxTokenLength
)
...
...
glslang/MachineIndependent/preprocessor/PpTokens.h
View file @
7208473c
...
@@ -125,7 +125,7 @@ enum EFixedAtoms {
...
@@ -125,7 +125,7 @@ enum EFixedAtoms {
PpAtomConstDouble
,
PpAtomConstDouble
,
PpAtomConstString
,
PpAtomConstString
,
// I
n
dentifiers
// Identifiers
PpAtomIdentifier
,
PpAtomIdentifier
,
// preprocessor "keywords"
// preprocessor "keywords"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment