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
4b1dfc56
Commit
4b1dfc56
authored
Apr 16, 2019
by
Christoph Kubisch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve formating
parent
8a0e12a1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
SymbolTable.cpp
glslang/MachineIndependent/SymbolTable.cpp
+9
-12
No files found.
glslang/MachineIndependent/SymbolTable.cpp
View file @
4b1dfc56
...
@@ -179,49 +179,46 @@ void TType::buildMangledName(TString& mangledName) const
...
@@ -179,49 +179,46 @@ void TType::buildMangledName(TString& mangledName) const
void
TSymbol
::
dumpExtensions
(
TInfoSink
&
infoSink
)
const
void
TSymbol
::
dumpExtensions
(
TInfoSink
&
infoSink
)
const
{
{
int
numExtensions
=
getNumExtensions
();
int
numExtensions
=
getNumExtensions
();
if
(
numExtensions
)
if
(
numExtensions
)
{
{
infoSink
.
debug
<<
" <"
;
infoSink
.
debug
<<
" <"
;
for
(
int
i
=
0
;
i
<
numExtensions
;
i
++
)
for
(
int
i
=
0
;
i
<
numExtensions
;
i
++
)
{
infoSink
.
debug
<<
getExtensions
()[
i
]
<<
","
;
infoSink
.
debug
<<
getExtensions
()[
i
]
<<
","
;
}
infoSink
.
debug
<<
">"
;
infoSink
.
debug
<<
">"
;
}
}
}
}
void
TVariable
::
dump
(
TInfoSink
&
infoSink
,
bool
complete
)
const
void
TVariable
::
dump
(
TInfoSink
&
infoSink
,
bool
complete
)
const
{
{
if
(
complete
)
if
(
complete
)
{
{
infoSink
.
debug
<<
getName
().
c_str
()
<<
": "
<<
type
.
getCompleteString
();
infoSink
.
debug
<<
getName
().
c_str
()
<<
": "
<<
type
.
getCompleteString
();
dumpExtensions
(
infoSink
);
dumpExtensions
(
infoSink
);
}
else
}
else
{
{
infoSink
.
debug
<<
getName
().
c_str
()
<<
": "
<<
type
.
getStorageQualifierString
()
<<
" "
infoSink
.
debug
<<
getName
().
c_str
()
<<
": "
<<
type
.
getStorageQualifierString
()
<<
" "
<<
type
.
getBasicTypeString
();
<<
type
.
getBasicTypeString
();
if
(
type
.
isArray
())
if
(
type
.
isArray
())
{
infoSink
.
debug
<<
"[0]"
;
infoSink
.
debug
<<
"[0]"
;
}
}
}
infoSink
.
debug
<<
"
\n
"
;
infoSink
.
debug
<<
"
\n
"
;
}
}
void
TFunction
::
dump
(
TInfoSink
&
infoSink
,
bool
complete
)
const
void
TFunction
::
dump
(
TInfoSink
&
infoSink
,
bool
complete
)
const
{
{
if
(
complete
)
if
(
complete
)
{
{
infoSink
.
debug
<<
getName
().
c_str
()
<<
": "
<<
returnType
.
getCompleteString
()
<<
" "
<<
getName
().
c_str
()
infoSink
.
debug
<<
getName
().
c_str
()
<<
": "
<<
returnType
.
getCompleteString
()
<<
" "
<<
getName
().
c_str
()
<<
"("
;
<<
"("
;
int
numParams
=
getParamCount
();
int
numParams
=
getParamCount
();
for
(
int
i
=
0
;
i
<
numParams
;
i
++
)
for
(
int
i
=
0
;
i
<
numParams
;
i
++
)
{
{
const
TParameter
&
param
=
parameters
[
i
];
const
TParameter
&
param
=
parameters
[
i
];
infoSink
.
debug
<<
param
.
type
->
getCompleteString
()
<<
" "
infoSink
.
debug
<<
param
.
type
->
getCompleteString
()
<<
" "
<<
(
param
.
name
?
param
.
name
->
c_str
()
:
""
)
<<
(
i
<
numParams
-
1
?
","
:
""
);
<<
(
param
.
name
?
param
.
name
->
c_str
()
:
""
)
<<
(
i
<
numParams
-
1
?
","
:
""
);
}
}
infoSink
.
debug
<<
")"
;
infoSink
.
debug
<<
")"
;
dumpExtensions
(
infoSink
);
dumpExtensions
(
infoSink
);
}
else
}
else
...
...
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